On Thu, 22 Dec 2016, Greg KH wrote: > On Thu, Dec 22, 2016 at 10:32:38AM -0600, Karthik Ramana Sankar wrote: > > Another quick question: In case of multiple PCIe cards, while loading > > the g_mass_storage driver how do you associate a particular instance > > of the driver to a particular physical USB3 device PCIe card? > > The same way you do that for any other PCI card device (hint, it > depends...) > > Try it and see, you will find a lot of information in sysfs that you can > use to determine which device is which, some BIOSes will even expose > slot information as well, it depends on the BIOS, not the kernel. > > good luck! Actually, I think there is currently no way to do this with the net2280 driver. It would have to be changed to set the gadget.name field to something that varies with the PCI information -- serial number or address or something like that. As it is, it always sets gadget.name to "net2280", so there's no way to bind a particular instance of the gadget driver to a particular instance of the UDC driver. Alan Stern -- 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