Johan Hovold
1825575001
USB: core: add helpers to retrieve endpoints
...
commit 66a359390e upstream.
Many USB drivers iterate over the available endpoints to find required
endpoints of a specific type and direction. Typically the endpoints are
required for proper function and a missing endpoint should abort probe.
To facilitate code reuse, add a helper to retrieve common endpoints
(bulk or interrupt, in or out) and four wrappers to find a single
endpoint.
Note that the helpers are marked as __must_check to serve as a reminder
to always verify that all expected endpoints are indeed present. This
also means that any optional endpoints, typically need to be looked up
through separate calls.
Signed-off-by: Johan Hovold <johan@kernel.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2020-09-23 08:46:11 +02:00
..
2020-01-14 20:04:28 +01:00
2020-06-03 08:16:31 +02:00
2020-06-30 15:38:36 -04:00
2020-06-03 08:16:46 +02:00
2020-01-29 10:24:34 +01:00
2020-06-30 15:38:42 -04:00
2020-01-23 08:19:43 +01:00
2020-07-09 09:35:55 +02:00
2020-06-20 10:24:21 +02:00
2020-06-30 15:38:27 -04:00
2019-12-21 10:41:08 +01:00
2020-01-12 11:24:13 +01:00
2019-12-21 10:41:44 +01:00
2020-01-29 10:24:41 +01:00
2020-06-30 15:38:29 -04:00
2020-09-12 11:47:36 +02:00
2020-05-20 08:15:31 +02:00
2020-09-12 11:47:36 +02:00
2020-05-20 08:15:32 +02:00
2020-01-04 13:39:17 +01:00
2020-07-22 09:10:49 +02:00
2020-07-22 09:10:48 +02:00
2020-05-20 08:15:41 +02:00
2020-04-24 07:58:53 +02:00
2020-09-12 11:47:36 +02:00
2020-01-29 10:24:28 +01:00
2019-12-21 10:41:09 +01:00
2020-01-12 11:24:13 +01:00
2020-09-03 11:21:19 +02:00
2020-06-30 15:38:29 -04:00
2020-09-03 11:21:21 +02:00
2020-04-02 17:20:27 +02:00
2019-12-05 15:35:02 +01:00
2020-06-30 15:38:32 -04:00
2020-09-12 11:47:31 +02:00
2020-01-04 13:41:08 +01:00
2020-09-12 11:47:36 +02:00
2020-05-10 10:28:03 +02:00
2020-01-12 11:24:25 +01:00
2020-08-21 11:02:10 +02:00
2020-07-31 16:44:05 +02:00
2019-12-21 10:41:37 +01:00
2020-06-20 10:24:16 +02:00
2020-01-14 20:04:25 +01:00
2020-06-30 15:38:33 -04:00
2020-04-02 17:20:40 +02:00
2020-05-02 17:23:11 +02:00
2020-09-12 11:47:37 +02:00
2020-01-04 13:41:02 +01:00
2020-02-28 15:42:30 +01:00
2020-09-12 11:47:34 +02:00
2020-06-03 08:16:42 +02:00
2020-08-21 11:02:11 +02:00
2020-06-11 09:22:23 +02:00
2020-05-27 16:42:00 +02:00
2020-06-30 15:38:39 -04:00
2020-09-03 11:21:22 +02:00
2020-05-27 16:41:52 +02:00
2020-04-24 07:59:12 +02:00
2020-03-20 09:07:43 +01:00
2020-05-20 08:15:36 +02:00
2020-01-23 08:19:33 +01:00
2020-05-20 08:15:32 +02:00
2020-08-21 11:01:52 +02:00
2020-01-04 13:40:50 +01:00
2019-12-21 10:42:08 +01:00
2020-08-21 11:01:52 +02:00
2020-02-28 15:42:30 +01:00
2020-04-24 07:58:54 +02:00
2020-04-02 17:20:39 +02:00
2019-12-21 10:40:50 +01:00
2020-01-29 10:24:30 +01:00
2020-07-31 16:44:06 +02:00
2019-12-21 10:42:25 +01:00
2020-08-21 11:01:56 +02:00
2020-05-20 08:15:37 +02:00
2020-09-12 11:47:35 +02:00
2020-09-23 08:46:11 +02:00
2020-05-02 17:23:10 +02:00
2020-04-02 17:20:39 +02:00
2020-08-21 11:01:55 +02:00