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 <lby@rock-chips.com>
This commit is contained in:
Binyuan Lan
2016-09-29 20:01:55 +08:00
committed by Huang, Tao
parent 76830805a1
commit 7b2fd8b3f5

View File

@@ -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)