Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c09fbd74 authored by Seungwon Jeon's avatar Seungwon Jeon Committed by Chris Ball
Browse files

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: default avatarSeungwon Jeon <tgih.jun@samsung.com>
Acked-by: default avatarJaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent e573d698
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);
		buf += len;
		cnt -= len;

		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_count = 0;
		}