mmc: dw_mmc: Add fifo watermark alignment property
authorJun Nie <jun.nie@linaro.org>
Wed, 11 Jan 2017 06:37:26 +0000 (15:37 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 13 Feb 2017 12:20:02 +0000 (13:20 +0100)
commitd6fced8337f8466ad6df5dbbeefe5ab38c06d3ec
treeff04b1e4d2e56a2df8801fe7671bceeae2d4b248
parenta0361c1a4d265ea36796149a29b48e41a5ba28d9
mmc: dw_mmc: Add fifo watermark alignment property

Data done irq is expected if data length is less than
watermark in PIO mode. But fifo watermark is requested
to be aligned with data length in some SoC so that TX/RX
irq can be generated with data done irq. Add the
watermark alignment to mark this requirement and force
fifo watermark setting accordingly.

Signed-off-by: Jun Nie <jun.nie@linaro.org>
Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/dw_mmc.c
drivers/mmc/host/dw_mmc.h