Felipe Balbi
18b7ede5f7
usb: ch9: fix up MaxStreams helper
...
According to USB 3.0 Specification Table 9-22, if
bmAttributes [4:0] are set to zero, it means "no
streams supported", but the way this helper was
defined on Linux, we will *always* have one stream
which might cause several problems.
For example on DWC3, we would tell the controller
endpoint has streams enabled and yet start transfers
with Stream ID set to 0, which would goof up the host
side.
While doing that, convert the macro to an inline
function due to the different checks we now need.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2012-01-04 15:52:42 -08:00
..
2011-11-04 18:02:25 -07:00
2011-10-31 19:32:32 -04:00
2011-10-17 19:22:46 -04:00
2011-11-11 09:50:19 -08:00
2011-11-03 09:40:51 -07:00
2011-10-18 21:26:55 -07:00
2011-11-23 14:03:52 +00:00
2011-11-01 10:51:38 -07:00
2011-10-27 09:11:34 -04:00
2011-11-07 09:11:16 -08:00
2011-11-01 09:19:52 +01:00
2011-11-09 15:07:40 +01:00
2011-12-21 13:24:27 +02:00
2011-11-06 19:44:47 -08:00
2011-10-31 17:30:54 -07:00
2011-10-31 19:32:32 -04:00
2011-11-06 19:44:47 -08:00
2012-01-04 15:52:42 -08:00
2011-10-31 19:32:32 -04:00
2011-11-02 16:07:03 -07:00
2011-10-26 15:43:26 -04:00
2011-10-26 15:43:25 -04:00
2011-10-31 17:30:54 -07:00
2011-10-31 00:33:36 +08:00
2011-11-16 09:21:50 +01:00
2011-10-24 16:11:30 +02:00
2011-11-06 19:44:47 -08:00
2011-10-31 17:30:54 -07:00
2011-10-17 19:22:46 -04:00
2011-10-20 18:21:36 -04:00
2011-11-02 16:07:03 -07:00
2011-10-13 14:36:58 +01:00
2011-11-10 11:27:08 -08:00
2011-10-31 17:30:49 -07:00
2011-12-03 15:31:48 -05:00
2011-11-04 22:28:09 +01:00
2011-11-07 10:13:52 -08:00
2011-10-30 15:16:41 +01:00
2011-11-06 19:44:47 -08:00
2011-10-21 14:24:07 +02:00
2011-12-06 23:57:18 -05:00
2011-11-07 23:54:53 +01:00
2011-10-31 19:32:26 -04:00
2011-10-31 20:19:04 +00:00
2011-11-21 20:36:26 -08:00
2011-10-31 20:19:04 +00:00
2011-10-31 20:18:58 +00:00
2011-10-31 20:21:24 +00:00
2011-11-06 17:12:03 -08:00
2011-11-06 19:44:47 -08:00
2011-10-31 17:30:44 -07:00
2011-10-31 17:30:54 -07:00
2011-10-31 15:10:04 -02:00
2011-10-19 14:33:08 +02:00
2011-10-30 15:16:43 +01:00
2011-11-04 18:37:23 -04:00
2011-10-31 09:20:11 -04:00
2011-11-02 10:06:20 -07:00
2011-10-19 19:35:51 -04:00
2011-10-31 19:32:32 -04:00
2011-11-04 22:28:15 +01:00
2011-12-09 07:50:27 -08:00
2011-10-31 17:30:54 -07:00
2011-12-05 13:28:45 -05:00
2011-10-31 19:32:32 -04:00
2011-11-06 19:44:47 -08:00
2011-11-10 09:03:55 +01:00
2011-10-24 16:04:06 +02:00
2011-10-31 19:32:32 -04:00
2011-10-31 17:30:48 -07:00
2011-11-19 06:15:59 -05:00
2011-11-08 09:28:27 +02:00
2011-10-11 09:51:22 -06:00
2011-10-29 09:37:09 +01:00
2011-11-23 11:33:07 +01:00
2011-10-11 15:35:42 -04:00
2011-10-16 13:15:38 -07:00
2011-10-21 02:53:07 -04:00
2011-10-30 04:43:30 -04:00
2011-11-14 01:08:49 -05:00
2011-12-05 16:50:24 -08:00
2011-10-28 14:25:01 -07:00
2011-10-26 16:17:32 +02:00
2011-10-17 11:42:49 +02:00
2011-10-28 05:54:23 -07:00
2011-10-21 14:38:55 +02:00
2011-10-31 19:32:32 -04:00
2011-10-31 19:32:32 -04:00
2011-10-31 19:32:35 -04:00
2011-10-31 19:32:35 -04:00
2011-10-31 14:03:23 +01:00
2011-10-27 04:38:18 -04:00
2011-10-27 04:38:18 -04:00
2011-10-27 04:38:18 -04:00
2011-10-25 11:55:15 -07:00
2011-10-31 17:30:54 -07:00
2011-10-31 17:30:54 -07:00
2011-11-07 07:54:42 +10:30
2011-10-31 17:46:07 -07:00
2011-10-31 17:30:54 -07:00
2011-10-31 17:30:54 -07:00
2011-10-31 17:30:54 -07:00
2011-11-17 16:30:25 +02:00
2011-10-31 17:30:54 -07:00
2011-10-31 17:30:52 -07:00
2011-10-31 17:30:57 -07:00
2011-11-04 17:22:14 -07:00
2011-11-02 16:06:59 -07:00
2011-10-31 19:32:32 -04:00
2011-10-31 17:30:47 -07:00
2011-11-02 16:07:00 -07:00
2011-10-31 19:32:29 -04:00
2011-11-02 16:06:57 -07:00
2011-12-09 07:50:27 -08:00
2011-10-31 17:30:54 -07:00
2011-10-31 17:30:47 -07:00
2011-10-31 09:20:11 -04:00
2011-10-31 09:20:11 -04:00
2011-11-02 12:53:42 +01:00
2011-10-19 17:00:35 -04:00
2011-11-28 18:07:29 -05:00
2011-11-01 09:24:41 -07:00
2011-10-19 11:52:12 -04:00
2011-11-04 16:39:04 -04:00
2011-10-19 13:58:38 -07:00
2011-11-04 16:39:04 -04:00
2011-10-14 14:48:23 -04:00
2011-11-18 10:51:01 -08:00
2011-10-31 14:03:22 +01:00
2011-10-31 19:32:27 -04:00
2011-11-06 19:44:47 -08:00
2011-10-31 17:30:45 -07:00
2011-11-04 22:28:13 +01:00
2011-10-31 19:32:32 -04:00
2011-12-05 18:13:11 +01:00
2011-10-14 09:05:35 -07:00
2011-10-31 10:23:57 -07:00
2011-10-31 10:23:57 -07:00
2011-12-05 09:33:03 +01:00
2011-10-24 02:54:50 -04:00
2011-11-22 16:37:01 -05:00
2011-10-29 07:28:36 -07:00
2011-11-17 21:39:33 +01:00
2011-11-28 22:14:55 +01:00
2011-11-02 16:07:02 -07:00
2011-10-31 17:30:54 -07:00
2011-11-17 12:58:07 -08:00
2011-10-31 17:30:54 -07:00
2011-10-28 05:29:07 -07:00
2011-10-31 19:32:32 -04:00
2011-11-02 16:07:01 -07:00
2011-11-17 20:49:06 +08:00
2011-11-02 16:07:01 -07:00
2011-10-31 17:30:54 -07:00
2011-11-11 16:16:25 +09:00
2011-11-15 12:13:44 -08:00
2011-10-31 19:32:32 -04:00
2011-11-11 16:11:41 +09:00
2011-11-11 16:45:35 +09:00
2011-12-09 07:50:27 -08:00
2011-11-29 11:59:50 +00:00
2011-11-01 00:55:48 -04:00
2011-10-31 19:32:28 -04:00
2011-10-31 17:30:47 -07:00
2011-10-16 23:28:51 +02:00
2011-10-31 17:30:44 -07:00
2011-10-31 17:30:44 -07:00
2011-11-02 16:07:02 -07:00
2011-10-31 19:32:24 -04:00
2011-10-19 19:24:14 -04:00
2011-10-31 19:32:32 -04:00
2011-10-31 17:30:54 -07:00
2011-10-26 15:11:09 +02:00
2011-10-12 21:13:11 -07:00
2011-10-31 19:32:32 -04:00
2011-12-09 16:18:19 -08:00
2011-11-02 16:07:02 -07:00
2011-10-31 19:32:31 -04:00
2011-10-31 19:32:23 -04:00
2011-11-03 18:29:09 -02:00
2011-11-24 13:04:48 +10:30
2011-11-24 13:04:47 +10:30
2011-11-02 11:40:59 +10:30
2011-11-02 11:40:59 +10:30
2011-10-31 19:32:32 -04:00
2011-11-16 12:13:08 -05:00
2011-10-31 00:33:36 +08:00