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

Skip to content
Commit a5a2e2ac authored by Saket Saurabh's avatar Saket Saurabh
Browse files

phy-msm-usb : Do clk_get for optional alt_core_clk after mandatory clk



Linux clock driver API implementation for clk_get() has changed where
it returns -EPROBE_DEFER when clock is not found. As "alt_core_clk"
is optional for msm_otg and calling clk_get() for "alt_core_clk"
is returning -EPROBE_DEFER, msm_otg_probe keeps on retrying and never
succeds.

Fixing the issue by doing clk_get() for optional "alt_core_clk" after
all mandatory clocks. If all the mandatory clock gets succeed, then
failure of the optional clock means the clock is not there and hence
do not reurn -EPROBE_DEFER for optional clock from msm_otg_probe.

CRs-Fixed: 590336
Change-Id: Ib9e9d509858b32a1e2933fee1c1233cf13e007e4
Signed-off-by: default avatarSaket Saurabh <ssaurabh@codeaurora.org>
parent 39e0d0b3
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