MLK-22366-2 usb: cdns3: gadget: fix the hot plug and function switch issue
authorPeter Chen <peter.chen@nxp.com>
Mon, 29 Jul 2019 06:34:18 +0000 (14:34 +0800)
committerPeter Chen <peter.chen@nxp.com>
Fri, 30 Aug 2019 08:17:18 +0000 (16:17 +0800)
commitff9ca26112e4c1312c92fceb6ffca7b03ea8e283
tree6b62a658a00366952f8cf289365540b3a0897e52
parent89fd3633e66a660cc69c738b4196353e0e780897
MLK-22366-2 usb: cdns3: gadget: fix the hot plug and function switch issue

- If the UDC is not started, we need not to access register at .udc_stop
- Clear all priv_ep flags except EP_CLAIMED which should be cleared at
.udc_stop
- Clear warning message that the .ep_disable may be called twice, one
from class driver, one from UDC driver.

Reviewed-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
drivers/usb/cdns3/gadget.c