In message: [linux-yocto-dev v5.4 PATCH] mmc: cavium: Drop the aligned check 
for the dma address
on 17/01/2020 Kevin Hao wrote:

> From: Kevin Hao <kexin....@windriver.com>
> 
> 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 <kexin....@windriver.com>
> Signed-off-by: Bruce Ashfield <bruce.ashfi...@gmail.com>
> ---
> 
> 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

merged.

Bruce
> 
> 
>  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 (#8327): 
https://lists.yoctoproject.org/g/linux-yocto/message/8327
Mute This Topic: https://lists.yoctoproject.org/mt/69770870/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to