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
..
2007-05-08 11:15:00 -07:00
2007-05-08 11:15:16 -07:00
2007-05-14 19:33:46 -04:00
2007-06-18 09:23:47 -07:00
2007-05-11 12:14:15 +01:00
2007-07-10 22:18:20 -07:00
2007-05-10 23:47:43 -07:00
2007-07-10 22:18:17 -07:00
2007-07-10 22:16:55 -07:00
2007-05-23 20:14:14 -07:00
2007-06-16 13:16:16 -07:00
2007-07-10 08:04:14 +02:00
2007-07-12 16:29:50 -07:00
2007-05-10 03:52:22 -04:00
2007-07-11 16:02:08 -07:00
2007-05-11 08:29:37 -07:00
2007-05-11 08:29:37 -07:00
2007-05-11 08:29:36 -07:00
2007-07-10 21:46:03 -04:00
2007-05-11 05:38:26 -04:00
2007-05-17 05:23:05 -07:00
2007-07-10 08:03:32 +02:00
2007-06-01 08:18:27 -07:00
2007-05-07 12:12:55 -07:00
2007-05-23 20:14:12 -07:00
2007-05-08 11:15:15 -07:00
2007-05-09 12:30:56 -07:00
2007-05-14 12:16:01 -07:00
2007-05-09 12:30:56 -07:00
2007-05-09 12:30:56 -07:00
2007-05-09 12:30:56 -07:00
2007-05-07 12:13:00 -07:00
2007-05-21 09:56:57 -07:00
2007-06-08 17:23:34 -07:00
2007-05-08 11:15:27 -07:00
2007-05-08 11:15:13 -07:00
2007-05-08 11:15:05 -07:00
2007-05-05 14:55:20 -07:00
2007-05-02 19:27:09 +02:00
2007-05-10 18:24:13 +02:00
2007-05-08 11:15:25 -07:00
2007-05-08 11:15:03 -07:00
2007-07-11 16:09:00 -07:00
2007-07-11 16:09:06 -07:00
2007-05-08 11:15:26 -07:00
2007-07-09 08:22:54 +01:00
2007-07-09 08:22:33 +01:00
2007-07-09 08:23:17 +01:00
2007-07-11 16:09:00 -07:00
2007-05-08 11:15:14 -07:00
2007-07-12 10:55:56 -07:00
2007-07-08 22:16:36 -04:00
2007-05-08 11:15:10 -07:00
2007-05-07 12:12:58 -07:00
2007-05-02 19:27:12 +02:00
2007-05-02 19:27:17 +02:00
2007-06-01 08:18:29 -07:00
2007-07-10 22:16:21 -07:00
2007-05-03 13:17:25 -07:00
2007-06-28 11:34:53 -07:00
2007-05-09 08:57:56 +02:00
2007-05-08 11:15:12 -07:00
2007-05-31 16:20:15 -04:00
2007-05-31 16:20:14 -04:00
2007-05-31 16:20:15 -04:00
2007-06-01 08:18:28 -07:00
2007-05-06 20:38:28 -04:00
2007-07-10 00:07:45 +02:00
2007-05-10 18:24:13 +02:00
2007-05-08 11:15:31 -07:00
2007-05-23 20:14:11 -07:00
2007-07-10 08:04:15 +02:00
2007-06-18 09:48:41 -07:00
2007-05-09 08:58:16 +02:00
2007-05-23 20:14:12 -07:00
2007-05-09 12:30:56 -07:00
2007-07-09 08:23:12 +01:00
2007-07-10 00:35:17 -04:00
2007-07-09 18:51:58 +02:00
2007-07-09 14:23:37 +02:00
2007-05-09 12:30:56 -07:00
2007-06-16 13:16:16 -07:00
2007-05-09 08:58:21 +02:00
2007-05-09 08:58:21 +02:00
2007-05-11 16:56:02 +02:00
2007-07-12 14:12:29 +02:00
2007-07-09 23:17:58 +02:00
2007-07-11 16:09:03 -07:00
2007-05-05 11:43:04 -07:00
2007-05-21 19:41:19 -04:00
2007-07-10 22:15:03 -07:00
2007-07-10 22:15:58 -07:00
2007-07-10 22:15:58 -07:00
2007-07-10 22:15:58 -07:00
2007-07-10 22:16:42 -07:00
2007-07-11 19:45:24 -07:00
2007-06-22 17:04:27 -07:00
2007-05-11 08:29:36 -07:00
2007-05-19 09:11:58 +02:00
2007-07-10 00:35:17 -04:00
2007-05-11 08:29:34 -07:00
2007-05-15 08:54:00 -07:00
2007-07-10 13:43:25 +02:00
2007-05-08 11:15:00 -07:00
2007-07-10 22:56:31 -07:00
2007-07-10 22:16:44 -07:00
2007-05-08 11:15:09 -07:00
2007-05-08 11:15:16 -07:00
2007-07-07 13:49:51 -07:00
2007-07-10 22:15:58 -07:00
2007-05-08 11:15:04 -07:00
2007-06-08 17:23:34 -07:00
2007-05-08 11:15:07 -07:00
2007-05-17 05:23:04 -07:00
2007-07-11 16:09:08 -07:00
2007-05-08 11:15:19 -07:00
2007-05-09 12:30:53 -07:00
2007-07-10 22:15:26 -07:00
2007-05-03 10:52:32 +03:00
2007-07-10 21:30:33 -04:00
2007-05-12 18:11:06 -07:00
2007-05-18 20:46:30 -07:00
2007-05-08 11:15:07 -07:00
2007-07-10 17:51:13 -07:00
2007-05-11 08:29:36 -07:00
2007-05-14 18:51:43 +02:00
2007-05-08 11:15:18 -07:00
2007-05-09 12:30:49 -07:00
2007-05-09 08:58:21 +02:00
2007-05-07 12:12:57 -07:00
2007-05-17 14:20:29 -07:00
2007-05-03 10:52:22 +03:00
2007-05-10 09:26:52 -07:00
2007-06-21 15:55:12 -07:00
2007-05-09 12:30:56 -07:00
2007-05-08 11:15:00 -07:00
2007-05-02 20:58:08 +02:00
2007-05-11 08:29:35 -07:00
2007-05-09 07:14:03 +02:00
2007-05-11 08:29:35 -07:00
2007-05-08 11:15:13 -07:00
2007-05-02 19:02:38 -07:00
2007-05-09 12:30:49 -07:00
2007-07-10 17:33:05 +01:00
2007-07-11 19:32:02 -07:00
2007-05-03 03:36:16 -07:00
2007-07-10 22:18:21 -07:00
2007-05-05 11:42:03 -07:00
2007-05-09 12:30:54 -07:00
2007-05-14 19:33:45 -04:00
2007-05-08 11:15:21 -07:00
2007-05-24 10:44:20 -04:00
2007-05-09 12:30:56 -07:00
2007-05-08 11:15:00 -07:00
2007-05-04 17:59:07 -07:00
2007-05-07 12:12:59 -07:00
2007-05-08 11:14:57 -07:00
2007-05-08 11:15:05 -07:00
2007-05-08 11:15:05 -07:00
2007-05-05 14:15:32 -07:00
2007-07-09 12:17:34 -04:00
2007-05-02 18:57:59 -07:00
2007-07-12 13:40:57 -07:00
2007-07-12 13:41:29 -07:00
2007-07-10 11:25:59 +01:00
2007-05-02 19:27:11 +02:00
2007-05-08 11:15:14 -07:00
2007-05-08 11:15:00 -07:00
2007-05-11 08:29:35 -07:00
2007-07-10 08:04:16 +02:00
2007-07-11 19:46:26 -07:00
2007-07-10 22:16:22 -07:00
2007-07-11 16:09:02 -07:00
2007-05-10 21:28:13 +10:00
2007-05-08 11:15:23 -07:00
2007-05-08 11:14:57 -07:00
2007-07-10 11:25:44 +01:00
2007-05-08 11:15:01 -07:00
2007-05-07 12:12:54 -07:00
2007-05-08 11:15:15 -07:00
2007-05-08 11:15:05 -07:00
2007-05-09 08:57:56 +02:00
2007-05-08 11:15:00 -07:00
2007-05-09 12:30:51 -07:00
2007-06-07 13:39:34 -07:00
2007-05-17 05:23:06 -07:00
2007-05-08 11:15:18 -07:00
2007-07-10 22:15:40 -07:00
2007-07-09 18:52:01 +02:00
2007-07-12 10:55:54 -07:00
2007-07-11 22:52:29 -04:00
2007-07-10 17:51:13 -07:00
2007-06-01 08:18:29 -07:00
2007-05-07 12:12:50 -07:00
2007-07-12 14:12:31 +02:00
2007-05-11 08:29:36 -07:00
2007-05-11 08:29:36 -07:00
2007-07-10 22:41:55 -07:00
2007-05-17 05:23:03 -07:00
2007-06-24 08:59:12 -07:00
2007-06-16 13:16:16 -07:00
2007-06-24 08:59:11 -07:00
2007-05-21 21:47:27 -07:00
2007-05-17 05:23:04 -07:00
2007-07-10 22:15:58 -07:00
2007-05-09 08:58:21 +02:00
2007-05-08 11:15:11 -07:00
2007-07-10 08:04:14 +02:00
2007-05-08 11:14:58 -07:00
2007-05-08 11:15:18 -07:00
2007-05-09 12:56:01 -07:00
2007-05-09 12:30:57 -07:00
2007-05-11 08:29:34 -07:00
2007-06-28 11:38:30 -07:00
2007-07-11 16:09:06 -07:00
2007-07-11 16:09:09 -07:00
2007-05-21 09:18:19 -07:00
2007-05-08 22:41:47 +02:00
2007-05-08 11:15:18 -07:00
2007-05-29 18:11:10 -07:00
2007-05-11 08:29:36 -07:00
2007-07-09 18:52:01 +02:00
2007-05-11 08:29:35 -07:00
2007-05-11 08:29:35 -07:00
2007-05-08 11:15:04 -07:00
2007-07-10 22:15:57 -07:00
2007-05-03 00:55:34 -04:00
2007-05-07 12:12:58 -07:00
2007-07-12 16:34:30 -07:00
2007-05-08 11:15:00 -07:00
2007-06-08 08:21:15 -03:00
2007-05-08 11:15:04 -07:00
2007-05-09 12:30:56 -07:00
2007-05-08 11:15:33 -07:00
2007-07-09 18:52:01 +02:00
2007-05-18 08:17:17 -07:00
2007-05-21 09:18:19 -07:00
2007-05-04 12:55:39 -07:00