From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F2457C388F7 for ; Thu, 22 Oct 2020 22:10:43 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7FCA22245F for ; Thu, 22 Oct 2020 22:10:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="FN1Uti8z"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="OVtsB+ts" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7FCA22245F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=MyiFHAMJBlASLXxdk8qpyMnZWdr21D5yCH7vh7lseC4=; b=FN1Uti8zBF3GcOtlGqOGDfJKb gM54YRSBSghG1Mf4xtGtu11OFWklJXLRr3Nj/VWpzaZBRnW9EBZ67OF/c9VQ6BUc3J4e0XXnTiCV6 PVXarxQ8iRzWLTFxEdDANoyhKHC8vxZfwXag7EHlhLq2pWhc7r2wq0+Pxx35m3XP3GMamC5TbQVqS SB6/lq9c4XkQ43GopLLx1EZ8gxzSbPnZDK6OWeAO9FtNepHnlhFSW+tgt8NSmLkofPtQZYRci+EK9 yEIn4e4WftuPhW6bu8iyepVWXQr506ltWOblp475WhmxAMAgwBYryvynHR5lQZt7mNckxxflqwdJS qs03ZCoZw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kVim4-0003rg-3z; Thu, 22 Oct 2020 22:09:32 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kVim0-0003qD-Hj for linux-arm-kernel@lists.infradead.org; Thu, 22 Oct 2020 22:09:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: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=DOYfrupo23QV+e+gX1emS3emaW6u2eUoQFF+OYx7Bow=; b=OVtsB+tsoal7Dp9Il99VIFqFX K8Mo9ZUhDhdD4gof7dwwoavf+7bNMDPC2KE8inqZEjVPoJs0iNcOmNEcx2aLw+02oweVDBIGP9pO4 rRg65KTN0GeA0xMuwgKNhCknAVhG/6OT+j06UpyPFCx9jFuzpiNxLjYPJUrjkermH9gAI2mKLp+C8 CpIcDFLFba94fU1SCPUu1Pv72VPR7bULn1Rqg0IamqoAMx/Dr+PSVuQLSv3wP2G73HtZbnsZcxXz9 fVpV43vcVw25HS5l/m29Y3UTujncUvsqoSYfCsePI54oD23Iug8/8MlBd3JReTxYxeMJt2DomDJGZ hEWrvUbxQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:49706) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kVilw-0002de-ST; Thu, 22 Oct 2020 23:09:24 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1kVilw-0007mq-CU; Thu, 22 Oct 2020 23:09:24 +0100 Date: Thu, 22 Oct 2020 23:09:24 +0100 From: Russell King - ARM Linux admin To: Rob Herring Subject: Re: [PATCH] PCI: mvebu: Fix duplicate resource requests Message-ID: <20201022220924.GX1551@shell.armlinux.org.uk> References: <20201022220038.1339854-1-robh@kernel.org> <20201022220507.GW1551@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20201022220507.GW1551@shell.armlinux.org.uk> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201022_180928_685220_1741DA3A X-CRM114-Status: GOOD ( 11.44 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Lorenzo Pieralisi , Jason Cooper , linux-pci@vger.kernel.org, vtolkm@googlemail.com, Thomas Petazzoni , Bjorn Helgaas , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Oct 22, 2020 at 11:05:07PM +0100, Russell King - ARM Linux admin wrote: > > @@ -1001,9 +995,12 @@ static int mvebu_pcie_parse_request_resources(struct mvebu_pcie *pcie) > > pcie->realio.name = "PCI I/O"; > > > > pci_add_resource(&bridge->windows, &pcie->realio); > > + ret = devm_request_resource(dev, &iomem_resource, &pcie->realio); > > I think you're trying to claim this resource against the wrong parent. Fixing this to ioport_resource results in in working PCIe. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel