Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754416AbbKWKAS (ORCPT ); Mon, 23 Nov 2015 05:00:18 -0500 Received: from mout.kundenserver.de ([212.227.126.135]:58487 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753787AbbKWKAQ (ORCPT ); Mon, 23 Nov 2015 05:00:16 -0500 From: Arnd Bergmann To: Stanimir Varbanov Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-pci@vger.kernel.org, Bjorn Helgaas , Srinivas Kandagatla , Rob Herring , Rob Herring , Mark Rutland , Pawel Moll , Ian Campbell , Jingoo Han , Pratyush Anand , Bjorn Andersson Subject: Re: [PATCH v3 1/6] PCI: designware: remove wrong io_base assignment Date: Mon, 23 Nov 2015 10:59:36 +0100 Message-ID: <6048361.Am0T3g77Bd@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <44d133d5ebd4f7b9e8b817aa8bae12f690e70000.1448270813.git.stanimir.varbanov@linaro.org> References: <44d133d5ebd4f7b9e8b817aa8bae12f690e70000.1448270813.git.stanimir.varbanov@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:MG2cdqEaXabLGH3d8jGZMXJabLB38cUsFf90GtkpwPlByPNQ5y5 z5tpCdGZYOn7iAOsFbs2629E/LAqW4KSOH1wSYrYoDPkNJzyi2NlLJVd5WxuaX96bLMZcgh +0smfmeT4fqoHnDRwxHravhP++EwOb2DqgfByFyHSm1bruD3+ZJa6BoINBd+ByeipgCP+5t bTWUNB0R/cYvJQgGfDfdA== X-UI-Out-Filterresults: notjunk:1;V01:K0:mZdvsLgQUqk=:ju2xX2zU4RP6F6WlkRGUBb vKGp25wGty8bs8+LyxCYeaGQ5VvXzXYvj4w2U3O1vK5tv9xyNUSJfB98XdiSpRE+SloBYAtMd epSvaeJ5m5LN5RoqX6FjnwdjmjGAlrJk5eN9C0Ie19Bdky+xzQz+yuzllYmBsUXJoeEx3xP08 SI3cU6lFeO8uMHXPkYfmU+l0so/uN0GBBfY97oT3lM5oir6/esDsW6CZPAa8cQtn9HuNLNtQM 7d1mHRjSZYh9AEQ/X0X/87yGFcgEe5tfuoNIX1w5QiNaQj1gaTpPpNq5Q6AGWSI4XWZlUJekj 65NTvfEQY5UtLUFPmsHhvMcERYU4PB4ax9eT6H9RVNZleguk8qTBsARhMroAFw0jeDrGZa3Et HhzIKQ0Uvf0lesWSFd0CBHm4u9DxflLgNnZKZUt0ljLFKXSGZHbQSzVSQgh1N6Fj1/J3oUVgb QzhACzBLgx7+voUjPdxnH/hJNqq05lloURLwcfdF+3CUAliAX1G4Z8VJ/envddHNKiTI5j4/F qqejKoWAL4XQdeMMbHemNQsmReqOTsCQHw//nWhxW9pZ8vlGCq2c8f5UQkuqtxtfiofRF7oFC jFZcnDh4ifiF++FWMUk624aZm2vzZ3eZvhK9ufg4wQJ1hC7abU0/TUt8eEk5XIlQfVSoacEzp Nef4SGdAzHwk+JhW7KtzxipnpbaZoWRcTgM6gsCjzG8bTZTIgxErXCfVCg/h6SZiAVKosVfsF FTwFUr9/qieQAA0r Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1599 Lines: 40 On Monday 23 November 2015 11:28:58 Stanimir Varbanov wrote: > The io_base is used to keep the cpu physical address parsed > from ranges dt property. After issue pci_remap_iospace the > io_base has been assigned with io->start, which is not correct > cause io->start is a PCI bus address. > > Signed-off-by: Stanimir Varbanov > --- > drivers/pci/host/pcie-designware.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/pci/host/pcie-designware.c b/drivers/pci/host/pcie-designware.c > index 540f077c37ea..02a7452bdf23 100644 > --- a/drivers/pci/host/pcie-designware.c > +++ b/drivers/pci/host/pcie-designware.c > @@ -440,7 +440,6 @@ int dw_pcie_host_init(struct pcie_port *pp) > ret, pp->io); > continue; > } > - pp->io_base = pp->io->start; > break; > case IORESOURCE_MEM: > pp->mem = win->res; I was surprised to see such an obvious bug here, as we had spent a lot of time trying to get it right. However, it broke only recently and it's worth mentioning what commit did it, so Fixes: 0021d22b73d6 ("PCI: designware: Use of_pci_get_host_bridge_resources() to parse DT") Reviewed-by: Arnd Bergmann The bug is present in 4.4-rc1 and we should get your fix merged into 4.4 as well, while all the other patches in your series are presumably for 4.5. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/