Re: [PATCH] usb: gadget: f_ecm: serialize notification state with a spinlock
From: Aldo Ariel Panzardo
Date: Mon Oct 26 2026 - 12:51:45 EST
The locking itself looks right -- matches what f_ncm already does,
and dropping the lock around usb_ep_queue() avoids the re-entrant
completion deadlock.
Note this conflicts with [1] which removes the ecm_notify() call
from ecm_set_alt(). If [1] lands first, drop the lock/unlock pair
around that call from this patch.
[1] https://lore.kernel.org/linux-usb/20261023-ncm-ecm-lpm-v1-2-d01e81fbf460@xxxxxxxxxxxxxxxxxxxx/
Reviewed-by: Aldo Ariel Panzardo <qwe.aldo@xxxxxxxxx>