]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: dw_mmc: fix error handling in PIO mode
authorSeungwon Jeon <tgih.jun@samsung.com>
Wed, 1 Aug 2012 00:30:46 +0000 (09:30 +0900)
committerChris Ball <cjb@laptop.org>
Wed, 8 Aug 2012 03:20:32 +0000 (23:20 -0400)
commitc02b8b83f9f55a7c2222e3f7269b7811739b326e
tree68f05efcf1e1dd4f91a7159820177ef2d6dfa1c0
parentb6b98380ee0a1b05decfd63593e41e9a1a151077
mmc: dw_mmc: fix error handling in PIO mode

Data transfer will be continued until all the bytes are transmitted,
even if data crc error occurs during a multiple-block data transfer.
This means RXDR/TXDR interrupts will occurs until data transfer is
terminated. Early setting of host->sg to NULL prevents going into
xxx_data_pio functions, hence permanent unhandled RXDR/TXDR interrupts
occurs. And checking error interrupt status in the xxx_data_pio functions
is no need because dw_mci_interrupt does do the same. This patch also
removes it.

Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Acked-by: Will Newton <will.newton@imgtec.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/dw_mmc.c