[PATCH linux] mtd: spi-nor: aspeed-smc: Fix flash struct setup for scan

OpenBMC Patches openbmc-patches at stwcx.xyz
Fri Mar 25 08:21:07 AEDT 2016


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 <miltonm at us.ibm.com>
---
Fixes #66

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/openbmc/linux/67)
<!-- Reviewable:end -->


https://github.com/openbmc/linux/pull/67

Milton D. Miller II (1):
  mtd: spi-nor: aspeed-smc: Fix flash struct setup for scan

 drivers/mtd/spi-nor/aspeed-smc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.7.1




More information about the openbmc mailing list