<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/spi/spi.c, branch linux-5.0.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.0.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.0.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2019-05-31T13:45:23Z</updated>
<entry>
<title>spi: Fix zero length xfer bug</title>
<updated>2019-05-31T13:45:23Z</updated>
<author>
<name>Chris Lesiak</name>
</author>
<published>2019-03-07T20:39:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0d6932a68e1e8f2c867c728ab99c1917b0ee8949'/>
<id>urn:sha1:0d6932a68e1e8f2c867c728ab99c1917b0ee8949</id>
<content type='text'>
[ Upstream commit 5442dcaa0d90fc376bdfc179a018931a8f43dea4 ]

This fixes a bug for messages containing both zero length and
unidirectional xfers.

The function spi_map_msg will allocate dummy tx and/or rx buffers
for use with unidirectional transfers when the hardware can only do
a bidirectional transfer.  That dummy buffer will be used in place
of a NULL buffer even when the xfer length is 0.

Then in the function __spi_map_msg, if he hardware can dma,
the zero length xfer will have spi_map_buf called on the dummy
buffer.

Eventually, __sg_alloc_table is called and returns -EINVAL
because nents == 0.

This fix prevents the error by not using the dummy buffer when
the xfer length is zero.

Signed-off-by: Chris Lesiak &lt;chris.lesiak@licor.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>spi: Use of_node_name_eq for node name comparisons</title>
<updated>2018-12-06T20:15:43Z</updated>
<author>
<name>Rob Herring</name>
</author>
<published>2018-12-05T19:50:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=194276b073a10f04b420484bd81fa4dbb3ae0e1e'/>
<id>urn:sha1:194276b073a10f04b420484bd81fa4dbb3ae0e1e</id>
<content type='text'>
Convert string compares of DT node names to use of_node_name_eq helper
instead. This removes direct access to the node name pointer.

Signed-off-by: Rob Herring &lt;robh@kernel.org&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>spi: add support for octal mode I/O data transfer</title>
<updated>2018-12-03T17:14:53Z</updated>
<author>
<name>Yogesh Narayan Gaur</name>
</author>
<published>2018-12-03T08:39:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6b03061f882de49b83ccf44beb3a12c920a2da1b'/>
<id>urn:sha1:6b03061f882de49b83ccf44beb3a12c920a2da1b</id>
<content type='text'>
Add flags for Octal mode I/O data transfer
Required for the SPI controller which can do the data transfer (TX/RX)
on 8 data lines e.g. NXP FlexSPI controller.
 SPI_TX_OCTAL: transmit with 8 wires
 SPI_RX_OCTAL: receive with 8 wires

Signed-off-by: Yogesh Gaur &lt;yogeshnarayan.gaur@nxp.com&gt;
Reviewed-by: Boris Brezillon &lt;boris.brezillon@bootlin.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>spi: Fix formatting of header block</title>
<updated>2018-11-29T16:24:37Z</updated>
<author>
<name>Mark Brown</name>
</author>
<published>2018-11-29T16:24:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=787f4889a6cf879a3b8b31cf34804da69b40cc10'/>
<id>urn:sha1:787f4889a6cf879a3b8b31cf34804da69b40cc10</id>
<content type='text'>
Make everything look intentional by having a C++ comment for the whole
block, not just the SPDX line.

Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>spi: Fix core transfer waits after slave support</title>
<updated>2018-11-16T00:08:32Z</updated>
<author>
<name>Mark Brown</name>
</author>
<published>2018-11-16T00:08:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d57e79601bc587f140a9bbb102493ad86f648ae0'/>
<id>urn:sha1:d57e79601bc587f140a9bbb102493ad86f648ae0</id>
<content type='text'>
The refactoring done as part of adding the core support for handling
waiting for slave transfer dropped a conditional which meant that we
started waiting for completion of all transfers, not just those that the
controller asked for.  This caused hangs and massive delays on platforms
that don't need the core delay.  Re-add the delay to fix this.

Fixes: 810923f3bf06c11 (spi: Deal with slaves that return from transfer_one() unfinished)
Reported-by: Tony Lindgren &lt;tony@atomide.com&gt;
Tested-by: Tony Lindgren &lt;tony@atomide.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>spi: Deal with slaves that return from transfer_one() unfinished</title>
<updated>2018-11-13T18:01:23Z</updated>
<author>
<name>Lubomir Rintel</name>
</author>
<published>2018-11-13T10:22:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=810923f3bf06c11022b7bb370dd3130a956a222e'/>
<id>urn:sha1:810923f3bf06c11022b7bb370dd3130a956a222e</id>
<content type='text'>
Some drivers, such as spi-pxa2xx return from the transfer_one callback
immediately, idicating that the transfer will be finished asynchronously.

Normally, spi_transfer_one_message() synchronously waits for the
transfer to finish with wait_for_completion_timeout(). For slaves, we
don't want the transaction to time out as it can complete in a long time
in future. Use wait_for_completion_interruptible() instead.

Signed-off-by: Lubomir Rintel &lt;lkundrak@v3.sk&gt;
Acked-by: Pavel Machek &lt;pavel@ucw.cz&gt;
Reviewed-by: Geert Uytterhoeven &lt;geert+renesas@glider.be&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>Merge remote-tracking branch 'spi/topic/of' into spi-next</title>
<updated>2018-10-21T16:00:17Z</updated>
<author>
<name>Mark Brown</name>
</author>
<published>2018-10-21T16:00:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7b9734dbc5b042bb8d8d930797f346b280057c4e'/>
<id>urn:sha1:7b9734dbc5b042bb8d8d930797f346b280057c4e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge branch 'spi-4.20' into spi-next</title>
<updated>2018-10-21T16:00:14Z</updated>
<author>
<name>Mark Brown</name>
</author>
<published>2018-10-21T16:00:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4b51c747e4a52175e63d125db8365b38b06f0343'/>
<id>urn:sha1:4b51c747e4a52175e63d125db8365b38b06f0343</id>
<content type='text'>
</content>
</entry>
<entry>
<title>spi: Make GPIO CSs honour the SPI_NO_CS flag</title>
<updated>2018-10-12T16:47:28Z</updated>
<author>
<name>Phil Elwell</name>
</author>
<published>2018-10-12T09:23:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=25972d0c33deb5c49708baa48e7796c8d0348e98'/>
<id>urn:sha1:25972d0c33deb5c49708baa48e7796c8d0348e98</id>
<content type='text'>
The SPI configuration state includes an SPI_NO_CS flag that disables
all CS line manipulation, for applications that want to manage their
own chip selects. However, this flag is ignored by the GPIO CS code
in the SPI framework.

Correct this omission with a trivial patch.

Signed-off-by: Phil Elwell &lt;phil@raspberrypi.org&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>spi: Add driver_override SPI device attribute</title>
<updated>2018-10-10T12:40:45Z</updated>
<author>
<name>Trent Piepho</name>
</author>
<published>2018-09-20T19:18:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5039563e7c25eccd7fec1de6706011009d1c5665'/>
<id>urn:sha1:5039563e7c25eccd7fec1de6706011009d1c5665</id>
<content type='text'>
This attribute works the same was as the identically named attribute
for PCI, AMBA, and platform devices.  For reference, see:

commit 3cf385713460 ("ARM: 8256/1: driver coamba: add device binding
path 'driver_override'")
commit 3d713e0e382e ("driver core: platform: add device binding path
'driver_override'")
commit 782a985d7af2 ("PCI: Introduce new device binding path using
pci_dev.driver_override")

If the name of a driver is written to this attribute, then the device
will bind to the named driver and only the named driver.

The device will bind to the driver even if the driver does not list the
device in its id table.  This behavior is different than the driver's
bind attribute, which only allows binding to devices that are listed as
supported by the driver.

It can be used to bind a generic driver, like spidev, to a device.

Signed-off-by: Trent Piepho &lt;tpiepho@impinj.com&gt;
Reviewed-by: Jan KundrÃ¡t &lt;jan.kundrat@cesnet.cz&gt;
Tested-by: Jan KundrÃ¡t &lt;jan.kundrat@cesnet.cz&gt;
Reviewed-by: Geert Uytterhoeven &lt;geert+renesas@glider.be&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
</feed>
