alistair23-linux/include/linux/spi
Nicolas Boichat c15f6ed3a1 spi: bitbang: Replace spinlock by mutex
chipselect (in the case of spi-gpio: spi_gpio_chipselect, which
calls gpiod_set_raw_value_cansleep) can sleep, so we should not
hold a spinlock while calling it from spi_bitbang_setup.

This issue was introduced by this commit, which converted spi-gpio
to cansleep variants:
d9dda5a191 "spi: spi-gpio: Use 'cansleep' variants to access GPIO"

Replacing the lock variable by a mutex fixes the issue: This is
safe as all instances where the lock is used are called from
contexts that can sleep.

Finally, update spi-ppc4xx and and spi-s3c24xx to use mutex
functions, as they directly hold the lock for similar purpose.

Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
2015-09-17 12:13:40 +01:00
..
ad7877.h
ad7879.h
adi_spi3.h
ads7846.h
at73c213.h
at86rf230.h at86rf230: add support for external xtal trim 2015-02-27 18:42:44 +01:00
cc2520.h cc2520: fix CC2591 handling 2015-05-31 13:40:53 +02:00
corgi_lcd.h
ds1305.h
eeprom.h
flash.h
ifx_modem.h
l4f00242t03.h spi: Remove FSF mailing addresses 2014-12-22 15:32:42 +00:00
libertas_spi.h
lms283gf05.h spi: Remove FSF mailing addresses 2014-12-22 15:32:42 +00:00
max7301.h
mc33880.h
mcp23s08.h gpio: mcp23s08 to support both device tree and platform data 2014-09-04 18:59:15 +02:00
mmc_spi.h
mxs-spi.h spi: Remove FSF mailing addresses 2014-12-22 15:32:42 +00:00
pxa2xx_spi.h Merge remote-tracking branches 'spi/topic/orion', 'spi/topic/pxa2xx', 'spi/topic/qup', 'spi/topic/rockchip' and 'spi/topic/samsung' into spi-next 2015-02-08 11:16:55 +08:00
rspi.h spi: Remove FSF mailing addresses 2014-12-22 15:32:42 +00:00
s3c24xx.h
sh_hspi.h spi: Remove FSF mailing addresses 2014-12-22 15:32:42 +00:00
sh_msiof.h spi: sh-msiof: Configure MSIOF sync signal timing in device tree 2014-12-24 12:31:17 +00:00
spi.h spi: expose spi_master and spi_device statistics via sysfs 2015-07-07 13:33:23 +01:00
spi_bitbang.h spi: bitbang: Replace spinlock by mutex 2015-09-17 12:13:40 +01:00
spi_gpio.h
spi_oc_tiny.h
tdo24m.h
tle62x0.h spi: Remove FSF mailing addresses 2014-12-22 15:32:42 +00:00
tsc2005.h spi: Remove FSF mailing addresses 2014-12-22 15:32:42 +00:00
xilinx_spi.h