]> git.baikalelectronics.ru Git - kernel.git/commit
spi: dw: Replace DWC_HSSI capability with IP-core version checker
authorBaikal Electronics <support@baikalelectronics.ru>
Mon, 15 Nov 2021 18:19:16 +0000 (21:19 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 16 Nov 2021 14:30:09 +0000 (14:30 +0000)
commit11fdf878f5ec87e2f805e52ac6f4c0364ed501d8
tree17c463c836086a9280abfa2b353db678e161b717
parent677e29d94c99cb3ac547f4a82a82669d5bbe2afd
spi: dw: Replace DWC_HSSI capability with IP-core version checker

Since there is a common IP-core and component versions interface available
we can use it to differentiate the DW HSSI device features in the code.
Let's remove the corresponding DWC_HSSI capability flag then and use the
dw_spi_ip_is() macro instead.

Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20211115181917.7521-7-Sergey.Semin@baikalelectronics.ru
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-dw-core.c
drivers/spi/spi-dw-mmio.c
drivers/spi/spi-dw.h