ar71xx: allow to specify max read size for m25p80
authorGabor Juhos <juhosg@openwrt.org>
Sat, 7 Jan 2012 19:36:33 +0000 (19:36 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sat, 7 Jan 2012 19:36:33 +0000 (19:36 +0000)
commit408366740954f1d446149b31ef15e8c3faad1362
treee8ac1473f955869729dccd7d5090f5e47fa755f5
parent4b2b2317a6cba5e3b92365655ff00cf3bb7f3f06
ar71xx: allow to specify max read size for m25p80

Reading from the flash chip on the TL-WR2543ND seems buggy.
If the SPI flash driver tries to read too much data in one
SPI transfer, the flash chip returns bogus values. This can
be caused by a buggy flash chip on my board, or it can
be a bug in our SPI driver.

Add a workaround to the m25p80 driver until I find out the
root cause of the problem. The patch allows to specify the
maximum numner of bytes which can be read safely withint
one SPI transfer.

SVN-Revision: 29679
target/linux/ar71xx/patches-2.6.39/113-mtd-m25p80-allow-to-specify-max-read-size.patch [new file with mode: 0644]