From: Binyuan Lan Date: Thu, 29 Sep 2016 12:01:55 +0000 (+0800) Subject: usb: phy-rockchip-inno-usb2: fix wrong charging state when otg host connect X-Git-Tag: firefly_0821_release~1448 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7b2fd8b3f59b8ccce3b8df3f11e528e934866b41;p=firefly-linux-kernel-4.4.55.git usb: phy-rockchip-inno-usb2: fix wrong charging state when otg host connect No need notify charging-external-connector state when otg host connect. Change-Id: I1d5c6e4fb2ad504f169ef0fd5b82b06f31783922 Signed-off-by: Binyuan Lan --- diff --git a/drivers/phy/phy-rockchip-inno-usb2.c b/drivers/phy/phy-rockchip-inno-usb2.c index 6b819162ac22..644c61d15db2 100644 --- a/drivers/phy/phy-rockchip-inno-usb2.c +++ b/drivers/phy/phy-rockchip-inno-usb2.c @@ -678,9 +678,9 @@ static void rockchip_usb2phy_otg_sm_work(struct work_struct *work) rport->state = OTG_STATE_B_IDLE; rockchip_usb2phy_power_off(rport->phy); } - break; + return; default: - break; + return; } if (extcon_get_state(rphy->edev, cable) != rport->vbus_attached)