spi: Use stable dev_name for ACPI enumerated SPI slaves
authorJarkko Nikula <jarkko.nikula@linux.intel.com>
Thu, 14 Nov 2013 12:03:53 +0000 (14:03 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 14 Nov 2013 22:20:45 +0000 (23:20 +0100)
commite13ac47bec20797fa9262cffcae9cf0e3aa1b9b2
treeb783af9c4f87415ac9a264357da4875146d8fd00
parent70762abb9f89d97603a04cc3438988ca0cf886eb
spi: Use stable dev_name for ACPI enumerated SPI slaves

Current spi bus_num.chip_select "spix.y" based device naming scheme may not
be stable enough to be used in name based matching, for instance within
ALSA SoC subsystem.

This can be problem in PC kind of platforms if there are changes in SPI bus
configuration, amount of busses or probe order.

This patch addresses the problem by using the ACPI device name with
"spi-" prefix for ACPI enumerated SPI slave. For them device name
"spix.y" becomes "spi-INTABCD:ij".

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Acked-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/spi/spi.c
This page took 0.025062 seconds and 5 git commands to generate.