]> git.baikalelectronics.ru Git - kernel.git/commit
eeprom: at25: Split reads into chunks and cap write size
authorBrad Bishop <bradleyb@fuzziesquirrel.com>
Tue, 24 May 2022 21:51:42 +0000 (16:51 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jun 2022 14:42:48 +0000 (16:42 +0200)
commit5ea1ad1af40282c04156ab1fd473e5b2eba4661b
tree4d93859f5cd969f588abdf084bc1b190c5b5934c
parentfc6f05d415220592320ccf61b6b7eb41b518924d
eeprom: at25: Split reads into chunks and cap write size

Make use of spi_max_transfer_size to avoid requesting transfers that are
too large for some spi controllers.

Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Link: https://lore.kernel.org/r/20220524215142.60047-1-eajames@linux.ibm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/eeprom/at25.c