usb: hub: change CLEAR_FEATURE to SET_FEATURE
commitcaba5960bdb0bae8b432e3664e425b2b53631771
authorYonglong Wu <yonglong.wu@mediatek.com>
Fri, 19 Aug 2016 03:37:26 +0000 (19 11:37 +0800)
committerJiri Slaby <jslaby@suse.cz>
Tue, 8 Nov 2016 15:38:31 +0000 (8 16:38 +0100)
treed0616469d94bc417f93e5b37c857e12ae80ff9e4
parente50a611253c70bdb3fad29b7a3411c3b1237cc8e
usb: hub: change CLEAR_FEATURE to SET_FEATURE

commit 4e248000e0d3b406bd6612186835467f2f84486e upstream.

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 chapter 9.4.9 Set
Feature reference, it describes Function Remote Wake Enabled/Disabled
at suspend options by SET_FEATURE.

In USB30 specification only mentioned SetFeature(), so we need use
SET_FEATURE replace CLEAR_FEATURE to disable USB30 function remote
wakeup in suspend options.

Signed-off-by: Yonglong Wu <yonglong.wu@mediatek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/usb/core/hub.c