Openwrt/target/linux/ath79/patches-4.14
Fabio Bettoni ddc11c3932 ar71xx/ath79: fix mtd corruption
In commit fec8fe8069 ("kernel: bump 4.9 to 4.9.116") [1], the following patch for removed:
- 403-mtd_fix_cfi_cmdset_0002_status_check.patch

This patch contained fixes for both write and erase functions.

While the chip-detects for erase got fixed upstream [2],
some modifications are still required, even with the fixes applied.

While at it, also apply the same fix for target ath79,
which suffers the same issue.

Not doing so results in following errors seen:

Collected errors:
 * pkg_write_filelist: Failed to open //usr/lib/opkg/info/luci-lib-ip.list: I/O error.
 * opkg_install_pkg: Failed to extract data files for luci-lib-ip. Package debris may remain!
 * opkg_install_cmd: Cannot install package luci-ssl.
 * opkg_conf_write_status_files: Can't open status file //usr/lib/opkg/status: I/O error.

[    0.780920] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    8.406396] jffs2: notice: (415) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[    8.423476] mount_root: switching to jffs2 overlay
[  270.902671] jffs2: Write of 1989 bytes at 0x005ce6f8 failed. returned -5, retlen 962
[  270.931965] jffs2: Write of 1989 bytes at 0x005ceec0 failed. returned -5, retlen 0
[  270.939631] jffs2: Not marking the space at 0x005ceec0 as dirty because the flash driver returned retlen zero
[  270.950397] jffs2: Write of 68 bytes at 0x005ceec0 failed. returned -5, retlen 0
[  270.957838] jffs2: Not marking the space at 0x005ceec0 as dirty because the flash driver returned retlen zero
[  270.968584] jffs2: Write of 68 bytes at 0x005ceec0 failed. returned -5, retlen 0
[  270.976027] jffs2: Not marking the space at 0x005ceec0 as dirty because the flash driver returned retlen zero
[  270.986735] jffs2: Write of 68 bytes at 0x005ceec0 failed. returned -5, retlen 0
[  270.994225] jffs2: Not marking the space at 0x005ceec0 as dirty because the flash driver returned retlen zero

[1] https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=fec8fe806963c96a6506c2aebc3572d3a11f285f
[2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v4.9.133&id=a0239d83e1cb60de5e78452d4708c083b9e3dcbe

Fixes: fec8fe8069 ("kernel: bump 4.9 to 4.9.116")
Signed-off-by: Fabio Bettoni <fbettoni@gmail.com>
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
2018-10-17 18:55:37 +02:00
..
004-register_gpio_driver_earlier.patch
403-mtd_fix_cfi_cmdset_0002_status_check.patch ar71xx/ath79: fix mtd corruption 2018-10-17 18:55:37 +02:00
404-mtd-cybertan-trx-parser.patch kernel: bump 4.14 to 4.14.70 2018-09-17 15:47:44 +02:00
405-mtd-tp-link-partition-parser.patch
420-net-ar71xx_mac_driver.patch
430-drivers-link-spi-before-mtd.patch
461-spi-ath79-add-fast-flash-read.patch ath79: replace patches 2018-08-28 11:26:53 +02:00
470-MIPS-ath79-swizzle-pci-address-for-ar71xx.patch kernel: bump 4.14 to 4.14.67 2018-08-28 23:05:39 +02:00
490-usb-ehci-add-quirks-for-qca-socs.patch
900-mdio_bitbang_ignore_ta_value.patch
901-phy-mdio-bitbang-prevent-rescheduling-during-command.patch
910-unaligned_access_hacks.patch kernel: bump 4.14 to 4.14.73 2018-10-02 13:44:36 +02:00
0001-tty-serial-drop-QCA-pecific-SoC-symbols.patch
0002-watchdog-ath79-fix-maximum-timeout.patch
0003-leds-add-reset-controller-based-driver.patch
0004-phy-add-ath79-usb-phys.patch
0005-usb-add-more-OF-quirk-properties.patch
0006-usb-drop-deprecated-symbols.patch
0007-irqchip-irq-ath79-intc-add-irq-cascade-driver-for-QC.patch ath79: replace patches 2018-08-28 11:26:53 +02:00
0008-irqchip-irq-ath79-cpu-drop-OF-init-helper.patch ath79: replace patches 2018-08-28 11:26:53 +02:00
0009-MIPS-ath79-add-lots-of-missing-registers.patch ath79: replace patches 2018-08-28 11:26:53 +02:00
0010-MIPS-ath79-add-support-for-QCA953x-QCA956x-TP9343.patch kernel: bump 4.14 to 4.14.72 2018-09-26 15:54:18 +02:00
0011-MIPS-ath79-select-the-PINCTRL-subsystem.patch ath79: replace patches 2018-08-28 11:26:53 +02:00
0014-MIPS-ath79-finetune-cpu-overrides.patch ath79: replace patches 2018-08-28 11:26:53 +02:00
0015-MIPS-ath79-enable-uart-during-early_prink.patch ath79: replace patches 2018-08-28 11:26:53 +02:00
0016-MIPS-ath79-get-PCIe-controller-out-of-reset.patch ath79: replace patches 2018-08-28 11:26:53 +02:00
0017-dt-bindings-PCI-qcom-ar7100-adds-binding-doc.patch ath79: replace patches 2018-08-28 11:26:53 +02:00
0018-MIPS-pci-ar71xx-convert-to-OF.patch ath79: replace patches 2018-08-28 11:26:53 +02:00
0019-dt-bindings-PCI-qcom-ar7240-adds-binding-doc.patch ath79: replace patches 2018-08-28 11:26:53 +02:00
0020-MIPS-pci-ar724x-convert-to-OF.patch ath79: replace patches 2018-08-28 11:26:53 +02:00
0021-MIPS-ath79-add-helpers-for-setting-clocks-and-expose.patch ath79: replace patches 2018-08-28 11:26:53 +02:00
0022-MIPS-ath79-move-legacy-wdt-and-uart-clock-aliases-ou.patch ath79: replace patches 2018-08-28 11:26:53 +02:00
0023-MIPS-ath79-pass-PLL-base-to-clock-init-functions.patch ath79: replace patches 2018-08-28 11:26:53 +02:00
0024-MIPS-ath79-make-specifying-the-reference-clock-in-DT.patch ath79: replace patches 2018-08-28 11:26:53 +02:00
0025-MIPS-ath79-support-setting-up-clock-via-DT-on-all-So.patch ath79: replace patches 2018-08-28 11:26:53 +02:00
0026-MIPS-ath79-export-switch-MDIO-reference-clock.patch ath79: replace patches 2018-08-28 11:26:53 +02:00
0027-MIPS-ath79-drop-legacy-IRQ-code.patch ath79: replace patches 2018-08-28 11:26:53 +02:00
0028-MIPS-ath79-drop-machfiles.patch ath79: replace patches 2018-08-28 11:26:53 +02:00
0029-MIPS-ath79-drop-legacy-pci-code.patch ath79: replace patches 2018-08-28 11:26:53 +02:00
0030-MIPS-ath79-drop-platform-device-registration-code.patch ath79: replace patches 2018-08-28 11:26:53 +02:00
0031-MIPS-ath79-drop-OF-clock-code.patch ath79: replace patches 2018-08-28 11:26:53 +02:00
0032-MIPS-ath79-sanitize-symbols.patch ath79: replace patches 2018-08-28 11:26:53 +02:00
0033-spi-ath79-drop-pdata-support.patch ath79: replace patches 2018-08-28 11:26:53 +02:00
0034-MIPS-ath79-ath9k-exports.patch
0036-GPIO-add-named-gpio-exports.patch kernel: bump 4.14 to 4.14.75 2018-10-10 14:45:11 +02:00
0036-MIPS-ath79-remove-irq-code-from-pci.patch kernel: bump 4.14 to 4.14.67 2018-08-28 23:05:39 +02:00
0037-missing-registers.patch kernel: bump 4.14 to 4.14.67 2018-08-28 23:05:39 +02:00