]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Bind DPC to Root Ports as well as Downstream Ports
authorKeith Busch <keith.busch@intel.com>
Wed, 6 Jul 2016 16:06:00 +0000 (10:06 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 25 Jul 2016 17:45:19 +0000 (12:45 -0500)
commit0289c843d87efb226d82348b3484627fbf878ded
tree3cf88d9cad1499adb6493f754d712ed1ced9ec9c
parentf5e366d2a87c85f52da460e81f55398a017f93d3
PCI: Bind DPC to Root Ports as well as Downstream Ports

PCIe port type values are not flags, so OR'ing them is not correct.
Previously the result was equivalent to PCIe Downstream Ports, so we were
missing binding to DPC-capable Root Ports.

Change the type to 'any' so we can bind to both port types.  While this
will cause the code to check Upstream Ports, the driver won't claim them
since they are not DPC-capable.

Reported-by: Alexander Antonov <alexanderx.v.antonov@intel.com>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
CC: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/pci/pcie/pcie-dpc.c