On Sat, Jan 20, 2024 at 09:05:43AM -0800, Guenter Roeck wrote: > FWIW, the problem is due to > +#define SPI_CS_CNT_MAX 4 > in the offending patch, but apeed2400 FMC supports up to 5 SPI chip selects. > > static const struct aspeed_spi_data ast2400_fmc_data = { > .max_cs = 5, > ^^^^^^^^^^^^^^^^^^^ > .hastype = true, > Limiting .max_cs to 4 or increasing SPI_CS_CNT_MAX to 5 fixes the problem, > though of course I don't know if increasing SPI_CS_CNT_MAX has other side > effects. Yeah, I was coming to a similar conclusion myself - the limit is just too low. I can't see any problem with increasing it.
Attachment:
signature.asc
Description: PGP signature
- Follow-Ups:
- Re: [PATCH v11 03/10] spi: Add multi-cs memories support in SPI core
- From: Guenter Roeck
- Re: [PATCH v11 03/10] spi: Add multi-cs memories support in SPI core
- References:
- [PATCH v11 00/10] spi: Add support for stacked/parallel memories
- From: Amit Kumar Mahapatra
- [PATCH v11 03/10] spi: Add multi-cs memories support in SPI core
- From: Amit Kumar Mahapatra
- Re: [PATCH v11 03/10] spi: Add multi-cs memories support in SPI core
- From: Guenter Roeck
- Re: [PATCH v11 03/10] spi: Add multi-cs memories support in SPI core
- From: Guenter Roeck
- [PATCH v11 00/10] spi: Add support for stacked/parallel memories
- Prev by Date: Re: [PATCH v11 03/10] spi: Add multi-cs memories support in SPI core
- Next by Date: Re: [PATCH v11 03/10] spi: Add multi-cs memories support in SPI core
- Previous by thread: Re: [PATCH v11 03/10] spi: Add multi-cs memories support in SPI core
- Next by thread: Re: [PATCH v11 03/10] spi: Add multi-cs memories support in SPI core
- Index(es):