From: Kevin Hao <[email protected]> In commit 6f30754ec148 ("mmc: cavium: forbid unaligned DMA"), the codes are added to check the unaligned dma request. But at that time, we still don't do the dma map for the scatterlist yet. So it is meaningless to check the dma address. So drop of it.
Signed-off-by: Kevin Hao <[email protected]> Signed-off-by: Bruce Ashfield <[email protected]> --- Hi Bruce, This cherry-pick a fix from the linux-yocto v5.2 to v5.4. Please help me merge this into the following two branches: standard/cn96xx v5.4/standard/cn96xx 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 f6aadb90354d..cdb769c6ade6 100644 --- a/drivers/mmc/host/cavium.c +++ b/drivers/mmc/host/cavium.c @@ -949,7 +949,7 @@ static void cvm_mmc_dma_request(struct mmc_host *mmc, /* unaligned multi-block DMA has problems, so forbid all unaligned */ for (seg = 0; seg < mrq->data->sg_len; seg++) { struct scatterlist *sg = &mrq->data->sg[seg]; - u64 align = (sg->offset | sg->length | sg->dma_address); + u64 align = (sg->offset | sg->length); if (!(align & 7)) continue; -- 2.14.4
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#8317): https://lists.yoctoproject.org/g/linux-yocto/message/8317 Mute This Topic: https://lists.yoctoproject.org/mt/69770870/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
