linux/drivers/hid/usbhid
Alan Stern f07600cf9e USB: add reset_resume method
This patch (as918) introduces a new USB driver method: reset_resume.
It is called when a device needs to be reset as part of a resume
procedure (whether because of a device quirk or because of the
USB-Persist facility), thereby taking over a role formerly assigned to
the post_reset method.  As a consequence, post_reset no longer needs
an argument indicating whether it is being called as part of a
reset-resume.  This separation of functions makes the code clearer.

In addition, the pre_reset and post_reset method return types are
changed; they now must return an error code.  The return value is
unused at present, but at some later time we may unbind drivers and
re-probe if they encounter an error during reset handling.

The existing pre_reset and post_reset methods in the usbhid,
usb-storage, and hub drivers are updated to match the new
requirements.  For usbhid the post_reset routine is also used for
reset_resume (duplicate method pointers); for the other drivers a new
reset_resume routine is added.  The change to hub.c looks bigger than
it really is, because mark_children_for_reset_resume() gets moved down
next to the new hub_reset_resume() routine.

A minor change to usb-storage makes the usb_stor_report_bus_reset()
routine acquire the host lock instead of requiring the caller to hold
it already.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
CC: Matthew Dharm <mdharm-usb@one-eyed-alien.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2007-07-12 16:34:30 -07:00
..
hid-core.c USB: add reset_resume method 2007-07-12 16:34:30 -07:00
hid-ff.c USB HID: add FF support for Logitech Force 3D Pro Joystick 2007-04-11 10:36:03 +02:00
hid-lgff.c HID: make debugging output runtime-configurable 2007-07-09 14:03:35 +02:00
hid-pidff.c HID: fix autocentering of PID devices 2007-07-09 14:13:35 +02:00
hid-plff.c HID: switch to using input_dev->dev.parent 2007-05-09 10:17:31 +02:00
hid-quirks.c Merge branches 'debug-module-param' and 'upstream' into for-linus 2007-07-09 14:23:37 +02:00
hid-tmff.c HID: make debugging output runtime-configurable 2007-07-09 14:03:35 +02:00
hid-zpff.c HID: make debugging output runtime-configurable 2007-07-09 14:03:35 +02:00
hiddev.c HID: make debugging output runtime-configurable 2007-07-09 14:03:35 +02:00
Kconfig USB HID: update CONFIG_USB_HIDINPUT_POWERBOOK description 2007-05-09 02:52:51 +02:00
Makefile USB HID: encapsulate quirk handling into hid-quirks.c 2007-04-19 13:27:04 +02:00
usbhid.h
usbkbd.c HID: make debugging output runtime-configurable 2007-07-09 14:03:35 +02:00
usbmouse.c HID: switch to using input_dev->dev.parent 2007-05-09 10:17:31 +02:00