Re: Using multiple USB3380 PCIe cards on a single Linux system

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

 



Hi Greg & Alan,

Thanks a lot for your responses. I am not very familiar with the
net2280 driver code. I will look into the net2280 driver code and the
associated USB mass storage gadget code and will let you know if I
have any further questions. I will also go ahead and buy couple of
USB3380 PCIe cards and try it out on my system. Thanks again for your
time!

Thanks,
Karthik.

On Thu, Dec 22, 2016 at 4:30 PM, Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> wrote:
> 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
>



-- 
Thanks,
Karthik.
--
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