Re: How can I tell who created my usb0 network device?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 15, 2016 at 5:02 PM, Greg KH <greg@xxxxxxxxx> wrote:
> ls -l /sys/class/net/usb0/device/driver
>
> sysfs is fun :)
Yes it is... I also managed to find
/sys/devices/pci0000:00/0000:00:11.0/dwc3-device.1/gadget/net/usb0
with

$ find /sys -name usb0 -prune

Apparently, usb0 gets created because my system loads the g_multi
gadget.  But when I plug a hub into the USB port, (to which  a cdc_eem
device is attached), the driver configures itself as a host,
enumerates my device, and sets up usb1.  Poking around the kernel
configuration, I see that "DWC3 Mode selection" is set to "Gadget only
mode".  I am guessing that "Gadget only mode" means something
different than I would have expected, which is a good thing, because
I'm not sure I ever would have tracked that down based on the path I
was following previously.

Anyway, all is well that ends well.

Thanks for the tip.

--wpd
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux