]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit931461c71c8e210b39f2a01e1522b5623e640b99
treeb783af9c4f87415ac9a264357da4875146d8fd00
parentf8d916e98f34ed4bbf900227c295a33cbc023cf4
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