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

Commit 25983b18 authored by Huang Shijie's avatar Huang Shijie Committed by David Woodhouse
Browse files

mtd: cfi_cmdset_0002: print @adr when write timeout occurs



Print out the @adr when the write timeout occurs.
This is useful to check if the write timeouts occur at the
same address.

Signed-off-by: default avatarHuang Shijie <b32955@freescale.com>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent aba98cfd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1571,8 +1571,8 @@ static int __xipram do_write_buffer(struct map_info *map, struct flchip *chip,
	xip_enable(map, chip, adr);
	/* FIXME - should have reset delay before continuing */

	printk(KERN_WARNING "MTD %s(): software timeout\n",
	       __func__ );
	printk(KERN_WARNING "MTD %s(): software timeout, address:0x%.8lx.\n",
	       __func__, adr);

	ret = -EIO;
 op_done: