[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <84cafe48637fd1deed7da2cd15eb2f7679545416.camel@redhat.com>
Date: Fri, 23 Apr 2021 19:34:14 +0200
From: Nicolas Saenz Julienne <nsaenzju@...hat.com>
To: Mark Brown <broonie@...nel.org>,
Joe Burmeister <joe.burmeister@...tank.co.uk>
Cc: Florian Fainelli <f.fainelli@...il.com>,
Ray Jui <rjui@...adcom.com>,
Scott Branden <sbranden@...adcom.com>,
bcm-kernel-feedback-list@...adcom.com, linux-spi@...r.kernel.org,
linux-rpi-kernel@...ts.infradead.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] spi: bcm2835: Fix buffer overflow with CS able to go
beyond limit.
On Fri, 2021-04-23 at 17:20 +0100, Mark Brown wrote:
> On Fri, Apr 23, 2021 at 03:12:11PM +0100, Joe Burmeister wrote:
> > Of course we could just raise BCM2835_SPI_NUM_CS to 8 or more if that is
> > preferred. Does seams like the dynamic solution is less favoured.
>
> The best thing would be to have it not have a single array of chip
> select specific data and instead store everything in the controller_data
> that's there per-device.
+1
All in all, it would make for a cleaner driver.
--
Nicolás Sáenz
Powered by blists - more mailing lists