/* To prevent stale data from being read, tmio_nand_hwcontrol() clears tmio->read_good.  */
static u_char tmio_nand_read_byte(struct mtd_info *mtd)
/* To prevent stale data from being read, tmio_nand_hwcontrol() clears tmio->read_good.  */
static u_char tmio_nand_read_byte(struct mtd_info *mtd)
{
	struct tmio_nand *tmio = mtd_to_tmio(mtd);
	unsigned int data;
	if (tmio->read_good--)
		return tmio->read;
	data = tmio_ioread16(tmio->fcr + FCR_DATA);
	tmio->read = data >> 8;
	return data;
}