Loading drivers/usb/phy/phy-msm-ssusb-qmp.c +4 −1 Original line number Diff line number Diff line Loading @@ -742,7 +742,8 @@ static int msm_ssphy_qmp_notify_connect(struct usb_phy *uphy, dev_dbg(uphy->dev, "QMP phy connect notification\n"); phy->cable_connected = true; dev_dbg(uphy->dev, "cable_connected=%d\n", phy->cable_connected); atomic_notifier_call_chain(&uphy->notifier, 1, uphy); return 0; } Loading @@ -752,6 +753,7 @@ static int msm_ssphy_qmp_notify_disconnect(struct usb_phy *uphy, struct msm_ssphy_qmp *phy = container_of(uphy, struct msm_ssphy_qmp, phy); atomic_notifier_call_chain(&uphy->notifier, 0, uphy); writel_relaxed(0x00, phy->base + phy->phy_reg[USB3_PHY_POWER_DOWN_CONTROL]); readl_relaxed(phy->base + phy->phy_reg[USB3_PHY_POWER_DOWN_CONTROL]); Loading @@ -759,6 +761,7 @@ static int msm_ssphy_qmp_notify_disconnect(struct usb_phy *uphy, dev_dbg(uphy->dev, "QMP phy disconnect notification\n"); dev_dbg(uphy->dev, " cable_connected=%d\n", phy->cable_connected); phy->cable_connected = false; return 0; } Loading Loading
drivers/usb/phy/phy-msm-ssusb-qmp.c +4 −1 Original line number Diff line number Diff line Loading @@ -742,7 +742,8 @@ static int msm_ssphy_qmp_notify_connect(struct usb_phy *uphy, dev_dbg(uphy->dev, "QMP phy connect notification\n"); phy->cable_connected = true; dev_dbg(uphy->dev, "cable_connected=%d\n", phy->cable_connected); atomic_notifier_call_chain(&uphy->notifier, 1, uphy); return 0; } Loading @@ -752,6 +753,7 @@ static int msm_ssphy_qmp_notify_disconnect(struct usb_phy *uphy, struct msm_ssphy_qmp *phy = container_of(uphy, struct msm_ssphy_qmp, phy); atomic_notifier_call_chain(&uphy->notifier, 0, uphy); writel_relaxed(0x00, phy->base + phy->phy_reg[USB3_PHY_POWER_DOWN_CONTROL]); readl_relaxed(phy->base + phy->phy_reg[USB3_PHY_POWER_DOWN_CONTROL]); Loading @@ -759,6 +761,7 @@ static int msm_ssphy_qmp_notify_disconnect(struct usb_phy *uphy, dev_dbg(uphy->dev, "QMP phy disconnect notification\n"); dev_dbg(uphy->dev, " cable_connected=%d\n", phy->cable_connected); phy->cable_connected = false; return 0; } Loading