[OpenWrt-Devel] [PATCH] ar71xx: modernize fast SPI flash read
Heiner Kallweit
hkallweit1 at gmail.com
Sat Apr 23 12:42:12 EDT 2016
Am 23.04.2016 um 00:49 schrieb Heiner Kallweit:
> OpenWRT has own support for the memory-mapped fast SPI flash read on ath79.
> With mainline kernel 4.6/4.7 more elegant generic support for this feature
> was added upstream consisting of these two commits:
>
> 556351f14e74 "spi: introduce accelerated read support for spi flash devices"
> 08922f644878 "mtd: devices: m25p80: add support for mmap read request"
>
> I cherry-picked them for use with ar71xx default kernel version 4.1
> (new patches 460 + 461)
> Once the ar71xx kernel version reaches 4.6 / 4.7 these patches
> can be removed.
>
> New patch 462 includes changes from old patch 463 which are not related
> to the fast flash read feature.
>
> New patch 463 includes the new implementation for the fast flash read
> feature on ath79.
>
> These four new patches replace old patches 460-464.
>
> So far for testing I made the change for the 4.1 version only.
> If it looks good I can do the same for the 4.4 version.
>
> The change was successfully tested on a TP-Link TL-WDR3600.
>
> Signed-off-by: Heiner Kallweit <hkallweit1 at gmail.com>
> ---
> .../460-spi-add-generic-flash-read.patch | 159 ++++++++++++++++++
> .../460-spi-bitbang-export-spi_bitbang_bufs.patch | 28 ----
> .../patches-4.1/461-m25p80-add-flash-read.patch | 33 ++++
> .../461-spi-add-type-field-to-spi_transfer.patch | 23 ---
> .../462-mtd-m25p80-set-spi-transfer-type.patch | 15 --
> .../patches-4.1/462-spi-extend-ath79_spi.patch | 32 ++++
> .../patches-4.1/463-spi-add-ath79-flash-read.patch | 48 ++++++
> .../463-spi-ath79-add-fast-flash-read.patch | 185 ---------------------
> .../464-spi-ath79-fix-fast-flash-read.patch | 35 ----
> 9 files changed, 272 insertions(+), 286 deletions(-)
> create mode 100644 target/linux/ar71xx/patches-4.1/460-spi-add-generic-flash-read.patch
> delete mode 100644 target/linux/ar71xx/patches-4.1/460-spi-bitbang-export-spi_bitbang_bufs.patch
> create mode 100644 target/linux/ar71xx/patches-4.1/461-m25p80-add-flash-read.patch
> delete mode 100644 target/linux/ar71xx/patches-4.1/461-spi-add-type-field-to-spi_transfer.patch
> delete mode 100644 target/linux/ar71xx/patches-4.1/462-mtd-m25p80-set-spi-transfer-type.patch
> create mode 100644 target/linux/ar71xx/patches-4.1/462-spi-extend-ath79_spi.patch
> create mode 100644 target/linux/ar71xx/patches-4.1/463-spi-add-ath79-flash-read.patch
> delete mode 100644 target/linux/ar71xx/patches-4.1/463-spi-ath79-add-fast-flash-read.patch
> delete mode 100644 target/linux/ar71xx/patches-4.1/464-spi-ath79-fix-fast-flash-read.patch
>
[...]
The change doesn't handle ath79_register_m25p80_multi() correctly. I'll provide a v2.
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list