]> git.karo-electronics.de Git - linux-beck.git/commit
mmc: dw_mmc: empty FIFO after data transfer over interrupt in pio mode
authorKyoungil Kim <ki0351.kim@samsung.com>
Tue, 22 Jan 2013 07:46:30 +0000 (16:46 +0900)
committerChris Ball <cjb@laptop.org>
Fri, 22 Mar 2013 16:00:59 +0000 (12:00 -0400)
commit87a74d399a165510b053c406699992af9add0da9
treeed1b7564f3a982aa262597a7bb37a5cfe168925f
parent0cea529d1afeeb120ae3f22fe353d38049caed5f
mmc: dw_mmc: empty FIFO after data transfer over interrupt in pio mode

In dwc manual, the below contents are described:

"During end of packet, interrupt is not generated if threshold
programming is larger than any remaining data. It is responsibility
of host to read remaining bytes on seeing Data Transfer Done
interrupt"

We also have seen the data cannot be read fully when
"sg_miter->length" is less than FIFO size.

Signed-off-by: Kyoungil Kim <ki0351.kim@samsung.com>
Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/dw_mmc.c