diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2020-10-22 14:25:22 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-10-23 09:04:25 +0200 |
commit | 3588d40c5385e0487800764902dbaaa766699816 (patch) | |
tree | b3dc8e8fe40ebace2a1606f6dbba34318688719f /net/eth.c | |
parent | 7e2f6a1ffd64f8099222436362bd0df33b9c7a96 (diff) | |
download | barebox-3588d40c5385e0487800764902dbaaa766699816.tar.gz barebox-3588d40c5385e0487800764902dbaaa766699816.tar.xz |
mtd: nand-imx: repair reading the oob area
After sending the READOOB command the core (in nand_read_oob_std()) uses
the read_buf callback to fetch the result. So in the imx driver it is
necessary to emit the NFC_OUTPUT command to make the controller actually
read the requested data into the internal buffer and then copy the data
to the location where read_buf expects it.
This fixes reading from /dev/nand0.oob and also (somewhat) reading bad
block markers in the absence of a bad block table.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tested-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'net/eth.c')
0 files changed, 0 insertions, 0 deletions