EJ Hsu
e5b5da96da
usb: gadget: fix wrong endpoint desc
...
Gadget driver should always use config_ep_by_speed() to initialize
usb_ep struct according to usb device's operating speed. Otherwise,
usb_ep struct may be wrong if usb devcie's operating speed is changed.
The key point in this patch is that we want to make sure the desc pointer
in usb_ep struct will be set to NULL when gadget is disconnected.
This will force it to call config_ep_by_speed() to correctly initialize
usb_ep struct based on the new operating speed when gadget is
re-connected later.
Reviewed-by: Peter Chen <peter.chen@nxp.com >
Signed-off-by: EJ Hsu <ejh@nvidia.com >
Signed-off-by: Felipe Balbi <balbi@kernel.org >
2019-12-10 14:56:10 +02:00
..
2019-12-04 10:56:35 -08:00
2019-12-01 13:46:15 -08:00
2019-12-03 13:58:22 -08:00
2019-12-04 19:44:12 -08:00
2019-12-05 11:43:31 -08:00
2019-12-07 14:49:20 -08:00
2019-11-22 13:35:20 +01:00
2019-12-06 08:26:50 -08:00
2019-11-26 13:02:24 -07:00
2019-12-06 10:28:09 -08:00
2019-12-05 11:38:40 -08:00
2019-12-03 12:20:25 -08:00
2019-12-06 08:28:13 -08:00
2019-11-29 11:49:32 +01:00
2019-12-02 17:23:21 -08:00
2019-12-01 18:43:25 -08:00
2019-11-29 12:50:34 +01:00
2019-11-22 11:16:26 +05:30
2019-12-01 13:46:15 -08:00
2019-11-22 10:18:29 +01:00
2019-11-27 10:53:50 -08:00
2019-12-02 14:13:00 -08:00
2019-12-06 14:19:37 -08:00
2019-12-04 19:44:14 -08:00
2019-12-06 10:28:09 -08:00
2019-12-01 18:20:54 -08:00
2019-12-01 20:36:41 -08:00
2019-12-01 13:46:15 -08:00
2019-12-01 13:46:15 -08:00
2019-12-01 18:29:36 -08:00
2019-12-01 13:46:15 -08:00
2019-11-29 11:48:39 +01:00
2019-12-03 14:37:12 -08:00
2019-12-04 12:27:13 -08:00
2019-12-07 18:33:01 -08:00
2019-12-03 13:58:22 -08:00
2019-12-03 13:58:22 -08:00
2019-12-01 13:46:15 -08:00
2019-12-01 16:09:28 -08:00
2019-11-30 14:35:43 -08:00
2019-12-01 18:42:02 -08:00
2019-12-03 08:51:25 -07:00
2019-12-01 13:46:15 -08:00
2019-12-06 08:28:51 -08:00
2019-12-03 13:58:22 -08:00
2019-12-03 14:37:12 -08:00
2019-12-04 19:44:13 -08:00
2019-11-27 11:06:20 -08:00
2019-12-03 14:09:14 -08:00
2019-12-08 13:28:11 -08:00
2019-11-22 16:27:24 -08:00
2019-12-07 18:38:17 -08:00
2019-12-01 18:43:25 -08:00
2019-12-03 13:58:22 -08:00
2019-12-05 11:43:31 -08:00
2019-12-02 11:41:35 -08:00
2019-11-25 19:40:40 -08:00
2019-12-03 13:58:22 -08:00
2019-11-22 07:03:45 +01:00
2019-12-05 11:43:31 -08:00
2019-12-03 09:29:50 -08:00
2019-12-03 14:37:12 -08:00
2019-12-04 10:48:09 -08:00
2019-11-16 21:51:42 -08:00
2019-12-05 11:28:14 -08:00
2019-12-04 19:44:13 -08:00
2019-11-22 19:56:20 +00:00
2019-11-18 20:35:16 -08:00
2019-12-05 11:43:31 -08:00
2019-12-01 18:39:24 -08:00
2019-12-03 13:31:08 -08:00
2019-12-08 13:28:11 -08:00
2019-12-08 12:23:42 -08:00
2019-12-06 14:19:37 -08:00
2019-11-22 19:56:35 +00:00
2019-12-03 13:58:22 -08:00
2019-12-02 13:37:02 -08:00
2019-12-05 13:18:54 -08:00
2019-12-05 11:21:24 -08:00
2019-11-19 17:35:57 +01:00
2019-12-03 14:09:14 -08:00
2019-12-10 14:56:10 +02:00
2019-12-07 14:51:04 -08:00
2019-12-08 13:28:11 -08:00
2019-12-03 13:58:22 -08:00
2019-12-01 13:46:15 -08:00
2019-11-20 02:15:57 -05:00
2019-12-01 18:01:03 -08:00
2019-12-07 14:49:20 -08:00