<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/spi, branch v4.4</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v4.4</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v4.4'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2015-12-16T13:28:32Z</updated>
<entry>
<title>Merge remote-tracking branches 'spi/fix/dspi' and 'spi/fix/spidev' into spi-linus</title>
<updated>2015-12-16T13:28:32Z</updated>
<author>
<name>Mark Brown</name>
<email>broonie@kernel.org</email>
</author>
<published>2015-12-16T13:28:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=c1f4a149406ce41962c6ba7d92047563f9e26e0b'/>
<id>urn:sha1:c1f4a149406ce41962c6ba7d92047563f9e26e0b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge remote-tracking branch 'spi/fix/core' into spi-linus</title>
<updated>2015-12-16T13:28:31Z</updated>
<author>
<name>Mark Brown</name>
<email>broonie@kernel.org</email>
</author>
<published>2015-12-16T13:28:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=9ce5db27f4a959ca58d768c5c8e5c98a47361e67'/>
<id>urn:sha1:9ce5db27f4a959ca58d768c5c8e5c98a47361e67</id>
<content type='text'>
</content>
</entry>
<entry>
<title>spi: fix parent-device reference leak</title>
<updated>2015-12-16T12:28:25Z</updated>
<author>
<name>Johan Hovold</name>
<email>johan@kernel.org</email>
</author>
<published>2015-12-14T15:16:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=157f38f993919b648187ba341bfb05d0e91ad2f6'/>
<id>urn:sha1:157f38f993919b648187ba341bfb05d0e91ad2f6</id>
<content type='text'>
Fix parent-device reference leak due to SPI-core taking an unnecessary
reference to the parent when allocating the master structure, a
reference that was never released.

Note that driver core takes its own reference to the parent when the
master device is registered.

Fixes: 49dce689ad4e ("spi doesn't need class_device")
Signed-off-by: Johan Hovold &lt;johan@kernel.org&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
Cc: stable@vger.kernel.org
</content>
</entry>
<entry>
<title>spi: spidev: Hold spi_lock over all defererences of spi in release()</title>
<updated>2015-12-16T12:09:35Z</updated>
<author>
<name>Mark Brown</name>
<email>broonie@kernel.org</email>
</author>
<published>2015-11-16T13:57:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=56ea1075e7f07724cf9b91039aa0968a0c70112f'/>
<id>urn:sha1:56ea1075e7f07724cf9b91039aa0968a0c70112f</id>
<content type='text'>
We use the spi_lock spinlock to protect against races between the device
being removed and file operations on the spidev.  This means that in the
removal path all references to the device need to be done under lock as
in removal we dropping references to the device.

Reported-by: Vegard Nossum &lt;vegard.nossum@oracle.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>spi-fsl-dspi: Fix CTAR Register access</title>
<updated>2015-12-12T22:33:09Z</updated>
<author>
<name>Bhuvanchandra DV</name>
<email>bhuvanchandra.dv@toradex.com</email>
</author>
<published>2015-12-10T05:55:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=ef22d1604c622d24ded69f40d40c3c6d83f71156'/>
<id>urn:sha1:ef22d1604c622d24ded69f40d40c3c6d83f71156</id>
<content type='text'>
DSPI instances in Vybrid have a different amount of chip selects
and CTARs (Clock and transfer Attributes Register). In case of
DSPI1 we only have 2 CTAR registers and 4 CS. In present driver
implementation CTAR offset is derived from CS instance which will
lead to out of bound access if chip select instance is greater than
CTAR register instance, hence use single CTAR0 register for all CS
instances. Since we write the CTAR register anyway before each access,
there is no value in using the additional CTAR registers. Also one
should not program a value in CTAS for a CTAR register that is not
present, hence configure CTAS to use CTAR0.

Signed-off-by: Bhuvanchandra DV &lt;bhuvanchandra.dv@toradex.com&gt;
Acked-by: Stefan Agner &lt;stefan@agner.ch&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>Merge remote-tracking branches 'spi/fix/bcm63xx', 'spi/fix/doc', 'spi/fix/mediatek' and 'spi/fix/pl022' into spi-linus</title>
<updated>2015-11-30T12:26:47Z</updated>
<author>
<name>Mark Brown</name>
<email>broonie@kernel.org</email>
</author>
<published>2015-11-30T12:26:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=a057d737d6ad64c47eb60d7c058cdab6585e96a6'/>
<id>urn:sha1:a057d737d6ad64c47eb60d7c058cdab6585e96a6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>spi: bugfix: spi_message.transfer_length does not get reset</title>
<updated>2015-11-27T12:55:22Z</updated>
<author>
<name>Martin Sperl</name>
<email>kernel@martin.sperl.org</email>
</author>
<published>2015-11-27T12:31:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=77e8058810303e5c18b462adb4f761dbb4f3b657'/>
<id>urn:sha1:77e8058810303e5c18b462adb4f761dbb4f3b657</id>
<content type='text'>
When submitting an identical spi_message multiple times via spi_sync
the spi_message.frame_length does not get reset to 0 in __spi_validate
before adding up all spi_transfer.len resulting in
frame_length &gt; actual_length on all but the first spi_sync call.

Signed-off-by: Martin Sperl &lt;kernel@martin.sperl.org&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>spi: pl022: handle EPROBE_DEFER for dma</title>
<updated>2015-11-23T11:31:44Z</updated>
<author>
<name>Rabin Vincent</name>
<email>rabin.vincent@axis.com</email>
</author>
<published>2015-11-23T07:13:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=f3d4bb3342630cd3d89882586851498d8dc7c0f2'/>
<id>urn:sha1:f3d4bb3342630cd3d89882586851498d8dc7c0f2</id>
<content type='text'>
Handle EPROBE_DEFER explicitly so that we ensure that we get the DMA
channel specified in the device tree, instead of depending on the DMA
controller getting probed before us.

Signed-off-by: Rabin Vincent &lt;rabin.vincent@axis.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>spi: bcm63xx: use correct format string for printing a resource</title>
<updated>2015-11-16T18:43:41Z</updated>
<author>
<name>Arnd Bergmann</name>
<email>arnd@arndb.de</email>
</author>
<published>2015-11-12T16:44:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=0ba2cf70d23437161199e6b627f6948b47be9db4'/>
<id>urn:sha1:0ba2cf70d23437161199e6b627f6948b47be9db4</id>
<content type='text'>
With a 64-bit resource_size_t, we get a build warning on bcm63xx_spi_probe:

drivers/spi/spi-bcm63xx.c:565:16: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'resource_size_t {aka long long unsigned int}' [-Wformat=]

As we are printing a resource, we can just use the %pr format
specifier that pretty-prints the address and avoids the warning.

Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Acked-by: Florian Fainelli &lt;f.fainelli@gmail.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>spi: mediatek: single device does not require cs_gpios</title>
<updated>2015-11-16T17:44:57Z</updated>
<author>
<name>Nicolas Boichat</name>
<email>drinkcat@chromium.org</email>
</author>
<published>2015-11-09T04:14:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=98c8dccf2b2771fb622d449b2ec1604fc5d260e5'/>
<id>urn:sha1:98c8dccf2b2771fb622d449b2ec1604fc5d260e5</id>
<content type='text'>
When only one device is present, it is not necessary to specify
cs_gpios, as the CS line can be controlled by the hardware
module.

Without this patch, older device tree bindings used before
37457607 "spi: mediatek: mt8173 spi multiple devices support"
would cause a panic on boot. This fixes the crash, and
re-introduces backward compatibility.

Signed-off-by: Nicolas Boichat &lt;drinkcat@chromium.org&gt;
Acked-by: Leilk Liu &lt;leilk.liu@mediatek.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
</feed>
