Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1710905 > unrolled thread
| Started by | <honghui.zhang@mediatek.com> |
|---|---|
| First post | 2017-08-14 15:10 +0200 |
| Last post | 2017-08-14 15:10 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH v2 2/3] PCI: mediatek: take use of bus->sysdata to get host private data <honghui.zhang@mediatek.com> - 2017-08-14 15:10 +0200
| From | <honghui.zhang@mediatek.com> |
|---|---|
| Date | 2017-08-14 15:10 +0200 |
| Subject | [PATCH v2 2/3] PCI: mediatek: take use of bus->sysdata to get host private data |
| Message-ID | <ueni1-4zq-1@gated-at.bofh.it> |
From: Honghui Zhang <honghui.zhang@mediatek.com>
Commit ae02a6dda285 ("PCI: mediatek: Add controller support for MT2712 and
MT7622") has put the mtk_pcie * into bus->sysdata, take advantage of that
to get the private data and simplify the code.
Signed-off-by: Honghui Zhang <honghui.zhang@mediatek.com>
---
drivers/pci/host/pcie-mediatek.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/pci/host/pcie-mediatek.c b/drivers/pci/host/pcie-mediatek.c
index 946c056..acc2e28 100644
--- a/drivers/pci/host/pcie-mediatek.c
+++ b/drivers/pci/host/pcie-mediatek.c
@@ -511,8 +511,7 @@ static int mtk_pcie_setup_irq(struct mtk_pcie_port *port,
static void __iomem *mtk_pcie_map_bus(struct pci_bus *bus,
unsigned int devfn, int where)
{
- struct pci_host_bridge *host = pci_find_host_bridge(bus);
- struct mtk_pcie *pcie = pci_host_bridge_priv(host);
+ struct mtk_pcie *pcie = bus->sysdata;
writel(PCIE_CONF_ADDR(where, PCI_FUNC(devfn), PCI_SLOT(devfn),
bus->number), pcie->base + PCIE_CFG_ADDR);
--
2.6.4
Back to top | Article view | linux.kernel
csiph-web