linux-xiaomi-chiron/include/linux/spi
Martin Sperl d780c3711d spi: core: added spi_resource management
SPI resource management framework used while processing a spi_message
via the spi-core.

The basic idea is taken from devres, but as the allocation may happen
fairly frequently, some provisioning (in the form of an unused spi_device
pointer argument to spi_res_alloc) has been made so that at a later stage
we may implement reuse objects allocated earlier avoiding the repeated
allocation by keeping a cache of objects that we can reuse.

This framework can get used for:
* rewriting spi_messages
  * to fullfill alignment requirements of the spi_master HW
  * to fullfill transfer length requirements
    (e.g: transfers need to be less than 64k)
  * consolidate spi_messages with multiple transfers into a single transfer
  when the total transfer length is below a threshold.
* reimplement spi_unmap_buf without explicitly needing to check if it has
  been mapped

Signed-off-by: Martin Sperl <kernel@martin.sperl.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
2016-02-09 19:25:43 +00:00
..
ad7877.h
ad7879.h
adi_spi3.h spi: convert spi-bfin-v3.c to a multiplatform driver 2014-04-14 17:45:25 +01:00
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 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 spi: s3c24xx: Remove reference to plat/fiq.h 2014-01-08 13:06:21 +00:00
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: added spi_resource management 2016-02-09 19:25:43 +00: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