diff options
author | Uwe Kleine-König | 2015-02-10 20:00:00 +0100 |
---|---|---|
committer | Brian Norris | 2015-03-11 23:20:42 +0100 |
commit | 98ebb521096f2d90c3e903ba79412cd92064795b (patch) | |
tree | 7d5a87c521ed1abddb3fabc43a0742478196d22b /drivers | |
parent | mtd: mxc-nand: Implement support for PARAM command (diff) | |
download | kernel-qcow2-linux-98ebb521096f2d90c3e903ba79412cd92064795b.tar.gz kernel-qcow2-linux-98ebb521096f2d90c3e903ba79412cd92064795b.tar.xz kernel-qcow2-linux-98ebb521096f2d90c3e903ba79412cd92064795b.zip |
mtd: mxc-nand: Warn on unimplemented commands
The PARAM command was long unimplemented and it probably wasn't
noticed because chip probing using only the few bytes returned by the
READID command are good enough in most cases to determine the chip in
use.
Still to notice such a shortcoming earlier in the future would be nice
in case it's something more vital.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mtd/nand/mxc_nand.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c index 0083b4ee4f33..372e0e38f59b 100644 --- a/drivers/mtd/nand/mxc_nand.c +++ b/drivers/mtd/nand/mxc_nand.c @@ -1160,6 +1160,10 @@ static void mxc_nand_command(struct mtd_info *mtd, unsigned command, memcpy32_fromio(host->data_buf, host->main_area0, 512); host->buf_start = 0; break; + default: + WARN_ONCE(1, "Unimplemented command (cmd=%u)\n", + command); + break; } } |