lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sun, 22 Jan 2017 01:37:39 +0000 From: Peter Chen <peter.chen@....com> To: Stephen Boyd <stephen.boyd@...aro.org>, Kishon Vijay Abraham I <kishon@...com> CC: "linux-arm-kernel@...ts.infradead.org" <linux-arm-kernel@...ts.infradead.org>, "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>, "linux-arm-msm@...r.kernel.org" <linux-arm-msm@...r.kernel.org>, Andy Gross <andy.gross@...aro.org>, "Bjorn Andersson" <bjorn.andersson@...aro.org>, Neil Armstrong <narmstrong@...libre.com>, Arnd Bergmann <arnd@...db.de>, Felipe Balbi <balbi@...nel.org>, "linux-usb@...r.kernel.org" <linux-usb@...r.kernel.org>, Greg Kroah-Hartman <gregkh@...uxfoundation.org> Subject: RE: [PATCH v7 4/5] usb: chipidea: Signal vbus state to phy > > 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
Powered by blists - more mailing lists