Re: [PATCH 4/5] thunderbolt: Correlate PCI devices with Thunderbolt ports

2018-09-13 Thread Mika Westerberg
On Thu, Sep 13, 2018 at 12:43:03PM +0300, Yehezkel Bernat wrote: > On Mon, Sep 10, 2018 at 12:45 PM Mika Westerberg > wrote: > > > > Hi Lukas, > > > > On Sun, Sep 09, 2018 at 11:42:01PM +0200, Lukas Wunner wrote: > > > Ideas what we can do with correlation: > > > > > > * Represent the relationship

Re: [PATCH 4/5] thunderbolt: Correlate PCI devices with Thunderbolt ports

2018-09-13 Thread Yehezkel Bernat
On Mon, Sep 10, 2018 at 12:45 PM Mika Westerberg wrote: > > Hi Lukas, > > On Sun, Sep 09, 2018 at 11:42:01PM +0200, Lukas Wunner wrote: > > Ideas what we can do with correlation: > > > > * Represent the relationship between PCI devices and Thunderbolt ports > > with symlinks in sysfs. > > I wond

Re: [PATCH 4/5] thunderbolt: Correlate PCI devices with Thunderbolt ports

2018-09-10 Thread Mika Westerberg
Hi Lukas, On Sun, Sep 09, 2018 at 11:42:01PM +0200, Lukas Wunner wrote: > Ideas what we can do with correlation: > > * Represent the relationship between PCI devices and Thunderbolt ports > with symlinks in sysfs. I wonder is that really useful? I don't think we should be adding sysfs entries

[PATCH 4/5] thunderbolt: Correlate PCI devices with Thunderbolt ports

2018-09-09 Thread Lukas Wunner
macOS correlates PCI devices with Thunderbolt ports and stores their device paths in each other's I/O Registry entry: IOThunderboltPort@7 { "PCI Device" = 4 "PCI Function" = 0 "PCI Path" = "IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/PEG1@1,1/IOPP/UPSB@0/IOPP/DSB2@4"