Linux USB
 help / color / mirror / Atom feed
* [PATCH 0/2] usb: gadget: f_ncm/f_ecm: do not notify from set_alt()
@ 2026-10-23 12:15 Massimo Toscanelli via B4 Relay
  2026-10-23 12:15 ` [PATCH 1/2] usb: gadget: f_ncm: do not notify from ncm_set_alt() Massimo Toscanelli via B4 Relay
  2026-10-23 12:15 ` [PATCH 2/2] usb: gadget: f_ecm: do not notify from ecm_set_alt() Massimo Toscanelli via B4 Relay
  0 siblings, 2 replies; 7+ messages in thread
From: Massimo Toscanelli via B4 Relay @ 2026-10-23 12:15 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Neill Kapron, Kuen-Han Tsai, linux-usb, linux-kernel,
	Massimo Toscanelli

f_ncm and f_ecm queue a notification on the interrupt endpoint already
at SET_CONFIGURATION, when the data interface is in altsetting 0. If the
host loads no class driver, nobody reads it. While data is pending for
the host the device may answer NYET to an LPM request, and DWC3 does,
so the device never enters L1. The USB-IF USB3CV tool fails the
"L1 Suspend/Resume" test (TD 9.21) because of this.

For altsetting 1 the call in set_alt() is not needed: gether_connect()
already notifies through the open/close callbacks. The extra call also
makes the host see two connection notifications before the speed one.

Patch 1 fixes f_ncm, patch 2 makes the same change in f_ecm.

Signed-off-by: Massimo Toscanelli <massimo.toscanelli@leica-geosystems.com>
---
Massimo Toscanelli (2):
      usb: gadget: f_ncm: do not notify from ncm_set_alt()
      usb: gadget: f_ecm: do not notify from ecm_set_alt()

 drivers/usb/gadget/function/f_ecm.c | 8 --------
 drivers/usb/gadget/function/f_ncm.c | 4 ----
 2 files changed, 12 deletions(-)
---
base-commit: bdf12cde30830d46a8ef1ba93986356f1164b4f1
change-id: 20261023-ncm-ecm-lpm-d8bdaa05796e

Best regards,
--  
Massimo Toscanelli <massimo.toscanelli@leica-geosystems.com>



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-10-26 12:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-23 12:15 [PATCH 0/2] usb: gadget: f_ncm/f_ecm: do not notify from set_alt() Massimo Toscanelli via B4 Relay
2026-10-23 12:15 ` [PATCH 1/2] usb: gadget: f_ncm: do not notify from ncm_set_alt() Massimo Toscanelli via B4 Relay
2026-10-23 12:21   ` sashiko-bot
2026-10-26 12:04   ` Aldo Ariel Panzardo
2026-10-23 12:15 ` [PATCH 2/2] usb: gadget: f_ecm: do not notify from ecm_set_alt() Massimo Toscanelli via B4 Relay
2026-10-23 12:23   ` sashiko-bot
2026-10-26 12:06   ` Aldo Ariel Panzardo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox