Message ID | 1502715868-17651-3-git-send-email-honghui.zhang@mediatek.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7C31F60230 for <patchwork-linux-mediatek@patchwork.kernel.org>; Mon, 14 Aug 2017 13:18:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6D15723E64 for <patchwork-linux-mediatek@patchwork.kernel.org>; Mon, 14 Aug 2017 13:18:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 61B9A2860F; Mon, 14 Aug 2017 13:18:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_LOW, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 01B9F23E64 for <patchwork-linux-mediatek@patchwork.kernel.org>; Mon, 14 Aug 2017 13:18:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=NIwE8oEe95Lj3Ml8q1qpD/k85+JsqUUfidFF3fQm4HA=; b=i/aXYEqncLQ+9D ABiW/uO/gu/dpzeruiXw1P6p42BSA3AfvkIYXRvvrZ2Stjoo+vk9vI5tXfLUpsPyEaniqavY/QnKY zpKacTbgKvmcC5Wp0qQqsAd8wrkoUgWBun6K4YupsyBwo5MCdQrwCGwQ+ZKnbXaGR3bSNbtC8HYu2 al5LxYuNRCDtyJ4B36iDyZ+DBH+NGVlALgIEVm0azajEpYnLsH+TyYTFSzKP785VENEDRoolxjHcC fQonBuMtBTGep+871DI3OVhh08zEbezYtKFmJvMRjH0Q34OjhsndP624RsjnxsQnQa8WyQ/T6xOi2 wcb8ZBxGCmK60EdkVp6Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dhFFt-00086x-0D; Mon, 14 Aug 2017 13:18:05 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dhFFG-0007MV-IH; Mon, 14 Aug 2017 13:17:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=bupQZRjcNacUNTVcta6Fj3abS7jMpg6Ae7LVOH5NPhc=; b=SDQueT0S90z3m+M9ljO98j1cU vMpBek3RWgW1bFt9zUt6R1h7as3pb8CkiN4AX4FMyyK/5eVdbSwC/7NyueQW5dsh1YC1NGtaIwe/W zGPa8WCOFNaZvILMxgO9ZxFii8DBRDYZdhwZDWigzLMt6tv04ZhpOQBkhi5qniEY4HOgft5OoVi2L Ws67k1DQz6k/UlM8FB6K7hi2d0clqdpkof+TlrEHuAzcTZznetqjOCk3/v5UDiT/lyMPPGMtLV+8J iwMn4o8++UUKowoveVp2zi+PZ43JkRKS0MNYl8ozysYsXqkc0ZmhyQoJEuZN/p0Y4pSEh58AiZbcp NUTM7SvOQ==; Received: from [210.61.82.183] (helo=mailgw01.mediatek.com) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dhF3Q-0001WL-Jo; Mon, 14 Aug 2017 13:05:15 +0000 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw01.mediatek.com (envelope-from <honghui.zhang@mediatek.com>) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 900007234; Mon, 14 Aug 2017 21:04:37 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Mon, 14 Aug 2017 21:04:37 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Mon, 14 Aug 2017 21:04:36 +0800 From: <honghui.zhang@mediatek.com> To: <bhelgaas@google.com>, <matthias.bgg@gmail.com>, <linux-arm-kernel@lists.infradead.org>, <linux-mediatek@lists.infradead.org>, <linux-pci@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org>, <yingjoe.chen@mediatek.com>, <eddie.huang@mediatek.com>, <ryder.lee@mediatek.com> Subject: [PATCH v2 2/3] PCI: mediatek: take use of bus->sysdata to get host private data Date: Mon, 14 Aug 2017 21:04:27 +0800 Message-ID: <1502715868-17651-3-git-send-email-honghui.zhang@mediatek.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1502715868-17651-1-git-send-email-honghui.zhang@mediatek.com> References: <1502715868-17651-1-git-send-email-honghui.zhang@mediatek.com> MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170814_140512_964978_788B43B6 X-CRM114-Status: GOOD ( 12.63 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-mediatek.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mediatek>, <mailto:linux-mediatek-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-mediatek/> List-Post: <mailto:linux-mediatek@lists.infradead.org> List-Help: <mailto:linux-mediatek-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-mediatek>, <mailto:linux-mediatek-request@lists.infradead.org?subject=subscribe> Cc: youlin.pei@mediatek.com, hongkun.cao@mediatek.com, sean.wang@mediatek.com, xinping.qian@mediatek.com, honghui.zhang@mediatek.com, yt.shen@mediatek.com, yong.wu@mediatek.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-mediatek" <linux-mediatek-bounces@lists.infradead.org> Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
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);