[PATCH] Remove BCM2835 SPI chipselect limit.

2021-04-14 Thread Joe Burmeister
-off-by: Joe Burmeister --- drivers/spi/spi-bcm2835.c | 114 +- 1 file changed, 101 insertions(+), 13 deletions(-) diff --git a/drivers/spi/spi-bcm2835.c b/drivers/spi/spi-bcm2835.c index aab6c7e5c114..4f215ec3bd1b 100644 --- a/drivers/spi/spi-bcm2835.c +++ b

[PATCH] spi: Handle SPI device setup callback failure.

2021-04-19 Thread Joe Burmeister
If the setup callback failed, but the controller has auto_runtime_pm and set_cs, the setup failure could be missed. Signed-off-by: Joe Burmeister --- drivers/spi/spi.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index

[PATCH] spi: bcm2835: Fix buffer overflow with CS able to go beyond limit.

2021-04-20 Thread Joe Burmeister
It was previoulsy possible to have a device tree with more chips than the driver supports and go off the end of CS arrays. This patches inforces CS limit but sets that limit to the max of the default limit and what is in the device tree when driver is loaded. Signed-off-by: Joe Burmeister

Re: [PATCH] Add optional chip erase functionality to AT25 EEPROM driver.

2019-08-12 Thread Joe Burmeister
On 12/08/2019 16:51, David Laight wrote: From: Joe Burmeister Sent: 09 August 2019 13:54 Many, though not all, AT25s have an instruction for chip erase. If there is one in the datasheet, it can be added to device tree. Erase can then be done in userspace via the sysfs API with a new "

[PATCH] Add optional chip erase functionality to AT25 EEPROM driver.

2019-08-09 Thread Joe Burmeister
Many, though not all, AT25s have an instruction for chip erase. If there is one in the datasheet, it can be added to device tree. Erase can then be done in userspace via the sysfs API with a new "erase" device attribute. This matches the eeprom_93xx46 driver's "erase&q

Re: [PATCH] Add optional chip erase functionality to AT25 EEPROM driver.

2019-08-09 Thread Joe Burmeister
Hi Greg, On 09/08/2019 14:00, Greg Kroah-Hartman wrote: On Fri, Aug 09, 2019 at 01:53:55PM +0100, Joe Burmeister wrote: +static void _eeprom_at25_store_erase_locked(struct at25_data *at25) +{ + unsigned long timeout, retries; + int sr, status

Re: [PATCH] Add optional chip erase functionality to AT25 EEPROM driver.

2019-08-09 Thread Joe Burmeister
Hi Mark, On 09/08/2019 14:54, Mark Rutland wrote: On Fri, Aug 09, 2019 at 01:53:55PM +0100, Joe Burmeister wrote: Many, though not all, AT25s have an instruction for chip erase. If there is one in the datasheet, it can be added to device tree. Erase can then be done in userspace via the sysfs

[PATCH] Add erase interface for AT25 driver.

2019-08-05 Thread Joe Burmeister
Signed-off-by: Joe Burmeister --- drivers/misc/eeprom/at25.c | 75 +- 1 file changed, 74 insertions(+), 1 deletion(-) diff --git a/drivers/misc/eeprom/at25.c b/drivers/misc/eeprom/at25.c index 99de6939cd5a..b1fb3bfd935d 100644 --- a/drivers/misc/eeprom/at25.c