<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/spi/Kconfig, branch linux-4.4.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.4.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.4.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2020-12-29T12:42:31Z</updated>
<entry>
<title>spi: Prevent adding devices below an unregistering controller</title>
<updated>2020-12-29T12:42:31Z</updated>
<author>
<name>Lukas Wunner</name>
</author>
<published>2020-08-03T11:09:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=56ea79388d144a868cffa1b90538e721d7c3cb4e'/>
<id>urn:sha1:56ea79388d144a868cffa1b90538e721d7c3cb4e</id>
<content type='text'>
commit ddf75be47ca748f8b12d28ac64d624354fddf189 upstream

CONFIG_OF_DYNAMIC and CONFIG_ACPI allow adding SPI devices at runtime
using a DeviceTree overlay or DSDT patch.  CONFIG_SPI_SLAVE allows the
same via sysfs.

But there are no precautions to prevent adding a device below a
controller that's being removed.  Such a device is unusable and may not
even be able to unbind cleanly as it becomes inaccessible once the
controller has been torn down.  E.g. it is then impossible to quiesce
the device's interrupt.

of_spi_notify() and acpi_spi_notify() do hold a ref on the controller,
but otherwise run lockless against spi_unregister_controller().

Fix by holding the spi_add_lock in spi_unregister_controller() and
bailing out of spi_add_device() if the controller has been unregistered
concurrently.

Fixes: ce79d54ae447 ("spi/of: Add OF notifier handler")
Signed-off-by: Lukas Wunner &lt;lukas@wunner.de&gt;
Cc: stable@vger.kernel.org # v3.19+
Cc: Geert Uytterhoeven &lt;geert+renesas@glider.be&gt;
Cc: Octavian Purdila &lt;octavian.purdila@intel.com&gt;
Cc: Pantelis Antoniou &lt;pantelis.antoniou@konsulko.com&gt;
Link: https://lore.kernel.org/r/a8c3205088a969dc8410eec1eba9aface60f36af.1596451035.git.lukas@wunner.de
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
[sudip: adjust context]
Signed-off-by: Sudip Mukherjee &lt;sudipm.mukherjee@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>Revert "spi: SPI_FSL_DSPI should depend on HAS_DMA"</title>
<updated>2017-12-16T09:33:50Z</updated>
<author>
<name>Sasha Levin</name>
</author>
<published>2017-12-08T04:23:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e891a29531d4fc6026099421e81f4000521aaa70'/>
<id>urn:sha1:e891a29531d4fc6026099421e81f4000521aaa70</id>
<content type='text'>
This reverts commit dadab2d4e3cf708ceba22ecddd94aedfecb39199.

Not required on &lt; 4.10.

Signed-off-by: Sasha Levin &lt;alexander.levin@verizon.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>spi: SPI_FSL_DSPI should depend on HAS_DMA</title>
<updated>2017-11-30T08:37:27Z</updated>
<author>
<name>Geert Uytterhoeven</name>
</author>
<published>2016-12-14T12:28:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=85f286d6f8cddb199d40fbf6a0dfba2eb4f94bd5'/>
<id>urn:sha1:85f286d6f8cddb199d40fbf6a0dfba2eb4f94bd5</id>
<content type='text'>
[ Upstream commit dadab2d4e3cf708ceba22ecddd94aedfecb39199 ]

If NO_DMA=y:

    ERROR: "bad_dma_ops" [drivers/spi/spi-fsl-dspi.ko] undefined!

Add a dependency on HAS_DMA to fix this.

Signed-off-by: Geert Uytterhoeven &lt;geert@linux-m68k.org&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;alexander.levin@verizon.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>Merge remote-tracking branches 'spi/topic/fsl-dspi', 'spi/topic/mpc512x', 'spi/topic/mtk', 'spi/topic/oc-tiny' and 'spi/topic/octeon' into spi-next</title>
<updated>2015-11-04T11:02:10Z</updated>
<author>
<name>Mark Brown</name>
</author>
<published>2015-11-04T11:02:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fc579056af0bdaf9944e2c023c06ae9251cde3c0'/>
<id>urn:sha1:fc579056af0bdaf9944e2c023c06ae9251cde3c0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge remote-tracking branches 'spi/topic/bcm53xx', 'spi/topic/bcm63xx', 'spi/topic/bfin-sport', 'spi/topic/bfin5xx' and 'spi/topic/bitbang' into spi-next</title>
<updated>2015-11-04T11:02:06Z</updated>
<author>
<name>Mark Brown</name>
</author>
<published>2015-11-04T11:02:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c2da04dc21e6687b6cd46a74667e08ab4f651c48'/>
<id>urn:sha1:c2da04dc21e6687b6cd46a74667e08ab4f651c48</id>
<content type='text'>
</content>
</entry>
<entry>
<title>spi: Add DSPI support for layerscape family</title>
<updated>2015-10-30T01:25:53Z</updated>
<author>
<name>Yuan Yao</name>
</author>
<published>2015-10-28T09:41:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5a60adafb95263d63dfaaf7168680c4b7e50b370'/>
<id>urn:sha1:5a60adafb95263d63dfaaf7168680c4b7e50b370</id>
<content type='text'>
LS1043a and LS2080A in the Layerscape family also support DSPI, make
DSPI selectable for these hardwares.

Signed-off-by: Yuan Yao &lt;yao.yuan@freescale.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>spi/bcm63xx: move register definitions into the driver</title>
<updated>2015-10-22T16:19:58Z</updated>
<author>
<name>Jonas Gorski</name>
</author>
<published>2015-10-12T10:24:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=44d8fb30941d85800fbde0a1e3454b1fb23c5ecd'/>
<id>urn:sha1:44d8fb30941d85800fbde0a1e3454b1fb23c5ecd</id>
<content type='text'>
Move all register definitions and structs into the driver. This allows
us dropping the platform_data struct and drop any arch specific
includes. Make use of different device names to identify the version of
the block we have.

Since we now have full control over the message width, we can drop the
size check, which was broken anyway, since it never set ret to any error
code.

Also since we now have no arch depedendent resources, we can now allow
compiling it for any arch, hidden behind COMPILE_TEST.

Signed-off-by: Jonas Gorski &lt;jogo@openwrt.org&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>spi: bcm2835aux: add bcm2835 auxiliary spi device driver</title>
<updated>2015-10-07T10:42:57Z</updated>
<author>
<name>Martin Sperl</name>
</author>
<published>2015-09-11T11:22:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1ea29b39f4c812ece2f936065a0a3d6fe44a263e'/>
<id>urn:sha1:1ea29b39f4c812ece2f936065a0a3d6fe44a263e</id>
<content type='text'>
The bcm2835 has 2 auxiliary spi bus masters spi1 and spi2.

This implements the driver to enable these devices.

The driver does not implement native chip-selects but uses
the aribtrary GPIO-chip-selects provided by the spi-chipselect.

Note that this driver relies on the fact that
the clock is implemented by the clk-bcm2835-aux driver,
which enables/disables the HW block when requesting/releasing
the clock.

Signed-off-by: Martin Sperl &lt;kernel@martin.sperl.org&gt;
Acked-by: Eric Anholt &lt;eric@anholt.net&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>Merge remote-tracking branches 'spi/topic/ti-qspi', 'spi/topic/xcomm' and 'spi/topic/xlp' into spi-next</title>
<updated>2015-08-31T13:45:45Z</updated>
<author>
<name>Mark Brown</name>
</author>
<published>2015-08-31T13:45:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c5992f610f78e6c9d0a78e8fef1066ad640e17e8'/>
<id>urn:sha1:c5992f610f78e6c9d0a78e8fef1066ad640e17e8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge remote-tracking branches 'spi/topic/mtk', 'spi/topic/pxa2xx', 'spi/topic/qspi', 'spi/topic/rockchip' and 'spi/topic/s3c24xx' into spi-next</title>
<updated>2015-08-31T13:45:36Z</updated>
<author>
<name>Mark Brown</name>
</author>
<published>2015-08-31T13:45:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2ca0a9d80c3a2cd3917b768080cce7f59b9bc490'/>
<id>urn:sha1:2ca0a9d80c3a2cd3917b768080cce7f59b9bc490</id>
<content type='text'>
</content>
</entry>
</feed>
