]> git.baikalelectronics.ru Git - kernel.git/commit
USB: fix usb_reset_device and usb_reset_composite_device(take 3)
authorMing Lei <tom.leiming@gmail.com>
Wed, 18 Jun 2008 14:00:29 +0000 (22:00 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 21 Jul 2008 22:16:33 +0000 (15:16 -0700)
commitf7557945269dc36242b18733504a4ca2a93d2c81
tree3aeeb95b66773ee60839c651a10d295117d87e88
parentc46c8ef92c14ce8aa535dafa03a194958301203d
USB: fix usb_reset_device and usb_reset_composite_device(take 3)

This patch renames the existing usb_reset_device in hub.c to
usb_reset_and_verify_device and renames the existing
usb_reset_composite_device to usb_reset_device. Also the new
usb_reset_and_verify_device does't need to be EXPORTED .

The idea of the patch is that external interface driver
should warn the other interfaces' driver of the same
device before and after reseting the usb device. One interface
driver shoud call _old_ usb_reset_composite_device instead of
_old_ usb_reset_device since it can't assume the device contains
only one interface. The _old_ usb_reset_composite_device
is safe for single interface device also. we rename the two
functions to make the change easily.

This patch is under guideline from Alan Stern.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
drivers/hid/usbhid/hid-core.c
drivers/usb/core/devio.c
drivers/usb/core/hub.c
drivers/usb/storage/transport.c
include/linux/usb.h