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
parent
355b1b61bc
commit
1e0b2f7717
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue