Are there any discussions/ML or pull requests that I can see/help with?
I tried today to port the ath79-spinand to newer kernels (4.4), but failed miserably…
I started from openwrt-cc/patches at master · domino-team/openwrt-cc · GitHub and hand-rediffed most of the AR300M patches, but apparently "struct nand_chip changed in 4.4 and I have no idea what to do there (mainly “init_size” is gone).
Here is the mainline commit: kernel/git/torvalds/linux.git - Linux kernel source tree
But there is no documentation on what changed (or rather why) and how to deal with it…
Have you tried running 4.4 or later kernel?
Here is what I did as a final commit: https://github.com/thinrope/openwrt/commit/07b5c197f405a37a13697d6f2d1a82299eadda9e
make[5]: Entering directory ‘/srv/OpenWRT/openwrt/openwrt/build_dir/target-mips_34kc_musl-1.1.16/linux-ar71xx_nand/linux-4.4.14’
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CHK include/generated/bounds.h
CHK include/generated/timeconst.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CC drivers/mtd/nand/ath79_spinand.o
drivers/mtd/nand/ath79_spinand.c: In function ‘ath79_spinand_probe’:
drivers/mtd/nand/ath79_spinand.c:807:22: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
chip->ecc.read_page = ath79_spinand_read_page_hwecc;
^
drivers/mtd/nand/ath79_spinand.c:808:23: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
chip->ecc.write_page = ath79_spinand_write_page_hwecc;
^
drivers/mtd/nand/ath79_spinand.c:818:6: error: ‘struct nand_chip’ has no member named ‘init_size’
chip->init_size = ath79_spinand_init_size;
^
make[8]: *** [scripts/Makefile.build:259: drivers/mtd/nand/ath79_spinand.o] Error 1
make[7]: *** [scripts/Makefile.build:403: drivers/mtd/nand] Error 2
make[6]: *** [scripts/Makefile.build:403: drivers/mtd] Error 2
make[5]: *** [Makefile:944: drivers] Error 2