openwrtv3/target/linux/ar71xx/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
..
001-spi-cs-gpio.patch
002-add_back_gpio_function_select.patch
004-register_gpio_driver_earlier.patch
100-MIPS-ath79-Avoid-using-unitialized-reg-variable.patch
106-02-MIPS-ath79-do-AR724x-PCIe-root-complex-init.patch
200-MIPS-ath79-fix-ar933x-wmac-reset.patch
201-ar913x_wmac_external_reset.patch
202-MIPS-ath79-ar934x-wmac-revision.patch
220-add_cpu_feature_overrides.patch
300-MIPS-add-MIPS_MACHINE_NONAME-macro.patch
310-lib-add-rle-decompression.patch
401-mtd-physmap-add-lock-unlock.patch
402-mtd-SST39VF6401B-support.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
405-mtd-tp-link-partition-parser.patch
407-mtd-m25p80-allow-to-pass-probe-types-via-platform-data.patch
408-mtd-redboot_partition_scan.patch
409-mtd-rb4xx_nand_driver.patch
410-mtd-rb750-nand-driver.patch
411-mtd-cfi_cmdset_0002-force-word-write.patch ar71xx/ath79: fix mtd corruption 2018-10-17 18:55:37 +02:00
413-mtd-ar934x-nand-driver.patch
414-mtd-rb91x-nand-driver.patch
420-net-ar71xx_mac_driver.patch
423-dsa-add-88e6063-driver.patch
430-drivers-link-spi-before-mtd.patch
432-spi-rb4xx-spi-driver.patch
433-spi-rb4xx-cpld-driver.patch
435-spi-vsc7385_driver.patch
440-leds-wndr3700-usb-led-driver.patch
441-leds-rb750-led-driver.patch
442-leds-gpio-allow-to-use-OPEN_-DRAIN-SOURCE-flags-with.patch
450-gpio-nxp-74hc153-gpio-chip-driver.patch
451-gpio-74x164-improve-platform-device-support.patch
452-gpio-add-gpio-latch-driver.patch
461-spi-ath79-add-fast-flash-read.patch
470-MIPS-ath79-swizzle-pci-address-for-ar71xx.patch
490-usb-ehci-add-quirks-for-qca-socs.patch
500-MIPS-fw-myloader.patch kernel: bump 4.14 to 4.14.68 2018-09-07 17:21:24 +02:00
501-MIPS-ath79-add-mac-argument-to-ath79_register_wmac.patch
504-MIPS-ath79-add-ath79_device_reset_get.patch
505-MIPS-ath79-add-ath79_gpio_function_select.patch
506-MIPS-ath79-prom-parse-redboot-args.patch
507-MIPS-ath79-prom-add-myloader-support.patch
508-MIPS-ath79-prom-image-command-line-hack.patch
509-MIPS-ath79-process-board-kernel-option.patch
510-MIPS-ath79-init-gpio-pin-of-wmac-device.patch
520-MIPS-ath79-enable-UART-function.patch
521-MIPS-ath79-enable-UART-for-early_serial.patch
522-MIPS-ath79-add-ath79_wmac_register_simple-helper.patch
523-MIPS-ath79-OTP-support.patch
524-MIPS-ath79-add-ath79_wmac_disable_25ghz-helpers.patch
525-MIPS-ath79-enable-qca-usb-quirks.patch
601-MIPS-ath79-add-more-register-defines.patch
602-MIPS-ath79-add-openwrt-stuff.patch
603-MIPS-ath79-ap121-fixes.patch
604-MIPS-ath79-no-of.patch
605-MIPS-ath79-db120-fixes.patch
606-MIPS-ath79-pb44-fixes.patch
607-MIPS-ath79-ubnt-xm-fixes.patch
608-MIPS-ath79-ubnt-xm-add-more-boards.patch
609-MIPS-ath79-ap136-fixes.patch
611-MIPS-ath79-wdt-timeout.patch
612-MIPS-ath79-set-buffalo-txgain.patch
613-MIPS-ath79-add-ath79_wmac_setup_ext_lna_gpio-helper.patch
620-MIPS-ath79-add-support-for-QCA953x-SoC.patch
621-MIPS-ath79-add-support-for-QCA956x-SoC.patch ar71xx: fix pci irq init on kernel 4.14 2018-10-04 16:15:24 +02:00
622-MIPS-ath79-add-more-register-defines-for-QCA956x-SoC.patch
630-MIPS-ath79-fix-chained-irq-disable.patch
631-MIPS-ath79-wmac-enable-set-led-pin.patch
632-MIPS-ath79-gpio-enable-set-direction.patch
640-MIPS-ath79-add-QCA955x-wmac-reset.patch
700-MIPS-ath79-add-openwrt-Kconfig.patch
701-MIPS-ath79-add-routerboard-detection.patch
702-MIPS-ath79-fixup-routerboot-board-parameter.patch
739-MIPS-ath79-add-gpio-func-register-for-QCA955x-SoC.patch
740-MIPS-ath79-add-PCI-for-QCA953x-SoC.patch ar71xx: fix pci irq init on kernel 4.14 2018-10-04 16:15:24 +02:00
741-MIPS-ath79-add-PCI-for-QCA9556-SoC.patch
818-MIPS-ath79-add-nu801-led-driver.patch
820-MIPS-ath79-add_gpio_function2_setup.patch
900-mdio_bitbang_ignore_ta_value.patch
901-phy-mdio-bitbang-prevent-rescheduling-during-command.patch
902-at803x-add-reset-gpio-pdata.patch
903-at803x-add-sgmii-aneg-override-pdata.patch
910-unaligned_access_hacks.patch kernel: bump 4.14 to 4.14.73 2018-10-02 13:44:36 +02:00
920-usb-chipidea-AR933x-platform-support.patch
921-MIPS-ath79-add-even-more-register-defines-for-QCA956x-SoC.patch
930-chipidea-pullup.patch
940-qca955x-add-more-registers.patch
950-add-boardinfo-platform-data.patch ar71xx: fix switch probing on kernel 4.14 2018-09-07 17:21:24 +02:00