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

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

usb: dwc3-msm: Add support for IOMMU



On platforms where an IOMMU is used, create a mapping and attach
the platform device to it. This will allow DMA translations through
the IOMMU.

This mapping requires setting the DOMAIN_ATTR_ATOMIC flag, as USB
tends to call DMA map/unmap operations in interrupt context. Due to
the additional clock/regulator resource requirements this imposes,
we should not leave the MMU attached when USB is not in use. Hence
perform the MMU attach/detach operation in conjunction with the
resume/suspend functions when the cable is connected/removed.

Change-Id: I98326ba4ffacbf203969037ffa994ec825d74c78
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 42695fc0
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