Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1564273
| From | Peter Chen <peter.chen@nxp.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | RE: [PATCH v7 4/5] usb: chipidea: Signal vbus state to phy |
| Date | 2017-01-22 02:40 +0100 |
| Message-ID | <t2fip-2He-9@gated-at.bofh.it> (permalink) |
| References | <t1MzL-2qZ-3@gated-at.bofh.it> <t1MzL-2qZ-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
>
> 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
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v7 4/5] usb: chipidea: Signal vbus state to phy Stephen Boyd <stephen.boyd@linaro.org> - 2017-01-20 20:00 +0100 RE: [PATCH v7 4/5] usb: chipidea: Signal vbus state to phy Peter Chen <peter.chen@nxp.com> - 2017-01-22 02:40 +0100
csiph-web