Re: ni_usb with multiple devices

Frank Mori Hess <[email protected]>
Newsgroups gmane.linux.hardware.gpib.general
Message-ID <CAJz5OpcoYv=7e6pDWwdN5fNstZzY+KfjQ6OnraqGqqjrkemcOg@mail.gmail.com>
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.

-- 
Frank
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.