1
0
Fork 0

LF-705-1 usb: chipidea: udc: delete the redundancy code

Delete the redundancy code

Signed-off-by: Peter Chen <peter.chen@nxp.com>
5.4-rM2-2.2.x-imx-squashed
Peter Chen 2020-01-03 14:18:26 +08:00
parent 355b1b61bc
commit 1e0b2f7717
No known key found for this signature in database
GPG Key ID: 4859298150D671BB
1 changed files with 3 additions and 7 deletions

View File

@ -1536,14 +1536,10 @@ static int ci_udc_vbus_session(struct usb_gadget *_gadget, int is_active)
gadget_ready = 1;
spin_unlock_irqrestore(&ci->lock, flags);
if (ci->usb_phy)
usb_phy_set_charger_state(ci->usb_phy, is_active ?
USB_CHARGER_PRESENT : USB_CHARGER_ABSENT);
/* Charger Detection */
ci_usb_charger_connect(ci, is_active);
if (ci->usb_phy) {
/* Charger Detection */
ci_usb_charger_connect(ci, is_active);
if (is_active)
usb_phy_set_event(ci->usb_phy, USB_EVENT_VBUS);
else