linux/drivers/spi
Mika Westerberg a0a90718f1 spi: Let drivers translate ACPI DeviceSelection to suitable Linux chip select
In Windows it is up to the SPI host controller driver to handle the ACPI
DeviceSelection as it likes. The SPI core does not take any part in it.
This is different in Linux because we always expect to have chip select in
range of 0 .. master->num_chipselect - 1.

In order to support this in Linux we need a way to allow the driver to
translate between ACPI DeviceSelection field and Linux chip select number
so provide a new optional hook ->fw_translate_cs() that can be used by a
driver to handle translation and call this hook if set during SPI slave
ACPI enumeration.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2016-02-09 18:19:40 +00:00
..
Kconfig Merge remote-tracking branches 'spi/topic/sun4i', 'spi/topic/topcliff-pch' and 'spi/topic/zynq' into spi-next 2016-01-11 16:48:38 +00:00
Makefile spi: add spi-loopback-test to build framework 2015-12-12 23:05:18 +00:00
spi-adi-v3.c
spi-altera.c
spi-ath79.c
spi-atmel.c Merge remote-tracking branches 'spi/topic/ath97', 'spi/topic/atmel', 'spi/topic/au1550', 'spi/topic/bcm2835' and 'spi/topic/bcm2835aux' into spi-next 2015-11-04 11:02:04 +00:00
spi-au1550.c
spi-bcm53xx.c
spi-bcm53xx.h
spi-bcm63xx-hsspi.c
spi-bcm63xx.c Merge remote-tracking branches 'spi/topic/bcm63xx', 'spi/topic/butterfly', 'spi/topic/cadence' and 'spi/topic/davinci' into spi-next 2016-01-11 16:48:30 +00:00
spi-bcm2835.c Merge remote-tracking branches 'spi/topic/ath97', 'spi/topic/atmel', 'spi/topic/au1550', 'spi/topic/bcm2835' and 'spi/topic/bcm2835aux' into spi-next 2015-11-04 11:02:04 +00:00
spi-bcm2835aux.c
spi-bfin5xx.c
spi-bfin-sport.c
spi-bitbang-txrx.h
spi-bitbang.c
spi-butterfly.c spi: butterfly: use new parport device model 2015-12-02 19:38:16 +00:00
spi-cadence.c spi: cadence: use to_platform_device() 2016-01-05 11:34:23 +00:00
spi-clps711x.c
spi-coldfire-qspi.c
spi-davinci.c spi: davinci: use dev_err() for error reporting 2015-12-12 22:57:44 +00:00
spi-dln2.c
spi-dw-mid.c spi: dw-mid: constify dw_spi_dma_ops structure 2015-11-30 11:34:50 +00:00
spi-dw-mmio.c spi: dw-mmio: convert to unified device property API 2015-10-19 20:32:01 +01:00
spi-dw-pci.c spi: dw-pci: remove unused pdev member from struct dw_spi_pci 2015-10-19 20:32:01 +01:00
spi-dw.c spi: dw: Use SPI_TMOD_TR rather than magic const 0 to set tmode 2015-12-23 12:12:09 +00:00
spi-dw.h spi: dw-mid: constify dw_spi_dma_ops structure 2015-11-30 11:34:50 +00:00
spi-efm32.c
spi-ep93xx.c
spi-falcon.c
spi-fsl-cpm.c QE: Move QE from arch/powerpc to drivers/soc 2015-12-22 17:12:56 -06:00
spi-fsl-cpm.h
spi-fsl-dspi.c spi-fsl-dspi: Fix CTAR Register access 2015-12-12 22:33:09 +00:00
spi-fsl-espi.c spi: fsl-espi: expose maximum transfer size limit 2016-01-05 16:33:54 +00:00
spi-fsl-lib.c
spi-fsl-lib.h
spi-fsl-spi.c
spi-fsl-spi.h
spi-gpio.c
spi-img-spfi.c
spi-imx.c spi: imx: defer spi initialization, if DMA engine is 2015-12-15 22:40:35 +00:00
spi-lm70llp.c spi: lm70llp: remove printk 2015-12-07 20:09:09 +00:00
spi-loopback-test.c spi: loopback: fix typo in MODULE_PARM_DESC 2016-01-08 12:53:35 +00:00
spi-meson-spifc.c
spi-mpc52xx-psc.c
spi-mpc52xx.c
spi-mpc512x-psc.c
spi-mt65xx.c Merge remote-tracking branches 'spi/topic/lm70llp', 'spi/topic/loopback', 'spi/topic/mtk' and 'spi/topic/omap2-mcspi' into spi-next 2016-01-11 16:48:33 +00:00
spi-mxs.c
spi-nuc900.c
spi-oc-tiny.c
spi-octeon.c
spi-omap2-mcspi.c spi: omap2-mcspi: Prevent duplicate gpio_request 2015-12-01 17:05:34 +00:00
spi-omap-100k.c
spi-omap-uwire.c
spi-orion.c
spi-pl022.c spi: pl022: handle EPROBE_DEFER for dma 2015-11-23 11:31:44 +00:00
spi-ppc4xx.c
spi-pxa2xx-dma.c
spi-pxa2xx-pci.c
spi-pxa2xx.c spi: pxa2xx: Remove redundant call to lpss_ssp_setup() in probe 2015-11-20 18:19:14 +00:00
spi-pxa2xx.h Merge remote-tracking branches 'spi/topic/omap-100k', 'spi/topic/omap-uwire', 'spi/topic/owner', 'spi/topic/pxa' and 'spi/topic/pxa2xx' into spi-next 2015-11-04 11:02:12 +00:00
spi-qup.c
spi-rb4xx.c
spi-rockchip.c
spi-rspi.c
spi-s3c24xx-fiq.h
spi-s3c24xx-fiq.S
spi-s3c24xx.c
spi-s3c64xx.c spi: s3c64xx: Remove unused platform_device_id entries 2015-12-30 16:48:58 +00:00
spi-sc18is602.c
spi-sh-hspi.c
spi-sh-msiof.c
spi-sh-sci.c
spi-sh.c
spi-sirf.c
spi-st-ssc4.c
spi-sun4i.c Merge remote-tracking branches 'spi/topic/sun4i', 'spi/topic/topcliff-pch' and 'spi/topic/zynq' into spi-next 2016-01-11 16:48:38 +00:00
spi-sun6i.c spi: sun4i: allow transfers to set transmission speed 2015-11-18 18:34:56 +00:00
spi-tegra20-sflash.c
spi-tegra20-slink.c
spi-tegra114.c
spi-test.h spi: loopback: added additional non-power of 2 transfer lengthes 2015-12-13 20:10:15 +00:00
spi-ti-qspi.c Merge remote-tracking branches 'spi/topic/s3c64xx', 'spi/topic/ti-qspi' and 'spi/topic/txx9' into spi-next 2015-11-04 11:02:16 +00:00
spi-tle62x0.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
spi-topcliff-pch.c
spi-txx9.c
spi-xcomm.c
spi-xilinx.c spi/spi-xilinx: Fix race condition on last word read 2015-10-29 09:03:42 +09:00
spi-xlp.c
spi-xtensa-xtfpga.c
spi-zynqmp-gqspi.c spi: zynq: use to_platform_device() 2016-01-05 11:34:37 +00:00
spi.c spi: Let drivers translate ACPI DeviceSelection to suitable Linux chip select 2016-02-09 18:19:40 +00:00
spidev.c Merge remote-tracking branches 'spi/topic/overlay', 'spi/topic/pxa2xx', 'spi/topic/s3c64xx', 'spi/topic/sh-msiof' and 'spi/topic/spidev' into spi-next 2016-01-11 16:48:35 +00:00