summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2014-01-09 15:23:55 +0200
committerMark Brown <broonie@linaro.org>2014-01-09 14:07:08 +0000
commitb6fb8d3a1f156c50a35f88b9b55f404034493938 (patch)
treec379808ae918ef30237babce2ded0ff5c372c337 /include
parente120cc0dcf2880a4c5c0a6cb27b655600a1cfa1d (diff)
spi: Check conflicting CS based on spi->chip_select instead of device name
Commit e13ac47bec20 (spi: Use stable dev_name for ACPI enumerated SPI slaves) changed the SPI device naming to be based on ACPI device name instead of carrying bus number and chip select for devices enumerated from ACPI namespace. In case of a buggy BIOS that lists multiple SPI devices sharing the same chip select (even though they should use different) the current code fails to detect that and allows the devices to be added to the bus. Fix this by walking through the bus and comparing spi->chip_select instead of device name. This should work regardless what the device name will be in future. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions