mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
usb: gadget: lpc32xx_udc: don't use GFP_DMA when calling dma_alloc_coherent()
dma_alloc_coherent() allocates the DMA buffer with the device's addressing limitation in mind; the DMA core picks the zone from the device's coherent DMA mask and ignores GFP_DMA passed by the caller. Remove the redundant GFP_DMA flag. Link: https://lore.kernel.org/20260903111836.1777265-7-hebaoquan@kylinos.cn Signed-off-by: Baoquan He <hebaoquan@kylinos.cn> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Cc: Christoph Hellwig <hch@lst.de> Cc: Harry Yoo <harry@kernel.org>
This commit is contained in:
parent
5f0f758d36
commit
fd3d2126e7
|
|
@ -3080,7 +3080,7 @@ static int lpc32xx_udc_probe(struct platform_device *pdev)
|
|||
/* Allocate memory for the UDCA */
|
||||
udc->udca_v_base = dma_alloc_coherent(&pdev->dev, UDCA_BUFF_SIZE,
|
||||
&dma_handle,
|
||||
(GFP_KERNEL | GFP_DMA));
|
||||
GFP_KERNEL);
|
||||
if (!udc->udca_v_base) {
|
||||
dev_err(udc->dev, "error getting UDCA region\n");
|
||||
retval = -ENOMEM;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user