In the Linux kernel before 4.9.6, there is an off by one in the drivers/mtd/spi-nor/cadence-quadspi.c cqspi_setup_flash() function. There are CQSPI_MAX_CHIPSELECT elements in the ->f_pdata array so the “>” should be “>=” instead.
git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=193e87143c290ec16838f5368adc0e0bc94eb931
github.com/torvalds/linux/commit/193e87143c290ec16838f5368adc0e0bc94eb931
mirrors.edge.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.9.6
support.f5.com/csp/article/K24444495
support.f5.com/csp/article/K24444495?utm_source=f5support&%3Butm_medium=RSS