linux-sg2042/include/linux/spi
Heiner Kallweit 7ba2f2757d spi: core: add hook flash_read_supported to spi_master
If hook spi_flash_read is implemented the fast flash read feature
is enabled for all devices attached to the respective master.

In most cases there is just one flash chip, however there are also
devices with more than one flash chip, namely some WiFi routers.
Then the fast flash read feature can be used for the first chip only.
OpenWRT implemented an own handling of this case, using controller_data
element of spi_device to hold the information whether fast flash read
can be used for a device.

This patch adds hook flash_read_supported to spi_master which is
used to extend spi_flash_read_supported() by checking whether the
fast flash read feature can be used for a specific spi_device.

If the hook is not implemented the default behavior is to allow
fast flash read for all devices (if spi_flash_read is implemented).

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2016-04-25 18:51:31 +01:00
..
ad7877.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 eeprom: at25: Remove in kernel API for accessing the EEPROM 2016-03-01 16:55:48 -08:00
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
mmc_spi.h
mxs-spi.h spi: Remove FSF mailing addresses 2014-12-22 15:32:42 +00:00
pxa2xx_spi.h ARM: pxa: Remove unused clock_enable field from struct pxa2xx_spi_master 2015-09-20 19:37:20 +02: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: core: add hook flash_read_supported to spi_master 2016-04-25 18:51:31 +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