From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from metis.ext.pengutronix.de ([92.198.50.35]:33214 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754829AbaHFIl1 (ORCPT ); Wed, 6 Aug 2014 04:41:27 -0400 Message-ID: <1407314357.5208.2.camel@weser.hi.pengutronix.de> Subject: Re: designware: missing *config* reg space From: Lucas Stach To: Pratyush Anand , Fabio Estevam Cc: "kishon@ti.com" , Mohit KUMAR DCG , Bjorn Helgaas , Shawn Guo , Marek =?UTF-8?Q?Va=C5=A1ut?= , Tim Harvey , Sascha Hauer , "linux-pci@vger.kernel.org" , Jingoo Han Date: Wed, 06 Aug 2014 10:39:17 +0200 In-Reply-To: <20140806043204.GA2755@pratyush-vbox> References: <20140806043204.GA2755@pratyush-vbox> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Sender: linux-pci-owner@vger.kernel.org List-ID: Am Mittwoch, den 06.08.2014, 10:02 +0530 schrieb Pratyush Anand: > Hi, > > On Wed, Aug 06, 2014 at 02:26:10AM +0800, Fabio Estevam wrote: > > Hi, > > > > I am running linux-next 20140805 on a imx6q-sabresd board and noticed > > the following error: > > > > root@freescale /$ dmesg | grep pci > > [ 0.168095] imx6q-pcie 1ffc000.pcie: missing *config* reg space > > [ 0.501019] imx6q-pcie 1ffc000.pcie: phy link never came up > > [ 0.501579] imx6q-pcie 1ffc000.pcie: PCI host bridge to bus 0000:00 > > > > This 'missing *config* reg space' was introduced by: > > dev_err printing the above message should be dev_dbg until all the > platform specifies its configuration space definition through *reg* > instead of *ranges*. > No it's completely right. Printing errors actually triggers people to fix their DTs. > > commit 4dd964df36d0e548e1806ec2ec275b62d4dc46e8 > > Author: Kishon Vijay Abraham I > > Date: Thu Jul 17 14:30:40 2014 +0530 > > > > PCI: designware: Look for configuration space in 'reg', not 'ranges' > > > > The configuration address space has so far been specified in *ranges*, > > however it should be specified in *reg* making it a platform MEM resource. > > Hence used 'platform_get_resource_*' API to get configuration address space > > in the designware driver. > > > > Signed-off-by: Kishon Vijay Abraham I > > Signed-off-by: Bjorn Helgaas > > Acked-by: Mohit Kumar > > Acked-by: Jingoo Han > > Cc: Jason Gunthorpe > > Cc: Marek Vasut > > Cc: Arnd Bergmann > > > > Wouldn't this break dt compatibility? > > In spite of the above missing *config* message, your system should > work fine. This patch should not affect any older platform.They will > assign their cfg space through restype == 0. > As Pratyush said things should work fine despite this warning. I'll send a DT patch out to Shawn today to get rid of this warning. Regards, Lucas -- Pengutronix e.K. | Lucas Stach | Industrial Linux Solutions | http://www.pengutronix.de/ |