Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 9faa51df authored by Jack Pham's avatar Jack Pham
Browse files

usb: dwc3: msm: Attach IOMMU before DMA allocations



During dwc3_msm_probe() when of_platform_populate() is called, the
the dwc3 child probes and calls dwc3_gadget_init() which will
make several calls to allocate DMA memory. If IOMMU is used, make
sure that it is attached prior to this. We can detach it afterwards
and it will be reattached on subsequent connection/resume when
dwc3_msm_resume() is called. Also during resume, call attach before
performing dwc3_msm_power_collapse_por() which is performing DMA
allocations for re-init.

Change-Id: I38ee511c7f2cef1d6d01a4479c2c4f498efc048c
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 794d2b5d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment