Re: [PATCH v1 0/2] usb: gadget: udc: simplify lock holding using guards

From: Greg KH

Date: Mon Apr 20 2026 - 01:40:54 EST


On Mon, Apr 20, 2026 at 11:57:20AM +0800, Huisong Li wrote:
> Simplify udc_lock and connect_lock holding using guards in
> gadget_bind_driver() and gadget_unbind_driver().
>
> Huisong Li (2):
> usb: gadget: udc: simplify udc_lock holding using guards
> usb: gadget: udc: simplify connect_lock holding using guards
>
> drivers/usb/gadget/udc/core.c | 77 ++++++++++++++++-------------------
> 1 file changed, 35 insertions(+), 42 deletions(-)

Only do this for new drivers, don't convert existing code that works
just fine for no valid reason other than wanting to clean stuff up.

Does this fix a bug?

thanks,

greg k-h