RE: [PATCH v7 4/5] usb: chipidea: Signal vbus state to phy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 
>
> drivers/usb/chipidea/otg.c | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
>diff --git a/drivers/usb/chipidea/otg.c b/drivers/usb/chipidea/otg.c index
>10236fe71522..6ea702beed48 100644
>--- a/drivers/usb/chipidea/otg.c
>+++ b/drivers/usb/chipidea/otg.c
>@@ -134,10 +134,13 @@ void ci_handle_vbus_change(struct ci_hdrc *ci)
> 	if (!ci->is_otg)
> 		return;
>
>-	if (hw_read_otgsc(ci, OTGSC_BSV) && !ci->vbus_active)
>+	if (hw_read_otgsc(ci, OTGSC_BSV) && !ci->vbus_active) {
> 		usb_gadget_vbus_connect(&ci->gadget);
>-	else if (!hw_read_otgsc(ci, OTGSC_BSV) && ci->vbus_active)
>+		phy_set_vbus(ci->phy, 1);
>+	} else if (!hw_read_otgsc(ci, OTGSC_BSV) && ci->vbus_active) {
>+		phy_set_vbus(ci->phy, 0);
> 		usb_gadget_vbus_disconnect(&ci->gadget);
>+	}
> }
>
You can add my ack if you accept the name of phy_notify_vbus.

Peter

--
To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [Linux for Sparc]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux