Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1458386

[RESEND PATCH] usb: hub: change CLEAR_FEATURE to SET_FEATURE

From Yonglong Wu <yonglong.wu@mediatek.com>
Newsgroups linux.kernel
Subject [RESEND PATCH] usb: hub: change CLEAR_FEATURE to SET_FEATURE
Date 2016-08-09 05:40 +0200
Message-ID <s463v-240-5@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[RESEND PATCH] usb: hub: change CLEAR_FEATURE to SET_FEATURE Yonglong Wu <yonglong.wu@mediatek.com> - 2016-08-09 05:40 +0200
  Re: [RESEND PATCH] usb: hub: change CLEAR_FEATURE to SET_FEATURE Peter Chen <hzpeterchen@gmail.com> - 2016-08-09 08:30 +0200
    Re: [RESEND PATCH] usb: hub: change CLEAR_FEATURE to SET_FEATURE Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2016-08-09 10:30 +0200
      Re: [RESEND PATCH] usb: hub: change CLEAR_FEATURE to SET_FEATURE Peter Chen <hzpeterchen@gmail.com> - 2016-08-09 11:00 +0200

csiph-web