* [RESEND PATCH] usb: hub: change CLEAR_FEATURE to SET_FEATURE
@ 2016-08-09 3:31 Yonglong Wu
[not found] ` <1470713487-7596-1-git-send-email-yonglong.wu-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Yonglong Wu @ 2016-08-09 3:31 UTC (permalink / raw)
To: Greg Kroah-Hartman
Cc: Yonglong Wu, djkurtz, srv_heupstream, Chunfeng Yun, linux-kernel,
linux-arm-kernel, linux-usb, linux-mediatek, Felipe Balbi,
Alan Stern
From: Yonglong Wu <yonglong.wu@mediatek.com>
According to USB30 specification, the Function Remote Wakeup field can be
modified by the SetFeature() requests. SetFeature() is recommended to use.
Signed-off-by: Yonglong Wu <yonglong.wu@mediatek.com>
---
drivers/usb/core/hub.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index bee1351..a6f5095 100644
--- a/drivers/usb/core/hub.c
+++ b/drivers/usb/core/hub.c
@@ -3111,7 +3111,7 @@ static int usb_disable_remote_wakeup(struct usb_device *udev)
USB_CTRL_SET_TIMEOUT);
else
return usb_control_msg(udev, usb_sndctrlpipe(udev, 0),
- USB_REQ_CLEAR_FEATURE, USB_RECIP_INTERFACE,
+ USB_REQ_SET_FEATURE, USB_RECIP_INTERFACE,
USB_INTRF_FUNC_SUSPEND, 0, NULL, 0,
USB_CTRL_SET_TIMEOUT);
}
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread[parent not found: <1470713487-7596-1-git-send-email-yonglong.wu-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>]
* Re: [RESEND PATCH] usb: hub: change CLEAR_FEATURE to SET_FEATURE [not found] ` <1470713487-7596-1-git-send-email-yonglong.wu-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org> @ 2016-08-09 6:29 ` Peter Chen [not found] ` <1470730076.4647.10.camel@mhfsdcap03> 0 siblings, 1 reply; 4+ messages in thread From: Peter Chen @ 2016-08-09 6:29 UTC (permalink / raw) To: Yonglong Wu Cc: Greg Kroah-Hartman, djkurtz-F7+t8E8rja9g9hUCZPvPmw, srv_heupstream-NuS5LvNUpcJWk0Htik3J/w, Chunfeng Yun, lkml, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Felipe Balbi, Alan Stern On Tue, Aug 9, 2016 at 11:31 AM, Yonglong Wu <yonglong.wu-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org> wrote: > From: Yonglong Wu <yonglong.wu-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org> > > According to USB30 specification, the Function Remote Wakeup field can be > modified by the SetFeature() requests. SetFeature() is recommended to use. > > Signed-off-by: Yonglong Wu <yonglong.wu-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org> > --- > drivers/usb/core/hub.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c > index bee1351..a6f5095 100644 > --- a/drivers/usb/core/hub.c > +++ b/drivers/usb/core/hub.c > @@ -3111,7 +3111,7 @@ static int usb_disable_remote_wakeup(struct usb_device *udev) > USB_CTRL_SET_TIMEOUT); > else > return usb_control_msg(udev, usb_sndctrlpipe(udev, 0), > - USB_REQ_CLEAR_FEATURE, USB_RECIP_INTERFACE, > + USB_REQ_SET_FEATURE, USB_RECIP_INTERFACE, > USB_INTRF_FUNC_SUSPEND, 0, NULL, 0, > USB_CTRL_SET_TIMEOUT); > } > -- > 1.7.9.5 > This requirement is so strange, would you please list the detail chapter at specification. Peter -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <1470730076.4647.10.camel@mhfsdcap03>]
* Re: [RESEND PATCH] usb: hub: change CLEAR_FEATURE to SET_FEATURE [not found] ` <1470730076.4647.10.camel@mhfsdcap03> @ 2016-08-09 8:25 ` Greg Kroah-Hartman 2016-08-09 8:59 ` Peter Chen 0 siblings, 1 reply; 4+ messages in thread From: Greg Kroah-Hartman @ 2016-08-09 8:25 UTC (permalink / raw) To: yonglong.wu Cc: Peter Chen, djkurtz, srv_heupstream, Chunfeng Yun, lkml, linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org, linux-mediatek, Felipe Balbi, Alan Stern On Tue, Aug 09, 2016 at 04:07:56PM +0800, yonglong.wu wrote: > Hi, > On Tue, 2016-08-09 at 14:29 +0800, Peter Chen wrote: > > On Tue, Aug 9, 2016 at 11:31 AM, Yonglong Wu <yonglong.wu@mediatek.com> wrote: > > From: Yonglong Wu <yonglong.wu@mediatek.com> > > > > According to USB30 specification, the Function Remote Wakeup field can be > > modified by the SetFeature() requests. SetFeature() is recommended to use. > > > > Signed-off-by: Yonglong Wu <yonglong.wu@mediatek.com> > > --- > > drivers/usb/core/hub.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c > > index bee1351..a6f5095 100644 > > --- a/drivers/usb/core/hub.c > > +++ b/drivers/usb/core/hub.c > > @@ -3111,7 +3111,7 @@ static int usb_disable_remote_wakeup(struct usb_device *udev) > > USB_CTRL_SET_TIMEOUT); > > else > > return usb_control_msg(udev, usb_sndctrlpipe(udev, 0), > > - USB_REQ_CLEAR_FEATURE, USB_RECIP_INTERFACE, > > + USB_REQ_SET_FEATURE, USB_RECIP_INTERFACE, > > USB_INTRF_FUNC_SUSPEND, 0, NULL, 0, > > USB_CTRL_SET_TIMEOUT); > > } > > -- > > 1.7.9.5 > > > > This requirement is so strange, would you please list the detail > chapter at specification. > > > In USB20 specification, describes in chapter 9.4.5: The Remote Wakeup field can > be modified by the SetFeature() and ClearFeature() requests using the > DEVICE_REMOTE_WAKEUP feature selector. > > In USB30 specification, also describes in chapter 9.4.5: The Function Remote > Wakeup field can be modified by the SetFeature() requests using the > FUNCTION_SUSPEND feature selector. > > In USB30 specification only mentioned SetFeature(). Can you put this information in the changelog text when you resend this again? thanks, greg k-h ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RESEND PATCH] usb: hub: change CLEAR_FEATURE to SET_FEATURE 2016-08-09 8:25 ` Greg Kroah-Hartman @ 2016-08-09 8:59 ` Peter Chen 0 siblings, 0 replies; 4+ messages in thread From: Peter Chen @ 2016-08-09 8:59 UTC (permalink / raw) To: Greg Kroah-Hartman Cc: yonglong.wu, djkurtz, srv_heupstream, Chunfeng Yun, lkml, linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org, linux-mediatek, Felipe Balbi, Alan Stern On Tue, Aug 9, 2016 at 4:25 PM, Greg Kroah-Hartman <gregkh@linuxfoundation.org> wrote: > On Tue, Aug 09, 2016 at 04:07:56PM +0800, yonglong.wu wrote: >> Hi, >> On Tue, 2016-08-09 at 14:29 +0800, Peter Chen wrote: >> >> On Tue, Aug 9, 2016 at 11:31 AM, Yonglong Wu <yonglong.wu@mediatek.com> wrote: >> > From: Yonglong Wu <yonglong.wu@mediatek.com> >> > >> > According to USB30 specification, the Function Remote Wakeup field can be >> > modified by the SetFeature() requests. SetFeature() is recommended to use. >> > >> > Signed-off-by: Yonglong Wu <yonglong.wu@mediatek.com> >> > --- >> > drivers/usb/core/hub.c | 2 +- >> > 1 file changed, 1 insertion(+), 1 deletion(-) >> > >> > diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c >> > index bee1351..a6f5095 100644 >> > --- a/drivers/usb/core/hub.c >> > +++ b/drivers/usb/core/hub.c >> > @@ -3111,7 +3111,7 @@ static int usb_disable_remote_wakeup(struct usb_device *udev) >> > USB_CTRL_SET_TIMEOUT); >> > else >> > return usb_control_msg(udev, usb_sndctrlpipe(udev, 0), >> > - USB_REQ_CLEAR_FEATURE, USB_RECIP_INTERFACE, >> > + USB_REQ_SET_FEATURE, USB_RECIP_INTERFACE, >> > USB_INTRF_FUNC_SUSPEND, 0, NULL, 0, >> > USB_CTRL_SET_TIMEOUT); >> > } >> > -- >> > 1.7.9.5 >> > >> >> This requirement is so strange, would you please list the detail >> chapter at specification. >> >> >> In USB20 specification, describes in chapter 9.4.5: The Remote Wakeup field can >> be modified by the SetFeature() and ClearFeature() requests using the >> DEVICE_REMOTE_WAKEUP feature selector. >> >> In USB30 specification, also describes in chapter 9.4.5: The Function Remote >> Wakeup field can be modified by the SetFeature() requests using the >> FUNCTION_SUSPEND feature selector. >> >> In USB30 specification only mentioned SetFeature(). > Thanks for your information, you may add chapter 9.4.9 Set Feature reference, It describes Function Remote Wake Enabled/Disabled at suspend options, then the reader can know we can use SET_FEATURE to disable function remote wakeup. Peter > Can you put this information in the changelog text when you resend this > again? > > thanks, > > greg k-h ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-08-09 8:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-09 3:31 [RESEND PATCH] usb: hub: change CLEAR_FEATURE to SET_FEATURE Yonglong Wu
[not found] ` <1470713487-7596-1-git-send-email-yonglong.wu-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
2016-08-09 6:29 ` Peter Chen
[not found] ` <1470730076.4647.10.camel@mhfsdcap03>
2016-08-09 8:25 ` Greg Kroah-Hartman
2016-08-09 8:59 ` Peter Chen
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox