]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerSasha Levin <alexander.levin@microsoft.com>
Wed, 23 May 2018 01:33:45 +0000 (21:33 -0400)
commit8ca8c0877c596a268dd7d1a96fd97d4abd61f831
treeca318da0a67329e74e885df5ef5406a3715a70b4
parentaa828d0ec8e6b2ce6fdd6fc9ac73ee0e3b4d7232
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>
drivers/usb/gadget/udc/dummy_hcd.c