Skip to contentSkip to conversation

convert kaweth to use usb_reset_configuration()

PATCH Applied Oliver Neukum 2 participants 2 messages Oct 29, 2009 – Oct 30, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

Hi David,

please take this for the next merge window.

Regards
Oliver

--

drivers/net/usb/kaweth.c +1 -10
@@ -471,16 +471,7 @@ static int kaweth_reset(struct kaweth_device *kaweth)
 	int result;
 
 	dbg("kaweth_reset(%p)", kaweth);
-	result = kaweth_control(kaweth,
-				usb_sndctrlpipe(kaweth->dev, 0),
-				USB_REQ_SET_CONFIGURATION,
-				0,
-				kaweth->dev->config[0].desc.bConfigurationValue,
-				0,
-				NULL,
-				0,
-				KAWETH_CONTROL_TIMEOUT);
-
+	result = usb_reset_configuration(kaweth->dev);
 	mdelay(10);
 
 	dbg("kaweth_reset() returns %d.",result);
maintainer Applied
#1 lore raw

From: Oliver Neukum <[email protected]>
Date: Thu, 29 Oct 2009 16:07:12 +0100

Quoted 9 lines

For USB 3.0 it is necessary that all drivers use the standard API to reset a configuration. This removes a home-grown implementation.

Hi David,

please take this for the next merge window.

Applied to net-next-2.6, thanks Oliver.