linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Lucas Stach <l.stach@pengutronix.de>
To: Pratyush Anand <pratyush.anand@st.com>,
	Fabio Estevam <festevam@gmail.com>
Cc: "kishon@ti.com" <kishon@ti.com>,
	"Mohit KUMAR DCG" <Mohit.KUMAR@st.com>,
	"Bjorn Helgaas" <bhelgaas@google.com>,
	"Shawn Guo" <shawn.guo@freescale.com>,
	"Marek Vašut" <marex@denx.de>,
	"Tim Harvey" <tharvey@gateworks.com>,
	"Sascha Hauer" <kernel@pengutronix.de>,
	"linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>,
	"Jingoo Han" <jg1.han@samsung.com>
Subject: Re: designware: missing *config* reg space
Date: Wed, 06 Aug 2014 10:39:17 +0200	[thread overview]
Message-ID: <1407314357.5208.2.camel@weser.hi.pengutronix.de> (raw)
In-Reply-To: <20140806043204.GA2755@pratyush-vbox>

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 <kishon@ti.com>
> > 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 <kishon@ti.com>
> >     Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
> >     Acked-by: Mohit Kumar <mohit.kumar@st.com>
> >     Acked-by: Jingoo Han <jg1.han@samsung.com>
> >     Cc: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
> >     Cc: Marek Vasut <marex@denx.de>
> >     Cc: Arnd Bergmann <arnd@arndb.de>
> > 
> > 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/  |


  reply	other threads:[~2014-08-06  8:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-05 18:26 designware: missing *config* reg space Fabio Estevam
2014-08-06  4:32 ` Pratyush Anand
2014-08-06  8:39   ` Lucas Stach [this message]
2014-08-07  3:01     ` Jingoo Han
2014-08-07  3:12       ` Fabio Estevam
2014-08-07  3:21         ` Jingoo Han

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1407314357.5208.2.camel@weser.hi.pengutronix.de \
    --to=l.stach@pengutronix.de \
    --cc=Mohit.KUMAR@st.com \
    --cc=bhelgaas@google.com \
    --cc=festevam@gmail.com \
    --cc=jg1.han@samsung.com \
    --cc=kernel@pengutronix.de \
    --cc=kishon@ti.com \
    --cc=linux-pci@vger.kernel.org \
    --cc=marex@denx.de \
    --cc=pratyush.anand@st.com \
    --cc=shawn.guo@freescale.com \
    --cc=tharvey@gateworks.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).