diff options
author | Luis de Arquer <luis.dearquer@inertim.com> | 2024-01-26 20:46:44 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-02-05 14:35:49 +0000 |
commit | 07d6749317bf8cc416fb7eb8f997a884bd610f8d (patch) | |
tree | 8270561f4308948ab478992752ec57f116a45c91 /drivers/spi | |
parent | 5c018e378f916b56503bba65cbdec66ad16f20b7 (diff) | |
download | linux-07d6749317bf8cc416fb7eb8f997a884bd610f8d.tar.gz linux-07d6749317bf8cc416fb7eb8f997a884bd610f8d.tar.bz2 linux-07d6749317bf8cc416fb7eb8f997a884bd610f8d.zip |
spi: spi-rockchip: Fix max_native_cs
Signed-off-by: Luis de Arquer <luis.dearquer@inertim.com>
Link: https://lore.kernel.org/r/4d18808e85b85077761c5655083f20ebfd7d3770.camel@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-rockchip.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/spi/spi-rockchip.c b/drivers/spi/spi-rockchip.c index 2fb2d65bd5f4..e1ecd96c7858 100644 --- a/drivers/spi/spi-rockchip.c +++ b/drivers/spi/spi-rockchip.c @@ -160,8 +160,7 @@ */ #define ROCKCHIP_SPI_MAX_TRANLEN 0xffff -/* 2 for native cs, 2 for cs-gpio */ -#define ROCKCHIP_SPI_MAX_CS_NUM 4 +#define ROCKCHIP_SPI_MAX_NATIVE_CS_NUM 2 #define ROCKCHIP_SPI_VER2_TYPE1 0x05EC0002 #define ROCKCHIP_SPI_VER2_TYPE2 0x00110002 @@ -839,7 +838,7 @@ static int rockchip_spi_probe(struct platform_device *pdev) ctlr->target_abort = rockchip_spi_target_abort; } else { ctlr->flags = SPI_CONTROLLER_GPIO_SS; - ctlr->max_native_cs = ROCKCHIP_SPI_MAX_CS_NUM; + ctlr->max_native_cs = ROCKCHIP_SPI_MAX_NATIVE_CS_NUM; /* * rk spi0 has two native cs, spi1..5 one cs only * if num-cs is missing in the dts, default to 1 |