On 9/20/2018 12:27 PM, Keith Busch wrote:
/* * DPC disables the Link automatically in hardware, so it has * already been reset by the time we get here. */ - devdpc = pcie_port_find_device(pdev, PCIE_PORT_SERVICE_DPC); - pciedev = to_pcie_device(devdpc); - dpc = get_service_data(pciedev); + dpc = to_dpc_dev(pdev);
I thought that the struct pci_dev sent here is the bridge and we need to locate the struct device of the DPC object here. Isn't this change wrong now?