diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2016-02-08 16:14:28 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-02-09 19:19:40 +0100 |
commit | a0a90718f18264dc904d34a580f332006f5561e9 (patch) | |
tree | c40aaf68aada348c4133059aaef79baf948a811a /drivers/spi/Kconfig | |
parent | Linux 4.5-rc1 (diff) | |
download | linux-a0a90718f18264dc904d34a580f332006f5561e9.tar.xz linux-a0a90718f18264dc904d34a580f332006f5561e9.zip |
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>
Diffstat (limited to 'drivers/spi/Kconfig')
0 files changed, 0 insertions, 0 deletions