Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 98ebb521 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Brian Norris
Browse files

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: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 3d6e81c0
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -1160,6 +1160,10 @@ static void mxc_nand_command(struct mtd_info *mtd, unsigned command,
		memcpy32_fromio(host->data_buf, host->main_area0, 512);
		memcpy32_fromio(host->data_buf, host->main_area0, 512);
		host->buf_start = 0;
		host->buf_start = 0;
		break;
		break;
	default:
		WARN_ONCE(1, "Unimplemented command (cmd=%u)\n",
			  command);
		break;
	}
	}
}
}