Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi: dw: Define the capabilities in a continuous bit-flags set

Since the DW_SPI_CAP_DWC_HSSI capability has just been replaced with using
the DW SSI IP-core versions interface, the DW SPI capability flags are now
represented with a gap. Let's fix it by redefining the DW_SPI_CAP_DFS32
macro to setting BIT(2) of the capabilities field.

Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20211115181917.7521-8-Sergey.Semin@baikalelectronics.ru
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Serge Semin and committed by
Mark Brown
44ebcb44 2b8a47e0

+1 -1
+1 -1
drivers/spi/spi-dw.h
··· 32 32 /* DW SPI controller capabilities */ 33 33 #define DW_SPI_CAP_CS_OVERRIDE BIT(0) 34 34 #define DW_SPI_CAP_KEEMBAY_MST BIT(1) 35 - #define DW_SPI_CAP_DFS32 BIT(3) 35 + #define DW_SPI_CAP_DFS32 BIT(2) 36 36 37 37 /* Register offsets (Generic for both DWC APB SSI and DWC SSI IP-cores) */ 38 38 #define DW_SPI_CTRLR0 0x00