Thread (6 messages) 6 messages, 3 authors, 2021-03-31

Re: [PATCH] usb: gadget: aspeed: set port_dev dma mask

From: Christoph Hellwig <hch@lst.de>
Date: 2021-03-26 12:06:15
Also in: linux-arm-kernel, linux-aspeed, lkml, openbmc

On Fri, Mar 26, 2021 at 12:03:03PM +0000, Robin Murphy wrote:
This might happen to work out, but is far from correct. Just wait until you 
try it on a platform where the USB controller is behind an IOMMU...

It looks like something is more fundamentally wrong here - the device 
passed to DMA API calls must be the actual hardware device performing the 
DMA, which in USB-land I believe means the controller's sysdev.
The shiny new usb_intf_get_dma_device API provides the device to use.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help