Re: [PATCH] usb: dwc2: Revert "usb: dwc2: Disable all EP's on disconnect"

From: Dan Carpenter
Date: Fri Dec 07 2018 - 09:41:18 EST


On Fri, Dec 07, 2018 at 02:13:18PM +0000, Minas Harutyunyan wrote:
>
> My patch doesn't pass sparse checking: "warning: context imbalance in
> 'dwc2_hsotg_core_init_disconnected' - unexpected unlock". Sparse persist!
> So, I need to re-work patch. Can I use your idea with
> dwc2_hsotg_ep_disable_lock() function to prepare new one?
>

Sparse lock checking is pretty crap, and I wouldn't go out of my way
normally to make it happy... But of course you can use my idea.

regards,
dan carpenter