The last change that was done to make the dual QSPI
work from device tree only without a kernel config
change had a bug which was preventing the 2nd 16 MB
of flash from working on the ZC706.
Signed-off-by: John Linn <john.linn@xilinx.com>
np = of_get_next_parent(spi->dev.of_node);
prop = of_get_property(np, "is-dual", NULL);
if (prop) {
- if (be32_to_cpup(prop))
- flash->mtd.size *= 2;
+ if (be32_to_cpup(prop)) {
+ info->sector_size *= 2;
+ flash->mtd.size *= 2;
+ }
}
}
#endif