Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PCI: cadence: Remove pci_epf_linkup() from Cadence EP driver

pci_epf_linkup() is intended to be invoked if the EPC supports linkup
notification. Now that pci-epf-test uses the get_features() callback,
which indicates Cadence EP driver doesn't support the linkup notification,
remove pci_epf_linkup() from Cadence EP driver.

Tested-by: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>

authored by

Kishon Vijay Abraham I and committed by
Lorenzo Pieralisi
c274c9f4 2c04c5b8

-12
-12
drivers/pci/controller/pcie-cadence-ep.c
··· 396 396 cfg |= BIT(epf->func_no); 397 397 cdns_pcie_writel(pcie, CDNS_PCIE_LM_EP_FUNC_CFG, cfg); 398 398 399 - /* 400 - * The PCIe links are automatically established by the controller 401 - * once for all at powerup: the software can neither start nor stop 402 - * those links later at runtime. 403 - * 404 - * Then we only have to notify the EP core that our links are already 405 - * established. However we don't call directly pci_epc_linkup() because 406 - * we've already locked the epc->lock. 407 - */ 408 - list_for_each_entry(epf, &epc->pci_epf, list) 409 - pci_epf_linkup(epf); 410 - 411 399 return 0; 412 400 } 413 401