Guido Kiener 836bcab506 udc: net2280: Fix net2280_disable
A reset e.g. calling ep_reset_338x() can happen while endpoints
are enabled. The ep_reset_338x() sets ep->desc = NULL to mark
endpoint being invalid. A subsequent call of net2280_disable will
fail and return -EINVAL to parent function usb_ep_disable(),
which will fail, too, and do not set the member ep->enabled = false.

See:
https://elixir.bootlin.com/linux/v5.0-rc5/source/drivers/usb/gadget/udc/core.c#L139

This fix ignores dp->desc and allows net2280_disable() to succeed.
Subsequent calls to usb_ep_enable()/usb_ep_disable() succeeds.

Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Guido Kiener <guido.kiener@rohde-schwarz.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
2019-02-06 08:40:09 +02:00
..
2019-01-26 15:03:43 -08:00
2019-01-19 07:17:19 +12:00
2019-01-20 09:12:50 +12:00
2018-12-31 17:32:35 -08:00
2018-12-29 08:20:44 -07:00
2019-01-25 13:03:34 -10:00
2018-12-27 10:43:24 -08:00
2019-01-05 11:28:39 -08:00
2019-01-09 19:20:31 -05:00
2019-01-11 00:15:04 +01:00
2019-01-15 06:24:36 +12:00
2019-01-18 17:17:20 +12:00
2019-01-22 07:27:17 +13:00
2019-01-18 23:32:29 +01:00
2019-01-05 11:30:37 -08:00
2018-12-28 16:52:18 -08:00
2019-01-15 06:24:36 +12:00
2019-01-25 13:03:34 -10:00
2019-01-25 13:07:03 -10:00
2019-01-25 15:32:28 -08:00
2019-01-26 12:42:41 -08:00
2019-01-19 07:26:16 +12:00
2019-01-05 11:23:17 -08:00
2019-01-25 12:57:09 -10:00
2018-12-29 13:03:29 -08:00
2018-12-24 12:06:56 +01:00
2019-01-01 13:24:31 -08:00
2019-01-26 15:03:43 -08:00
2019-01-22 20:54:00 -05:00
2018-12-31 13:06:30 -08:00
2018-12-28 20:54:57 -08:00
2019-02-06 08:40:09 +02:00
2019-01-25 12:58:40 -10:00
2018-12-29 13:40:29 -08:00