From patchwork Mon Jul 3 05:55:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryder Lee X-Patchwork-Id: 9821961 Return-Path: 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 01F4060237 for ; Mon, 3 Jul 2017 05:55:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E121028504 for ; Mon, 3 Jul 2017 05:55:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D40AC2851E; Mon, 3 Jul 2017 05:55:48 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 42E7E28504 for ; Mon, 3 Jul 2017 05:55:47 +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: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:In-Reply-To:References: List-Owner; bh=/37L8Vj1LBfBk8clGCxon7bafJwTzaMEMshWa9U06hI=; b=URklUNfqNi/q9Z vKSfkRt6Vb3WuS5/I/XSajt0W2gbQNaOWKCX9TIOqmPUch2JK9BAAlFTMXR8gqombl5QfnFRRv1B9 sLGrtR7EaOIGMsokNmGkkx1Zn++zEYFJMGOjZWgfghxCoFPgE4VP8IsVyW95uCYvTTLPqmN04VP5H 3U77UargwrYl3/DrKENjsYZHQDpfuQRM1bzVC/6GEnoICvbD17l1qk4EIuljNOH6k90SS37TzdMSE deZxdfzo1D5wH8fw/zB7deTdiknGTI6sJYywoXvrcL51Xyutkx5pd9b4z18wRtDJ3cUwwYkjRAYsj 5M2At1xEutcZAFPCLq7g==; 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 1dRuKn-0005qZ-O8; Mon, 03 Jul 2017 05:55:45 +0000 Received: from [210.61.82.184] (helo=mailgw02.mediatek.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dRuKj-0005bs-VI for linux-mediatek@lists.infradead.org; Mon, 03 Jul 2017 05:55:44 +0000 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1061974802; Mon, 03 Jul 2017 13:55:06 +0800 Received: from mtkexhb02.mediatek.inc (172.21.101.103) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Mon, 3 Jul 2017 13:55:05 +0800 Received: from mtkslt306.mediatek.inc (10.21.14.136) by mtkexhb02.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Mon, 3 Jul 2017 13:55:05 +0800 From: Ryder Lee To: Bjorn Helgaas Subject: [PATCH] PCI: mediatek: Remove unnecessary PCI_REASSIGN_* flags Date: Mon, 3 Jul 2017 13:55:00 +0800 Message-ID: <1499061300-55951-1-git-send-email-ryder.lee@mediatek.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170702_225542_189591_6B6F3E3F X-CRM114-Status: UNSURE ( 8.95 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-pci@vger.kernel.org, Ryder Lee , linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- drivers/pci/host/pcie-mediatek.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/host/pcie-mediatek.c b/drivers/pci/host/pcie-mediatek.c index 51c6118..5a9d858 100644 --- a/drivers/pci/host/pcie-mediatek.c +++ b/drivers/pci/host/pcie-mediatek.c @@ -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;