mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-12 03:26:26 +00:00
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>
This commit is contained in:
parent
e573d6985e
commit
c09fbd7451
1 changed files with 2 additions and 1 deletions
|
@ -1373,8 +1373,9 @@ static void dw_mci_push_data64(struct dw_mci *host, void *buf, int cnt)
|
||||||
int len = dw_mci_push_part_bytes(host, buf, cnt);
|
int len = dw_mci_push_part_bytes(host, buf, cnt);
|
||||||
buf += len;
|
buf += len;
|
||||||
cnt -= len;
|
cnt -= len;
|
||||||
|
|
||||||
if (host->part_buf_count == 8) {
|
if (host->part_buf_count == 8) {
|
||||||
mci_writew(host, DATA(host->data_offset),
|
mci_writeq(host, DATA(host->data_offset),
|
||||||
host->part_buf);
|
host->part_buf);
|
||||||
host->part_buf_count = 0;
|
host->part_buf_count = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue