spi: pxa2xx: Respect Intel SSP type given by a property
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 21 Oct 2022 19:00:16 +0000 (22:00 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 24 Oct 2022 12:30:16 +0000 (13:30 +0100)
commit1a1864cd879a1497fd46f6ea2f31ddcde8385585
tree54564ba009ed657b6c5a5f6d4873e587be2e439f
parent88a947215c29aa49307c8cd0638ba54e4cf07391
spi: pxa2xx: Respect Intel SSP type given by a property

Allow to set the Intel SSP type by reading the property.
Only apply this to the known MFD enumerated LPSS devices.

The check is done by the looking for the specifically
named IO memory resource provided by upper layer. This
won't be an issue in the future because we strictly
prioritize the order in which we are looking for the SSP
type in the code.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20221021190018.63646-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pxa2xx.c