mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 05:29:04 -04:00
usb: phy: qmp: add missing hardware orientation debug function
commit2a55b618e9("usb: phy: qmp: change orientation to default portselect mode") lost one debug function which added in commitdc47b6c05c("usb: phy: qmp: debug value of portselect pin"), add it back. Change-Id: Id5eb671c348e91f22c5a7a878d7016820087eb21 Signed-off-by: Linyu Yuan <linyyuan@codeaurora.org>
This commit is contained in:
parent
c0a8ba67dd
commit
f90ead0532
1 changed files with 7 additions and 0 deletions
|
|
@ -395,6 +395,13 @@ static void usb_qmp_update_portselect_phymode(struct msm_ssphy_qmp *phy)
|
|||
|
||||
writel_relaxed(0x00,
|
||||
phy->base + phy->phy_reg[USB3_DP_COM_SW_RESET]);
|
||||
|
||||
if (phy->phy_reg[USB3_DP_COM_TYPEC_STATUS]) {
|
||||
u32 status = readl_relaxed(phy->base +
|
||||
phy->phy_reg[USB3_DP_COM_TYPEC_STATUS]);
|
||||
dev_dbg(phy->phy.dev, "hw port select %s\n",
|
||||
status & PORTSELECT_RAW ? "CC2" : "CC1");
|
||||
}
|
||||
}
|
||||
|
||||
/* override hardware control for reset of qmp phy */
|
||||
|
|
|
|||
Loading…
Reference in a new issue