You need to sign in or sign up before continuing.
提交 f0816ce3 编写于 作者: O Oliver Neukum 提交者: David S. Miller

convert kaweth to use usb_reset_configuration()

For USB 3.0 it is necessary that all drivers use the standard
API to reset a configuration. This removes a home-grown
implementation.
Signed-off-by: NOliver Neukum <oliver@neukum.org>

Hi David,

please take this for the next merge window.

	Regards
		Oliver
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 43ab8502
...@@ -471,16 +471,7 @@ static int kaweth_reset(struct kaweth_device *kaweth) ...@@ -471,16 +471,7 @@ static int kaweth_reset(struct kaweth_device *kaweth)
int result; int result;
dbg("kaweth_reset(%p)", kaweth); dbg("kaweth_reset(%p)", kaweth);
result = kaweth_control(kaweth, result = usb_reset_configuration(kaweth->dev);
usb_sndctrlpipe(kaweth->dev, 0),
USB_REQ_SET_CONFIGURATION,
0,
kaweth->dev->config[0].desc.bConfigurationValue,
0,
NULL,
0,
KAWETH_CONTROL_TIMEOUT);
mdelay(10); mdelay(10);
dbg("kaweth_reset() returns %d.",result); dbg("kaweth_reset() returns %d.",result);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册