Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f0816ce3 authored by Oliver Neukum's avatar Oliver Neukum Committed by David S. Miller
Browse files

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: default avatarOliver Neukum <oliver@neukum.org>

Hi David,

please take this for the next merge window.

	Regards
		Oliver
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 43ab8502
Loading
Loading
Loading
Loading
+1 −10
Original line number Diff line number Diff line
@@ -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);