PCI: mediatek: Remove unnecessary PCI_REASSIGN_* flags
Subsystems (2)
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.
Signed-off-by Ryder Lee <[email protected]>
--- drivers/pci/host/pcie-mediatek.c | 1 - 1 file changed, 1 deletion(-)
drivers/pci/host/pcie-mediatek.c +0 -1
@@ -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
Quoted 4 lines · Ryder Lee
The
PCI_REASSIGN_ALL_RSRCandPCI_REASSIGN_ALL_BUSflags are not needed, since we should automatically assign resources if the firmware hasn't done it.Signed-off-by Ryder Lee <[email protected]>
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@@ -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