Skip to content

Commit 7b2fd8b

Browse files
Binyuan Lanrkhuangtao
authored andcommitted
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>
1 parent 7683080 commit 7b2fd8b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/phy/phy-rockchip-inno-usb2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -678,9 +678,9 @@ static void rockchip_usb2phy_otg_sm_work(struct work_struct *work)
678678
rport->state = OTG_STATE_B_IDLE;
679679
rockchip_usb2phy_power_off(rport->phy);
680680
}
681-
break;
681+
return;
682682
default:
683-
break;
683+
return;
684684
}
685685

686686
if (extcon_get_state(rphy->edev, cable) != rport->vbus_attached)

0 commit comments

Comments
 (0)