ath79: add read support using spi-mem
authorLuiz Angelo Daros de Luca <luizluca@gmail.com>
Tue, 11 Feb 2020 19:25:36 +0000 (16:25 -0300)
committerChuanhong Guo <gch981213@gmail.com>
Tue, 14 Apr 2020 02:47:23 +0000 (10:47 +0800)
commitb3f984233078fcafd236bba4f94a938ab05ebfa2
treebee86a2e9ad4730840f5f1faa4155c3774ca8016
parenta5a90a94cee96667b217fbaeb563c1fc4f4b7dba
ath79: add read support using spi-mem

Reimplements read optimization on top of spi-mem. Similar to
what 461-spi-ath79-add-fast-flash-read.patch used to do with
the dropped flash read interface.

It accelerate only fast-read op reading flash directly from
memory mapped region. 'm25p,fast-read' must be set in order
to use the new spi-mem.

It improved read speed up to 3x on old devices (tplink,tl-wr2543-v1)
while no speed improvement was noticed on newer devices like
(tplink,archer-c7-v2).

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
target/linux/ath79/patches-4.19/410-spi-ath79-Implement-the-spi_mem-interface.patch [new file with mode: 0644]
target/linux/ath79/patches-5.4/410-spi-ath79-Implement-the-spi_mem-interface.patch [new file with mode: 0644]