Skip to contentSkip to conversation

PCI: mediatek: Remove unnecessary PCI_REASSIGN_* flags

PATCH In review Ryder Lee 2 participants 2 messages Jul 3, 2017

Subsystems (2)
lore
Share & tools
lore

Ryder Lee

author
#0 lore raw

PATCH 1/1 PCI: mediatek: Remove unnecessary PCI_REASSIGN_* flags

The PCI_REASSIGN_ALL_RSRC and PCI_REASSIGN_ALL_BUS flags are not needed, since we should automatically assign resources if the firmware hasn't done it.

---
 drivers/pci/host/pcie-mediatek.c | 1 -
 1 file changed, 1 deletion(-)
drivers/pci/host/pcie-mediatek.c +0 -1
index 51c6118..5a9d858 100644
@@ -478,7 +478,6 @@ static int mtk_pcie_register_host(struct pci_host_bridge *host)
 	struct pci_bus *child;
 	int err;
 
-	pci_add_flags(PCI_REASSIGN_ALL_RSRC | PCI_REASSIGN_ALL_BUS);
 	host->busnr = pcie->busn.start;
 	host->dev.parent = pcie->dev;
 	host->ops = &mtk_pcie_ops;
Signature · 1 line
1.9.1
#1 lore raw
Quoted 4 lines · Ryder Lee

The PCI_REASSIGN_ALL_RSRC and PCI_REASSIGN_ALL_BUS flags are not needed, since we should automatically assign resources if the firmware hasn't done it.

Folded into pci/host-mediatek, thanks!

Quoted 19 lines
---
 drivers/pci/host/pcie-mediatek.c | 1 -
 1 file changed, 1 deletion(-)
drivers/pci/host/pcie-mediatek.c +0 -1
index 51c6118..5a9d858 100644
@@ -478,7 +478,6 @@ static int mtk_pcie_register_host(struct pci_host_bridge *host)
 	struct pci_bus *child;
 	int err;
 
-	pci_add_flags(PCI_REASSIGN_ALL_RSRC | PCI_REASSIGN_ALL_BUS);
 	host->busnr = pcie->busn.start;
 	host->dev.parent = pcie->dev;
 	host->ops = &mtk_pcie_ops;
Signature · 1 line
1.9.1