[linux-yocto] [PATCH v5.2&v5.3] mmc: cavium: Drop the aligned check for the dma address

Bruce Ashfield bruce.ashfield at gmail.com
Thu Sep 19 21:24:50 PDT 2019


In message: [PATCH v5.2&v5.3] mmc: cavium: Drop the aligned check for the dma address
on 19/09/2019 Kevin Hao wrote:

> From: Kevin Hao <kexin.hao at windriver.com>
> 
> In commit 73c1489f17e8 ("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.hao at windriver.com>
> ---
> 
> Hi Bruce,
> 
> This targets for standard/cn96xx branch.

Merged to v5.2 and linux-yocto-dev

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 fc6464957df9..d724155d7eb6 100644
> --- a/drivers/mmc/host/cavium.c
> +++ b/drivers/mmc/host/cavium.c
> @@ -853,7 +853,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
> 


More information about the linux-yocto mailing list