On Sat, May 22, 2021 at 09:29:42PM +0200, Lukas Wunner wrote: > Since commit 571e31fa60b3 ("spi: bcm2835: Cache CS register value for > ->prepare_message()"), the number of slaves has been limited by a > compile-time constant. This was necessitated by statically-sized > arrays in the driver private data which contain per-slave register > values. > > As suggested by Mark, move those register values to a per-slave > controller_state which is allocated on ->setup and freed on ->cleanup. > The limitation on the number of slaves is thus lifted. > > Signed-off-by: Lukas Wunner <lukas@xxxxxxxxx> > Cc: Joe Burmeister <joe.burmeister@xxxxxxxxxxxxx> > Cc: Phil Elwell <phil@xxxxxxxxxxxxxxx> This patch needs a rebase on commit c7299fea6769 ("spi: Fix spi device unregister flow") which has just landed in Linus' tree. So I'm withdrawing the patch and will send a v2 shortly. Thanks, Lukas