[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1493059318-767-3-git-send-email-steven.hill@cavium.com>
Date: Mon, 24 Apr 2017 13:41:56 -0500
From: "Steven J. Hill" <steven.hill@...ium.com>
To: Ulf Hansson <ulf.hansson@...aro.org>
Cc: David Daney <david.daney@...ium.com>,
Jan Glauber <jglauber@...ium.com>, linux-mmc@...r.kernel.org,
linux-mips@...ux-mips.org, linux-kernel@...r.kernel.org
Subject: [PATCH 2/4] mmc: cavium: Fix detection of block or byte addressing.
From: "Steven J. Hill" <Steven.Hill@...ium.com>
Use the mmc_card_is_blockaddr() function to properly detect if the
card uses byte or block addressing.
Signed-off-by: Steven J. Hill <Steven.Hill@...ium.com>
Acked-by: David Daney <david.daney@...ium.com>
---
drivers/mmc/host/cavium.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mmc/host/cavium.c b/drivers/mmc/host/cavium.c
index d842b69..36b25e4 100644
--- a/drivers/mmc/host/cavium.c
+++ b/drivers/mmc/host/cavium.c
@@ -629,7 +629,7 @@ static u64 prepare_ext_dma(struct mmc_host *mmc, struct mmc_request *mrq)
emm_dma = FIELD_PREP(MIO_EMM_DMA_VAL, 1) |
FIELD_PREP(MIO_EMM_DMA_SECTOR,
- (mrq->data->blksz == 512) ? 1 : 0) |
+ mmc_card_is_blockaddr(mmc->card) ? 1 : 0) |
FIELD_PREP(MIO_EMM_DMA_RW,
(mrq->data->flags & MMC_DATA_WRITE) ? 1 : 0) |
FIELD_PREP(MIO_EMM_DMA_BLOCK_CNT, mrq->data->blocks) |
--
2.1.4
Powered by blists - more mailing lists