Re: [PATCH v2 1/5] PCI: Recognize Thunderbolt devices

2017-03-11 Thread Lukas Wunner
On Fri, Mar 10, 2017 at 02:47:04PM -0600, Bjorn Helgaas wrote: > On Fri, Mar 10, 2017 at 2:23 PM, Lukas Wunner wrote: > > +/** > > + * pci_is_thunderbolt_attached - whether device is on a Thunderbolt daisy > > chain > > + * @pdev: PCI device to check > > + * > > + * Walk upwards from @pdev and ch

Re: [PATCH v2 1/5] PCI: Recognize Thunderbolt devices

2017-03-10 Thread Bjorn Helgaas
On Fri, Mar 10, 2017 at 2:23 PM, Lukas Wunner wrote: > +/** > + * pci_is_thunderbolt_attached - whether device is on a Thunderbolt daisy > chain > + * @pdev: PCI device to check > + * > + * Walk upwards from @pdev and check for each encountered bridge if it's part > + * of a Thunderbolt controll

[PATCH v2 1/5] PCI: Recognize Thunderbolt devices

2017-03-10 Thread Lukas Wunner
Detect on probe whether a PCI device is part of a Thunderbolt controller. Intel uses a Vendor-Specific Extended Capability (VSEC) with ID 0x1234 on such devices. Detect presence of this VSEC and cache it in a newly added is_thunderbolt bit in struct pci_dev. Also, add a helper to check whether a