diff options
author | Seungwon Jeon <tgih.jun@samsung.com> | 2013-03-25 03:28:22 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-04-04 09:55:53 -0400 |
commit | c09fbd7451b797213b3df8bf077776b9ec33f954 (patch) | |
tree | d1b44a4e5fa899d05559b752d2d99729744a8da7 | |
parent | e573d6985e315fd307862c2142dfd41731e9f209 (diff) |
mmc: dw_mmc: fix fifo access for 64-bit
mci_writew causes a failure of fifo access for 64-bit.
mci_writeq is correct.
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>
-rw-r--r-- | drivers/mmc/host/dw_mmc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c index a44382059540..753c55c20c54 100644 --- a/drivers/mmc/host/dw_mmc.c +++ b/drivers/mmc/host/dw_mmc.c | |||
@@ -1373,8 +1373,9 @@ static void dw_mci_push_data64(struct dw_mci *host, void *buf, int cnt) | |||
1373 | int len = dw_mci_push_part_bytes(host, buf, cnt); | 1373 | int len = dw_mci_push_part_bytes(host, buf, cnt); |
1374 | buf += len; | 1374 | buf += len; |
1375 | cnt -= len; | 1375 | cnt -= len; |
1376 | |||
1376 | if (host->part_buf_count == 8) { | 1377 | if (host->part_buf_count == 8) { |
1377 | mci_writew(host, DATA(host->data_offset), | 1378 | mci_writeq(host, DATA(host->data_offset), |
1378 | host->part_buf); | 1379 | host->part_buf); |
1379 | host->part_buf_count = 0; | 1380 | host->part_buf_count = 0; |
1380 | } | 1381 | } |