android_kernel_google_msm/drivers/mmc/card
KOBAYASHI Yoshitake 98048d9b59 mmc: block: fix a bug of error handling in MMC driver
commit c876006962 upstream.

Current MMC driver doesn't handle generic error (bit19 of device
status) in write sequence. As a result, write data gets lost when
generic error occurs. For example, a generic error when updating a
filesystem management information causes a loss of write data and
corrupts the filesystem. In the worst case, the system will never
boot.

This patch includes the following functionality:
  1. To enable error checking for the response of CMD12 and CMD13
     in write command sequence
  2. To retry write sequence when a generic error occurs

Messages are added for v2 to show what occurs.

Signed-off-by: KOBAYASHI Yoshitake <yoshitake.kobayashi@toshiba.co.jp>
Signed-off-by: Chris Ball <cjb@laptop.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-12-08 07:29:42 -08:00
..
block.c mmc: block: fix a bug of error handling in MMC driver 2013-12-08 07:29:42 -08:00
Kconfig
Makefile
mmc_test.c MMC highlights for 3.3: 2012-01-13 20:41:15 -08:00
queue.c mmc: fixes for eMMC v4.5 discard operation 2012-04-20 20:28:55 -04:00
queue.h mmc: block: add handling for two parallel block requests in issue_rw_rq 2011-07-20 17:21:15 -04:00
sdio_uart.c TTY: remove re-assignments to tty_driver members 2012-03-08 11:37:58 -08:00