linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* No carrier lost information with gadget RNDIS/ECM
@ 2019-06-26 12:00 Kai Ruhnau
  2019-06-26 12:13 ` Felipe Balbi
  0 siblings, 1 reply; 16+ messages in thread
From: Kai Ruhnau @ 2019-06-26 12:00 UTC (permalink / raw)
  To: linux-usb@vger.kernel.org

Hi,

On my i.MX6 SoloX, I have configured one of the OTG ports for a combined RNDIS/ECM gadget. After boot, I have two network interfaces (usb0 and usb1) which are managed by systemd-networkd.

With kernel 4.9.153, systemd-networkd reports an immediate carrier loss when I pull the USB cable from a Windows or macOS host. With 4.19.53 or 5.1.15 that carrier loss is only reported when I re-attach the cable, meaning there is a "Lost carrier" for the last used interface immediately followed by a "Gained carrier" for the newly connected interface.

I have activated CONFIG_USB_GADGET_DEBUG_FILES, and the contents of /proc/driver/rndis-000 don't change when I pull the cable:
Config Nr. 0
used      : y
state     : RNDIS_DATA_INITIALIZED
medium    : 0x00000000
speed     : 425984000
cable     : connected
vendor ID : 0x00000000
vendor    : (null)

Only when changing the host to a Mac, it's different:
Config Nr. 0
used      : y
state     : RNDIS_UNINITIALIZED
medium    : 0x00000000
speed     : 425984000
cable     : connected
vendor ID : 0x00000000
vendor    : (null)

Thanks for any help.

Cheers,
Kai

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

end of thread, other threads:[~2019-07-05  7:21 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-26 12:00 No carrier lost information with gadget RNDIS/ECM Kai Ruhnau
2019-06-26 12:13 ` Felipe Balbi
2019-06-26 12:53   ` Kai Ruhnau
2019-06-27  6:21     ` Felipe Balbi
2019-06-27 15:50       ` Kai Ruhnau
2019-06-28  1:20         ` Peter Chen
2019-06-28  8:30           ` Kai Ruhnau
2019-06-28 13:28             ` Kai Ruhnau
2019-07-01  6:44               ` Peter Chen
2019-07-01 10:54                 ` Kai Ruhnau
2019-07-02  2:18                   ` Peter Chen
2019-07-02  6:48                     ` Kai Ruhnau
2019-07-02  8:29                       ` Peter Chen
2019-07-02 12:56                         ` Kai Ruhnau
2019-07-04  6:07                           ` Peter Chen
2019-07-05  7:21                             ` Kai Ruhnau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).