[OpenWrt-Devel] [PATCH 0/2] kernel: mtd: spinand: backport-4.19: Add'l chip support

Jeff Kletsky lede at allycomm.com
Tue Jun 11 14:14:36 EDT 2019


From: Jeff Kletsky <git-commits at allycomm.com>

Supersedes https://patchwork.ozlabs.org/project/openwrt/list/?series=112040
and addresses related comments

GigaDevice (and a future commit for Paragon) SPI NAND required for
use of SPI NAND on at least GL.iNet GL-AR300M and GL-AR750S, already
on the ath79 target on both openwrt-19./07 and master.

Existing ipq40xx-specific patch for Winbond W25N01GV removed.
Examination of the previous ipq40xx patch
patches-4.19/082-v4.20-mtd-spinand-winbond-Add-support-for-W25N01GV.patch
and the "generic" patch here confirm that they represent the same
content. Build test confirms that the compiled source remains the same.

Toshiba devices included to simplify any future patches by ensuring
that the diff context in spinand.h and core.c is consistent with
upstream Linux. (There are alphabetized lists of manufacturers.)

These drivers are only compiled when CONFIG_MTD_SPI_NAND=y is set by
the target.

These targets are only pistachio and ipq4019, with ath79/nand WIP.

As a result, they do not impact "tiny" boards, or the often
"value-focused" and low-resource ar71xx, ath79/generic, and ramips
boards.

A quick check of removing support of the Toshiba SPI NAND from a local
build here shows a change in kernel size in the image of only 366 bytes.
This is consistent with the changes being a set of structs
defining the device, and two, brief bits of code, one for decoding the
return status of ECC, the other to check the MID/DID.

The run-time impact is effectively zero; if the MID doesn't match, the
s/r returns.  It is only invoked only during driver-attachment probes,
not during "run time".

Signed-off-by: Jeff Kletsky <git-commits at allycomm.com>



Jeff Kletsky (2):
  kernel: mtd: spinand: backport-4.19: Chip support through 5.1
  kernel: mtd: spinand: Backport GigaDevice "F" from linux/next

 ...nd-winbond-Add-support-for-W25N01GV.patch} |  19 +-
 ...initial-support-for-Toshiba-TC58CVG2.patch | 188 +++++++++++++++++
 ...d-support-for-GigaDevice-GD5FxGQ4xA.patch} |  12 +-
 ...spinand-macronix-Fix-ECC-Status-Read.patch |  44 ++++
 ...support-for-all-Toshiba-Memory-produ.patch | 141 +++++++++++++
 ...upport-for-GigaDevice-GD5F1GQ4UExxG.patch} |  13 +-
 ...ne-macros-for-page-read-ops-with-thr.patch |  86 ++++++++
 ...-Add-support-for-two-byte-device-IDs.patch |  48 +++++
 ...support-for-GigaDevice-GD5F1GQ4UFxxG.patch | 197 ++++++++++++++++++
 9 files changed, 734 insertions(+), 14 deletions(-)
 rename target/linux/{ipq40xx/patches-4.19/082-v4.20-mtd-spinand-winbond-Add-support-for-W25N01GV.patch => generic/backport-4.19/421-v5.0-mtd-spinand-winbond-Add-support-for-W25N01GV.patch} (56%)
 create mode 100644 target/linux/generic/backport-4.19/422-v5.0-mtd-spinand-Add-initial-support-for-Toshiba-TC58CVG2.patch
 rename target/linux/generic/backport-4.19/{450-v5.0-mtd-spinand-add-support-for-GigaDevice-GD5FxGQ4xA.patch => 423-v5.0-mtd-spinand-add-support-for-GigaDevice-GD5FxGQ4xA.patch} (94%)
 create mode 100644 target/linux/generic/backport-4.19/426-v5.1-mtd-spinand-macronix-Fix-ECC-Status-Read.patch
 create mode 100644 target/linux/generic/backport-4.19/427-v5.1-mtd-spinand-Add-support-for-all-Toshiba-Memory-produ.patch
 rename target/linux/generic/backport-4.19/{451-v5.1-mtd-spinand-Add-support-for-GigaDevice-GD5F1GQ4UExxG.patch => 428-v5.1-mtd-spinand-Add-support-for-GigaDevice-GD5F1GQ4UExxG.patch} (89%)
 create mode 100644 target/linux/generic/backport-4.19/431-v5.3-mtd-spinand-Define-macros-for-page-read-ops-with-thr.patch
 create mode 100644 target/linux/generic/backport-4.19/432-v5.3-mtd-spinand-Add-support-for-two-byte-device-IDs.patch
 create mode 100644 target/linux/generic/backport-4.19/433-v5.3-mtd-spinand-Add-support-for-GigaDevice-GD5F1GQ4UFxxG.patch

-- 
2.20.1


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list