[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220219071730.GG26711@lst.de>
Date: Sat, 19 Feb 2022 08:17:30 +0100
From: Christoph Hellwig <hch@....de>
To: Baoquan He <bhe@...hat.com>
Cc: linux-kernel@...r.kernel.org, linux-mm@...ck.org,
akpm@...ux-foundation.org, hch@....de, cl@...ux.com,
42.hyeyoo@...il.com, penberg@...nel.org, rientjes@...gle.com,
iamjoonsoo.kim@....com, vbabka@...e.cz, David.Laight@...LAB.COM,
david@...hat.com, herbert@...dor.apana.org.au, davem@...emloft.net,
linux-crypto@...r.kernel.org, steffen.klassert@...unet.com,
netdev@...r.kernel.org, hca@...ux.ibm.com, gor@...ux.ibm.com,
agordeev@...ux.ibm.com, borntraeger@...ux.ibm.com,
svens@...ux.ibm.com, linux-s390@...r.kernel.org, michael@...le.cc,
linux-i2c@...r.kernel.org, wsa@...nel.org
Subject: Re: [PATCH 21/22] mmc: wbsd: Use dma_alloc_noncoherent() for dma
buffer
On Sat, Feb 19, 2022 at 08:52:20AM +0800, Baoquan He wrote:
> if (request_dma(dma, DRIVER_NAME))
> goto err;
>
> + dma_set_mask_and_coherent(mmc_dev(host->mmc), DMA_BIT_MASK(24));
This also sets the streaming mask, but the driver doesn't seem to make
use of that. Please document it in the commit log.
Also setting smaller than 32 bit masks can fail, so this should have
error handling.
Powered by blists - more mailing lists