Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

Hi David,

please take this for the next merge window.

Regards
Oliver
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Oliver Neukum and committed by
David S. Miller
f0816ce3 43ab8502

+1 -10
+1 -10
drivers/net/usb/kaweth.c
··· 471 471 int result; 472 472 473 473 dbg("kaweth_reset(%p)", kaweth); 474 - result = kaweth_control(kaweth, 475 - usb_sndctrlpipe(kaweth->dev, 0), 476 - USB_REQ_SET_CONFIGURATION, 477 - 0, 478 - kaweth->dev->config[0].desc.bConfigurationValue, 479 - 0, 480 - NULL, 481 - 0, 482 - KAWETH_CONTROL_TIMEOUT); 483 - 474 + result = usb_reset_configuration(kaweth->dev); 484 475 mdelay(10); 485 476 486 477 dbg("kaweth_reset() returns %d.",result);