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

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

dwc3-msm: Don't perform additional USB PHY reset and initialization



For first USB cable connect case used initialization sequence:
1. dwc3_core_pre_init()
2. dwc3_core_init()
3. dwc3_event_buffers_setup()

For next USB cable connect case used initialization sequence:
1. dwc3_core_init()
2. dwc3_event_buffers_setup()

dwc3_core_pre_init() is performing below set of operations:
a. dwc3_cache_hwparams()
b. dwc3_alloc_event_buffers()
c. dwc3_core_init()
d. dwc3_event_buffers_setup()

dwc3_core_init() performs below operations.
1. phy_reset
2. phy_initialization
3. core soft reset
4. dr_mode based device and host mode configuration

This change is trying to fix first USB cable connect case scenario by
removing dwc3_core_init() and dwc3_event_buffers_setup() API usage from
dwc3_core_pre_init() API. With this, dwc3_core_init() is used once for
first USB cable connect which removes additional USB PHY reset and
initialization. It has been observed in some case back to back USB PHY
reset and initialization results into USB high speed PHY PLL doesn't
lock as expected. This change fixes this issue.

Change-Id: I0741cb8fd8e247530a423f57e8e81d53e7438ce2
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent b0201565
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