<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lwn.git/drivers/spi/spi-pic32-sqi.c, branch v4.20-rc2</title>
<subtitle>Linux kernel documentation tree maintained by Jonathan Corbet</subtitle>
<id>http://mirrors.hust.edu.cn/git/lwn.git/atom?h=v4.20-rc2</id>
<link rel='self' href='http://mirrors.hust.edu.cn/git/lwn.git/atom?h=v4.20-rc2'/>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/'/>
<updated>2018-10-17T10:11:32+00:00</updated>
<entry>
<title>spi: pic32-sqi: don't pass GFP_DMA32 to dma_alloc_coherent</title>
<updated>2018-10-17T10:11:32+00:00</updated>
<author>
<name>Christoph Hellwig</name>
<email>hch@lst.de</email>
</author>
<published>2018-10-13T15:17:02+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=ec506e9246bf42795f1fa8a5cd00740e5686ba73'/>
<id>urn:sha1:ec506e9246bf42795f1fa8a5cd00740e5686ba73</id>
<content type='text'>
The DMA API does its own zone decisions based on the coherent_dma_mask.

Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>spi: pic32-sqi: remove unnecessary of_node_get()</title>
<updated>2018-09-17T17:54:08+00:00</updated>
<author>
<name>Alexey Khoroshilov</name>
<email>khoroshilov@ispras.ru</email>
</author>
<published>2018-09-14T20:05:34+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=3356d9f4cb45b1aef3dd4b1a6ea9ceaca0f68a53'/>
<id>urn:sha1:3356d9f4cb45b1aef3dd4b1a6ea9ceaca0f68a53</id>
<content type='text'>
Almost all spi drivers assign spi master-&gt;dev.of_node from
its parent platform device without additional refcounting.
It seems of_node_get() in pic32_sqi_probe() is unnecessary
and there is no corresponding of_node_put().

Found by Linux Driver Verification project (linuxtesting.org)

Signed-off-by: Alexey Khoroshilov &lt;khoroshilov@ispras.ru&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>spi: pic32-sqi: use list_move_tail and list_move</title>
<updated>2016-08-08T10:56:40+00:00</updated>
<author>
<name>Wei Yongjun</name>
<email>weiyj.lk@gmail.com</email>
</author>
<published>2016-07-28T16:19:47+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=a3cfea0448905581c4dfc087342f5142793bcb66'/>
<id>urn:sha1:a3cfea0448905581c4dfc087342f5142793bcb66</id>
<content type='text'>
Using list_move_tail() and list_move() to simplify the code.

Signed-off-by: Wei Yongjun &lt;weiyj.lk@gmail.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>spi: pic32-sqi: fixup wait_for_completion_timeout return handling</title>
<updated>2016-07-24T20:49:57+00:00</updated>
<author>
<name>Nicholas Mc Guire</name>
<email>hofrat@osadl.org</email>
</author>
<published>2016-07-23T19:08:35+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=33d5097dbf650b84238c6ebdfea4a335f64f9608'/>
<id>urn:sha1:33d5097dbf650b84238c6ebdfea4a335f64f9608</id>
<content type='text'>
wait_for_completion_timeout returns unsigned long not int so the check for
&lt;= 0 should be == 0 here, and the type unsigned long. The function return
is set to -ETIMEDOUT to reflect the actual problem.

Signed-off-by: Nicholas Mc Guire &lt;hofrat@osadl.org&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>spi: pic32-sqi: Remove pic32_sqi_setup and pic32_sqi_cleanup</title>
<updated>2016-05-06T17:18:27+00:00</updated>
<author>
<name>Axel Lin</name>
<email>axel.lin@ingics.com</email>
</author>
<published>2016-04-24T06:59:20+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=191ec113487e7e7adc4b890c290f63e9155264ad'/>
<id>urn:sha1:191ec113487e7e7adc4b890c290f63e9155264ad</id>
<content type='text'>
Current code does not use ctldata at all, so remove spi_set_ctldata call.

spi_setup() will set spi-&gt;bits_per_word = 8 if it was not set, so remove
!spi-&gt;max_speed_hz checking.

The spi core allows absent of spi-&gt;max_speed_hz setting, if it was not set
spi_setup() assigns spi-&gt;master-&gt;max_speed_hz to it.

spi core allows spi-&gt;max_speed_hz &gt; spi-&gt;master-&gt;max_speed_hz, in this case
spi core will limit the transfer speed to ensure xfer-&gt;speed_hz won't
greater than spi-&gt;master-&gt;max_speed_hz so remove checking if
spi-&gt;max_speed_hz is higher than spi-&gt;master-&gt;max_speed_hz.

As a result, both pic32_sqi_setup() and pic32_sqi_cleanup() can be removed.

Signed-off-by: Axel Lin &lt;axel.lin@ingics.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>spi: pic32-sqi: silence array overflow warning</title>
<updated>2016-04-22T15:25:41+00:00</updated>
<author>
<name>Dan Carpenter</name>
<email>dan.carpenter@oracle.com</email>
</author>
<published>2016-04-22T09:55:24+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=989ffc7bd6b0f5ea3423631981f87fde495a8acb'/>
<id>urn:sha1:989ffc7bd6b0f5ea3423631981f87fde495a8acb</id>
<content type='text'>
We read one element beyond the end of the array when we access
"rdesc[i + 1]" so it causes a static checker warning.  It's harmless
because we write over it again on the next line.  But let's just silence
the warning.

Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Reviewed-by: Purna Chandra Mandal &lt;purna.mandal@microchip.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>spi: pic32-sqi: add SPI driver for PIC32 SQI controller.</title>
<updated>2016-04-18T16:52:46+00:00</updated>
<author>
<name>Purna Chandra Mandal</name>
<email>purna.mandal@microchip.com</email>
</author>
<published>2016-04-15T11:27:19+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=3270ac230f660843a7f7d631746ee2c8ee63f347'/>
<id>urn:sha1:3270ac230f660843a7f7d631746ee2c8ee63f347</id>
<content type='text'>
This driver implements SPI master interface for Quad SPI
controller, specifically for accessing quad SPI flash.
It uses descriptor-based DMA transfer mode and supports
half-duplex communication for single, dual and quad SPI
transactions.

Signed-off-by: Purna Chandra Mandal &lt;purna.mandal@microchip.com&gt;
Cc: Mark Brown &lt;broonie@kernel.org&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
</feed>
