Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mtd: spi-nor: aspeed-smc: Fix flash struct setup for scan
Two updates to the spi-nor drivers between 4.3 and 4.4 were missed in the aspeed-smc rebase. The mtd->priv field is now filled out by the common layer so that can be dropped. And the new flash_node driver was added and needs to be set to the child flash node. Not having this set changed the behavior of spi_nor_scan to follow the not-in-device-tree path and defaulting to FAST_READ support. The flash chip was programmed for FAST_READ but the driver was not expecting it, and the additonal 8 bits of data caused all flash data reads to be shifted 1 byte. Signed-off-by: Milton Miller <[email protected]> Signed-off-by: Joel Stanley <[email protected]>
- Loading branch information