mmc: dw_mmc: adjust the fifoth with block size

This change helps to choose msize, rx_watermark and tx_watermark
depending on block size for IDMAC mode.  For SDIO block size can be
variable, so if these values are set incorrectly, card clock may stop.

Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com>
Tested-by: Alim Akhtar <alim.akhtar@samsung.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
This commit is contained in:
Seungwon Jeon
2013-08-31 00:13:42 +09:00
committed by Chris Ball
parent 1f44a2a557
commit 524268990e
3 changed files with 76 additions and 3 deletions

View File

@@ -129,6 +129,7 @@ struct dw_mci {
struct mmc_request *mrq;
struct mmc_command *cmd;
struct mmc_data *data;
unsigned int prev_blksz;
struct workqueue_struct *card_workqueue;
/* DMA interface members*/