OSDN Git Service

usb: gadget: dummy_hcd: Fix wrong power status bit clear/reset in dummy_hub_control()
authorYuyang Du <yuyang.du@intel.com>
Thu, 23 Mar 2017 20:06:11 +0000 (04:06 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Mar 2018 08:23:26 +0000 (09:23 +0100)
commite7c4718ff04741e29d46d3e7a7ed5e03fadccc21
tree0f3d96e3768da0a5bfb77a79f33b72c6ed96bfb6
parented5fb5479972d0db84e3bdbb664ace6f3e8b0bca
usb: gadget: dummy_hcd: Fix wrong power status bit clear/reset in dummy_hub_control()

[ Upstream commit 9f20dfb44d03745d0d3cef2ffb3abf8d8024fa61 ]

This fixes the commit: 1cd8fd2887e1 ("usb: gadget: dummy_hcd: add
SuperSpeed support").

In the case of ClearPortFeature and USB_PORT_FEAT_POWER, simply clear
the right bit regardless of what the wValue is.

Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Yuyang Du <yuyang.du@intel.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/dummy_hcd.c