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)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 11 Apr 2017 07:58:21 +0000 (10:58 +0300)
commit9f20dfb44d03745d0d3cef2ffb3abf8d8024fa61
treeb800d9d7527da0c10cf8f37c1f9a164cd0d66b4e
parenta2cfed43386c697e0aad0d14439eb62042a18afc
usb: gadget: dummy_hcd: Fix wrong power status bit clear/reset in dummy_hub_control()

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>
drivers/usb/gadget/udc/dummy_hcd.c