Files
kernel-sophgo-sg2044-revyos…/drivers/spi
Santhosh Kumar K f16252636b spi: cadence-quadspi: Fix cqspi_setup_flash()
commit 858d4d9e0a9d6b64160ef3c824f428c9742172c4 upstream.

The 'max_cs' stores the largest chip select number. It should only
be updated when the current 'cs' is greater than existing 'max_cs'. So,
fix the condition accordingly.

Also, return failure if there are no flash device declared.

Fixes: 0f3841a5e1 ("spi: cadence-qspi: report correct number of chip-select")
CC: stable@vger.kernel.org
Reviewed-by: Pratyush Yadav <pratyush@kernel.org>
Reviewed-by: Théo Lebrun <theo.lebrun@bootlin.com>
Signed-off-by: Santhosh Kumar K <s-k6@ti.com>
Message-ID: <20250905185958.3575037-4-s-k6@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-10-19 16:37:35 +02:00
..
2025-07-07 16:12:21 +01:00
2025-07-24 22:32:27 +01:00
2025-07-24 22:32:27 +01:00
2024-10-07 14:53:15 +01:00
2024-10-07 14:53:15 +01:00
2025-02-03 19:24:44 +00:00
2024-09-30 01:12:21 +02:00
2024-12-09 13:14:36 +00:00
2024-10-07 14:53:15 +01:00
2024-10-07 14:53:15 +01:00
2024-09-30 01:12:21 +02:00
2024-09-30 22:43:40 +01:00
2025-07-07 16:12:21 +01:00
2024-10-07 14:53:15 +01:00