Re: [PATCH v2] spi: Raise limit on number of chip selects
From: Mark Brown
Date: Fri Jun 27 2025 - 07:01:24 EST
On Thu, Jun 26, 2025 at 04:58:20PM +0000, Hohn, Torben wrote:
> Hello Marc,
That isn't my name...
> +#define SPI_CS_CNT_MAX 16
> If this is increased to 24 now, we need to carry another patch on top of mainline again once we add another Chipselect
> into our FPGA, or into the next iteration of our hardware. We would really prefer that a Kconfig value is used.
> We have handed a patch to pengutronix, because they can send proper emails.
> In the IIO framework there is a Konfig Value for something similar:
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/linux/iio/trigger.h#n74
This doesn't really work, we're supposed to support single kernel image
so putting per platform configuration in Kconfig ends up being at best a
usability problem. At some point it's better to just bite the bullet
and make things dynamic.
Attachment:
signature.asc
Description: PGP signature