]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ENGR00256315-5 mtd: cfi_cmdset_0002: print @adr when write timeout occurs
authorHuang Shijie <b32955@freescale.com>
Mon, 1 Apr 2013 09:32:00 +0000 (17:32 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:36:00 +0000 (08:36 +0200)
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: Huang Shijie <b32955@freescale.com>
drivers/mtd/chips/cfi_cmdset_0002.c

index 23175edd5634ff16190b4d7be6ca74d3392e5e80..727fd9c53199c0764755d2a84beeb9e1edbe0994 100644 (file)
@@ -1473,8 +1473,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: