[OpenWrt-Devel] [PATCH v2] ar71xx: modernize fast SPI flash read

Heiner Kallweit hkallweit1 at gmail.com
Tue Apr 26 13:15:57 EDT 2016


Am 23.04.2016 um 22:15 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.
> 
ar71xx patches 460 + 461 from this patch series can be removed now as
Rafal added the same backported patches in r49233 as generic patches 45 + 80.

> 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>
> ---
> v2:
> - make change compatible with ath79_register_m25p80_multi():
>   >1 flash chip but one can be mmap-accessed only
> ---
>  .../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 ++++
>  .../463-spi-ath79-add-fast-flash-read.patch        | 185 ---------------------
>  .../463-spi-ath79-fast-flash-read.patch            |  94 +++++++++++
>  .../464-spi-ath79-fix-fast-flash-read.patch        |  35 ----
>  9 files changed, 318 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
>  delete mode 100644 target/linux/ar71xx/patches-4.1/463-spi-ath79-add-fast-flash-read.patch
>  create mode 100644 target/linux/ar71xx/patches-4.1/463-spi-ath79-fast-flash-read.patch
>  delete mode 100644 target/linux/ar71xx/patches-4.1/464-spi-ath79-fix-fast-flash-read.patch
> 
_______________________________________________
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