Re: ni_usb with multiple devices
Manuel Mommertz <[email protected]>
| Newsgroups | gmane.linux.hardware.gpib.general |
|---|---|
| Organization | Desy |
| Message-ID | <[email protected]> |
On Freitag, 16. November 2018 21:42:37 CET Frank Mori Hess wrote: > On Thu, Oct 25, 2018 at 2:07 AM Manuel Mommertz <[email protected]> wrote: > > we want to use multiple GPIB-adapter from NI on one host. But there is > > currently no way to fix the association between a GPIB-board and an > > NI-GPIB- adapter. With each reboot we get a random mapping. To fix this > > quick and dirty I prepared the attached patch against > > linux-gpib-modules-4.2.0-rc1. > Thanks, I applied your patch. Really, all the drivers should support > selection by device path. I was just too lazy to update them all. > > > To fix it the right way, I think there should be another config entry, > > like > > 'usb_serial'. Would be nice if you can include support for this in future > > versions. > > Selecting the hardware by serial number would be fine too (for the > hardware/drivers that provide serial numbers). There's nothing wrong > with selecting by device path though. Just to make it clear: My patch selects the hardware by serial but (mis-)uses the config entry for device path to hold the wanted serial. That is the reason I call it quick and dirty. Manuel