Philipp Tomsich
883946e8e7
usb: hub: identify the hub-device to usb_hub_reset_devices
...
When usb_hub_reset_devices is called, it should be passed both an
indicator which hub it should operate on and what port number (local
to that hub) should be reset.
Previously, the usb_hub.c code did not include such context and
always started resets from port number 1, performing multiple
reset-requests for the same devices:
/*
* Reset any devices that may be in a bad state when applying
* the power. This is a __weak function. Resetting of the devices
* should occur in the board file of the device.
*/
for (i = 0; i < dev->maxchild; i++)
usb_hub_reset_devices(i + 1);
This adds an additional 'hub' parameter to usb_hub_reset_devices
that provides the context to fully qualify the port-number in.
Existing implementations are changed to accept and ignore the new
parameter.
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tested-by: Jakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com>
2017-11-26 02:22:36 +01:00
..
2017-10-19 11:37:51 +08:00
2017-05-15 06:17:09 +02:00
2017-11-06 09:58:51 -05:00
2017-10-01 00:33:33 +02:00
2017-08-16 08:30:24 -04:00
2017-11-20 10:11:44 +01:00
2017-09-21 10:30:21 +08:00
2017-08-16 08:31:11 -04:00
2017-08-16 08:22:18 -04:00
2017-10-12 17:31:16 +02:00
2017-08-13 17:12:37 +02:00
2017-11-17 07:44:13 -05:00
2017-11-06 09:58:51 -05:00
2017-04-13 09:40:57 -04:00
2017-01-28 14:04:22 -05:00
2017-11-06 09:58:51 -05:00
2017-01-11 19:40:15 +09:00
2017-09-18 17:15:28 +02:00
2017-08-28 09:48:53 +02:00
2017-08-16 08:30:24 -04:00
2017-10-12 17:31:16 +02:00
2017-08-16 08:30:32 -04:00
2017-08-16 08:30:24 -04:00
2017-08-16 08:30:24 -04:00
2017-08-16 08:30:24 -04:00
2017-08-16 08:30:24 -04:00
2017-08-16 08:30:24 -04:00
2017-08-16 08:30:44 -04:00
2017-08-16 08:30:32 -04:00
2017-08-16 08:30:24 -04:00
2017-08-16 08:30:24 -04:00
2017-08-04 20:38:38 -04:00
2017-08-16 08:30:24 -04:00
2017-06-01 06:57:52 -06:00
2017-10-12 17:58:42 +02:00
2017-07-28 12:02:47 -06:00
2017-01-11 20:21:20 -07:00
2017-06-05 11:02:36 -04:00
2017-04-13 09:40:57 -04:00
2017-01-11 19:40:15 +09:00
2017-11-26 02:22:36 +01:00
2017-05-31 14:49:55 +02:00
2017-10-12 17:31:16 +02:00
2017-08-01 20:17:02 +08:00
2017-05-15 18:28:23 +09:00
2017-08-16 08:22:18 -04:00
2017-11-06 09:58:51 -05:00
2017-09-29 10:52:21 -04:00
2017-04-13 09:40:57 -04:00
2017-08-24 11:00:47 +08:00
2017-11-06 09:58:51 -05:00
2017-08-01 20:17:02 +08:00
2017-08-04 20:38:37 -04:00
2017-10-12 17:31:16 +02:00
2017-11-09 11:32:49 +01:00
2017-10-06 11:28:16 -04:00
2017-11-07 10:13:39 +01:00
2017-10-16 09:42:51 -04:00
2016-12-02 21:32:51 -05:00
2017-11-15 10:52:19 -08:00
2017-09-18 17:15:28 +02:00
2017-11-06 09:58:51 -05:00
2017-10-12 17:31:16 +02:00
2017-07-11 12:13:45 +02:00
2017-08-01 20:17:02 +08:00
2017-08-16 08:30:24 -04:00
2017-08-16 08:30:44 -04:00
2017-06-05 11:02:36 -04:00
2017-08-16 08:30:24 -04:00
2017-08-20 09:54:31 -04:00
2017-08-16 08:22:18 -04:00
2017-05-10 16:16:09 +02:00
2017-04-13 09:40:57 -04:00
2017-05-12 13:29:50 +02:00
2017-06-05 11:02:36 -04:00
2017-10-07 15:07:59 +08:00
2017-11-06 09:58:51 -05:00
2017-08-16 08:31:11 -04:00
2017-09-18 17:15:28 +02:00
2017-04-13 14:44:50 -06:00
2017-08-16 08:30:24 -04:00
2017-06-05 11:02:37 -04:00
2017-08-16 08:30:24 -04:00
2017-11-09 11:32:49 +01:00
2017-11-17 07:44:13 -05:00
2017-11-16 11:45:20 +01:00
2017-08-16 08:30:24 -04:00
2017-10-16 09:42:51 -04:00
2017-04-13 09:40:57 -04:00
2016-12-02 21:32:51 -05:00
2017-04-04 20:01:57 -06:00
2016-12-02 21:32:51 -05:00
2016-12-02 21:32:51 -05:00
2016-12-02 21:32:51 -05:00
2017-05-31 14:49:55 +02:00
2017-08-16 08:30:24 -04:00
2017-11-06 09:58:51 -05:00
2017-01-21 15:12:33 -05:00
2017-04-06 20:42:18 -04:00
2017-08-16 08:22:18 -04:00
2017-05-15 18:28:23 +09:00
2017-04-13 09:40:57 -04:00
2017-11-06 09:58:51 -05:00
2017-05-10 16:16:09 +02:00
2017-04-13 09:40:57 -04:00
2017-09-11 13:34:31 -04:00
2017-05-16 08:10:50 -04:00
2017-04-04 20:01:57 -06:00
2017-08-16 08:30:24 -04:00
2017-11-06 09:58:51 -05:00
2017-11-06 09:58:51 -05:00
2017-10-16 09:42:51 -04:00
2017-05-31 14:49:55 +02:00
2017-11-06 09:58:51 -05:00
2017-08-16 08:30:24 -04:00
2017-09-14 21:32:57 -04:00
2017-04-13 09:40:57 -04:00
2017-04-13 09:40:57 -04:00
2017-06-05 11:02:36 -04:00
2017-07-12 10:17:44 +02:00
2017-05-10 16:16:09 +02:00
2016-12-02 21:32:51 -05:00
2017-10-16 09:42:51 -04:00
2017-08-16 08:30:44 -04:00
2017-08-16 08:30:24 -04:00
2017-10-12 17:30:32 +02:00
2017-08-26 14:56:10 -04:00
2017-11-06 09:51:01 -05:00
2017-11-10 19:21:24 +05:30
2017-11-06 09:58:51 -05:00
2017-06-29 19:34:10 +03:00
2017-08-18 01:26:52 +02:00
2017-08-16 08:30:24 -04:00
2017-07-12 10:17:44 +02:00
2017-08-16 08:30:32 -04:00
2017-09-18 17:15:28 +02:00
2017-10-12 17:31:16 +02:00
2017-08-16 08:30:24 -04:00
2017-04-25 12:46:44 +02:00
2017-09-26 06:51:37 +02:00
2017-10-01 00:33:35 +02:00
2017-11-26 02:22:36 +01:00
2017-08-16 08:30:44 -04:00
2017-06-20 16:42:13 +02:00
2017-10-12 17:31:16 +02:00
2017-05-10 16:16:09 +02:00
2017-08-16 08:22:18 -04:00
2017-10-31 11:13:56 +01:00
2017-08-16 08:31:11 -04:00
2017-04-13 09:40:57 -04:00
2017-08-16 08:30:24 -04:00
2017-10-31 11:13:33 +01:00
2017-07-12 10:17:44 +02:00
2017-07-12 10:17:44 +02:00
2017-08-16 08:30:24 -04:00
2017-08-16 08:30:24 -04:00
2017-08-16 08:30:24 -04:00
2017-06-05 11:02:36 -04:00