Re: ni_usb with multiple devices

Frank Mori Hess <[email protected]>
Newsgroups gmane.linux.hardware.gpib.general
Message-ID <CAJz5Opcd9P0typZyXj2bk_bmKOHHyjT1+Yt9B6ayWgqovwELAw@mail.gmail.com>
On Tue, Dec 4, 2018 at 5:42 AM Frank Mori Hess <[email protected]> wrote:
>
> On Mon, Dec 3, 2018 at 2:48 AM Manuel Mommertz <[email protected]> wrote:
> >
> > 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.
> >
>
> Oh, I missed that!  I'm going to fix it so it actually compares with
> the device path.
>

Ok, now I see I was confused, thinking Linux had a universal device
path for all buses.  But the device tree path on applies to devices
coming from the device tree and doesn't apply to usb devices
generally.  So, I reverted the whole deal.  The usb bus has it's own
idea of a hardware path, but that should be selected by adding a
different but similar ioctl to the one which specifies a device tree
path.  Same goes for choosing by serial number.


-- 
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.