Files
android_kernel_xiaomi_sm8450/include/linux
Takashi Iwai e901b98738 usb: core: Add a helper function to check the validity of EP type in URB
This patch adds a new helper function to perform a sanity check of the
given URB to see whether it contains a valid endpoint.  It's a light-
weight version of what usb_submit_urb() does, but without the kernel
warning followed by the stack trace, just returns an error code.

Especially for a driver that doesn't parse the descriptor but fills
the URB with the fixed endpoint (e.g. some quirks for non-compliant
devices), this kind of check is preferable at the probe phase before
actually submitting the urb.

Tested-by: Andrey Konovalov <andreyknvl@google.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2017-10-11 15:14:32 +02:00
..
2017-09-06 19:56:49 +02:00
2017-10-04 10:22:55 +02:00
2016-07-08 16:23:11 +02:00
2010-10-15 21:18:59 +02:00
2017-09-01 16:35:50 -05:00
2010-11-23 20:14:46 +00:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2012-10-08 13:50:20 +10:30
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2011-03-11 14:25:50 +00:00
2017-06-08 18:52:36 -07:00
2017-09-08 18:26:49 -07:00
2017-07-17 17:26:14 +02:00
2017-07-06 16:24:33 -07:00
2017-01-25 13:17:47 -05:00
2009-11-20 20:13:39 +01:00
2009-11-20 20:13:39 +01:00
2017-07-03 16:56:28 -06:00
2011-03-31 11:26:23 -03:00
2017-06-05 16:59:12 +02:00
2017-04-18 20:41:12 +02:00
2011-10-29 21:20:22 +02:00
2017-08-30 14:40:40 +02:00
2017-09-04 00:05:22 +02:00
2017-09-04 00:06:02 +02:00
2017-06-09 11:52:07 +02:00
2008-12-25 11:01:43 +11:00
2017-09-05 12:53:11 +02:00
2016-12-05 19:01:16 -05:00
2017-08-24 13:23:03 -07:00
2012-02-20 19:46:36 +11:00
2009-12-10 23:52:01 +00:00
2016-10-28 08:48:16 -06:00
2015-01-21 19:21:30 +01:00
2009-09-14 17:41:42 -07:00
2012-09-30 18:02:20 -07:00
2017-07-17 13:42:48 +02:00
2005-04-16 15:20:36 -07:00
2012-10-16 18:49:15 -07:00
2008-01-28 23:21:18 +01:00
2016-05-17 15:48:12 -04:00
2017-08-03 19:09:26 -07:00
2017-08-01 17:33:02 +02:00
2017-08-07 17:22:14 +02:00
2017-04-27 05:13:04 -04:00
2014-12-31 13:06:50 -05:00
2016-12-05 19:01:16 -05:00
2014-10-09 11:35:48 +03:00
2014-10-08 16:01:41 -04:00
2017-07-07 20:09:10 -04:00
2009-06-18 13:04:05 -07:00
2014-08-06 18:01:24 -07:00
2007-07-10 00:35:17 -04:00
2010-10-25 14:11:37 -07:00
2015-05-12 10:46:53 +02:00
2017-03-21 10:15:47 +02:00
2010-02-09 11:13:56 +01:00
2017-09-08 18:26:46 -07:00
2011-03-31 11:26:23 -03:00
2010-03-07 22:17:09 +01:00
2012-03-26 21:47:19 +02:00
2012-03-26 21:47:19 +02:00
2014-01-16 11:15:50 +01:00
2011-07-01 10:37:15 +02:00
2017-05-18 10:07:41 -04:00
2017-05-18 10:07:40 -04:00
2008-08-02 18:36:10 +01:00
2017-06-21 14:37:12 -04:00
2017-07-10 16:32:34 -07:00
2006-10-10 15:37:22 -07:00
2012-03-20 12:47:48 +01:00
2010-08-09 20:45:05 -07:00
2016-09-14 09:18:09 -06:00
2017-08-15 18:23:52 +02:00
2013-06-17 16:38:57 -07:00
2017-01-05 15:01:55 -06:00
2016-05-11 22:37:54 +02:00
2015-06-25 12:06:45 +02:00
2014-03-13 12:11:00 +10:30
2016-01-28 14:19:12 -08:00
2007-10-17 08:42:52 -07:00
2013-07-26 16:19:48 -07:00
2016-03-22 15:36:02 -07:00
2016-03-22 15:36:02 -07:00
2015-07-28 08:50:42 +01:00
2011-01-24 14:45:11 +10:30
2013-08-28 21:35:14 -07:00
2017-08-14 13:33:39 -07:00
2008-07-04 10:40:05 -07:00
2017-05-03 15:52:10 -07:00
2011-09-16 19:20:20 -04:00
2009-04-06 16:06:26 +01:00
2015-04-29 17:17:17 -05:00
2017-08-17 15:33:39 -04:00
2017-02-24 17:46:57 -08:00
2005-04-16 15:20:36 -07:00
2017-08-28 20:51:22 +02:00
2016-12-06 11:05:46 +01:00
2017-09-07 11:53:11 +02:00
2017-08-18 15:32:01 -07:00
2015-06-24 17:49:41 -07:00
2015-07-21 10:39:05 -07:00
2017-04-24 14:30:46 -04:00
2017-01-12 16:48:26 -05:00
2017-07-13 16:00:15 -04:00
2017-08-20 13:04:12 -04:00
2016-04-25 15:09:11 -04:00
2014-01-25 03:14:05 -05:00
2016-02-16 13:04:58 -05:00
2017-07-06 11:30:07 -04:00
2013-05-04 14:47:26 -04:00
2017-07-25 18:05:25 +02:00
2017-09-25 08:56:05 -06:00
2014-11-04 13:29:38 +00:00
2017-05-26 10:10:37 +02:00
2017-09-06 17:27:26 -07:00
2016-12-06 10:17:03 +02:00
2015-04-12 21:03:31 +02:00
2016-02-11 18:35:48 -08:00
2016-03-14 15:43:11 -04:00
2017-08-06 20:55:29 -07:00
2017-08-06 20:55:29 -07:00
2017-08-21 12:47:31 -07:00
2016-10-31 16:18:30 -04:00
2016-10-14 11:36:59 -07:00
2016-09-27 21:52:00 -04:00
2010-08-04 21:53:17 -07:00
2011-03-31 11:26:23 -03:00
2017-09-08 18:26:47 -07:00
2017-08-16 16:28:47 -07:00
2012-03-20 21:29:38 -04:00
2016-03-17 15:09:34 -07:00
2010-02-10 17:47:17 -08:00
2017-06-29 10:48:57 +01:00
2016-03-22 15:36:02 -07:00
2017-08-24 16:34:51 +02:00
2013-06-17 16:38:57 -07:00
2009-04-08 14:33:38 -07:00
2017-07-06 16:24:30 -07:00
2016-01-04 16:11:11 -05:00
2017-08-16 16:28:47 -07:00
2017-08-03 21:37:29 -07:00
2005-04-16 15:20:36 -07:00
2016-12-26 23:53:46 -05:00
2017-06-08 18:52:42 -07:00
2010-08-09 16:48:44 -04:00
2017-06-01 14:53:04 -04:00
2017-09-11 12:29:41 -04:00
2013-04-30 15:50:12 +05:30
2011-08-16 00:16:49 -07:00
2017-09-15 16:57:10 +02:00
2005-04-16 15:20:36 -07:00
2010-03-25 17:18:43 -07:00
2017-01-10 18:31:55 -08:00
2015-10-01 09:57:59 -07:00
2010-11-29 08:55:25 +11:00
2017-08-28 16:15:42 +02:00
2005-04-16 15:20:36 -07:00
2017-07-24 17:50:37 +02:00
2014-11-28 16:08:16 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2017-05-09 16:43:22 +03:00
2017-09-08 18:26:48 -07:00
2017-08-31 18:50:14 +02:00
2015-12-03 07:24:29 -08:00
2015-03-24 09:48:14 -07:00
2017-09-05 06:34:17 -07:00
2017-08-15 09:02:07 -07:00
2011-01-13 08:03:24 -08:00
2013-10-17 15:53:09 -04:00
2010-04-06 20:35:58 +04:00
2015-09-08 15:35:28 -07:00
2017-08-15 09:02:08 -07:00