arm/imx: fix imx6q mmc error when mounting rootfs
commitf750ba9b8db2a926c315ccfa9e95d12fe4590a22
authorShawn Guo <shawn.guo@linaro.org>
Thu, 10 Nov 2011 08:39:32 +0000 (10 16:39 +0800)
committerSascha Hauer <s.hauer@pengutronix.de>
Fri, 11 Nov 2011 15:53:35 +0000 (11 16:53 +0100)
tree1bdd2ce107b6a39b4797dab955a003e7a9c1e0ba
parent1b929995ebc0f00cc56ddc14cf75a875f4d565d6
arm/imx: fix imx6q mmc error when mounting rootfs

The following error is seen in some case when mounting rootfs from
SD/MMC cards.

  Waiting for root device /dev/mmcblk0p1...
  mmc1: host does not support reading read-only switch. assuming write-enable.
  mmc1: new high speed SDHC card at address b368
  mmcblk0: mmc1:b368 SDC   3.74 GiB
   mmcblk0: p1
  mmc1: Timeout waiting for hardware interrupt.
  mmcblk0: error -110 transferring data, sector 3678224, nr 40, cmd response 0x900, card status 0xc00
  end_request: I/O error, dev mmcblk0, sector 3678225
  Buffer I/O error on device mmcblk0p1, logical block 458754
  lost page write due to I/O error on mmcblk0p1

This patch fixes the problem by lowering the usdhc clock and correcting
watermark configuration.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Cc: Chris Ball <cjb@laptop.org>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-imx/clock-imx6q.c
drivers/mmc/host/sdhci-esdhc-imx.c