]> www.infradead.org Git - users/jedix/linux-maple.git/commit
spi: cadence: Try to read spi-tx/rx-bus width property using ACPI
authorWitold Sadowski <wsadowski@marvell.com>
Wed, 24 Jul 2024 15:47:39 +0000 (08:47 -0700)
committerMark Brown <broonie@kernel.org>
Mon, 29 Jul 2024 00:19:32 +0000 (01:19 +0100)
commit9cabf4a487cd4035844b4928881a314334f348fe
tree82ee1eb3bf587b09418dd96e1fd2f1ad57d9a2fc
parent8232f1e2584ac1eadd3282b035c306ebde87d8b4
spi: cadence: Try to read spi-tx/rx-bus width property using ACPI

Try to read bus width property using acpi_dev_get_property function, do
not rely on spi_mem_default_supports_op function only.
If of_device_get_match_data() will fail, retry with
acpi_device_get_match_data() to handle ACPI properly.

Signed-off-by: Witold Sadowski <wsadowski@marvell.com>
Signed-off-by: Piyush Malgujar <pmalgujar@marvell.com>
Link: https://patch.msgid.link/20240724154739.582367-10-wsadowski@marvell.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-cadence-xspi.c