Skip to content
Commit bd17b85b authored by Mayank Rana's avatar Mayank Rana
Browse files

dwc3: gadget: Use sysdev device instead of gadget->dev.parent



Currently usb_gadget_unmap_request() is using usb controller device
node (i.e. example a600000.dwc3) instead of using sysdev which is
parent of usb controller device node (i.e. example a800000.ssusb).
IOMMU based page table is being created with sysdev device. Due to
passing wrong device node, dma_unmap_page() goes through default
architecture specific dma_ops() instead of IOMMU based dma_ops() and
cause page fault related crash. Fix this issue by passing correct usb
device information with unmap API.

Change-Id: Ifadc29d1f52e924c3d2b49fc34039748739caebc
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent 1d370db5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment