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

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

usb: dwc3-msm: Get otg_xceiv directly from dwc3_otg



Obtain a pointer to the usb_otg structure directly via the core
dwc3 structure rather than using usb_get_phy() to retrieve it.
By doing so this avoids the potential of getting an incorrect
PHY registered by another driver (if multiple USB instances are
present), and clumsily having to identify if it's the correct one.
Also remove the dwc3_otg_register_phys() function as the OTG PHY
now no longer needs to be registered.

Change-Id: Id8c9dd265893b3c798594d980af2835ab1e40b02
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 9db42d39
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