From: Shawn Guo <shawn.guo@linaro.org>
To: Grant Likely <grant.likely@secretlab.ca>
Cc: <linuxppc-dev@lists.ozlabs.org>, <linux-kernel@vger.kernel.org>,
Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
Benjamin Herrenschmidt <benh@kernel.crashing.org>,
Rob Herring <rob.herring@calxeda.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH 2/2] of: use platform_device_add
Date: Sun, 17 Feb 2013 15:43:20 +0800 [thread overview]
Message-ID: <20130217074317.GB16632@S2101-09.ap.freescale.net> (raw)
In-Reply-To: <20130217030331.GA15048@S2101-09.ap.freescale.net>
On Sun, Feb 17, 2013 at 11:03:35AM +0800, Shawn Guo wrote:
> On Fri, Jan 18, 2013 at 01:40:00AM +0000, Grant Likely wrote:
> > This allows platform_device_add a chance to call insert_resource on all
> > of the resources from OF. At a minimum this fills in proc/iomem and
> > presumably makes resource tracking and conflict detection work better.
> > However, it has the side effect of moving all OF generated platform
> > devices from /sys/devices to /sys/devices/platform/. It /shouldn't/
> > break userspace because userspace is not supposed to depend on the full
> > path (because userspace always does what it is supposed to, right?).
> >
> > This may cause breakage if either:
> > 1) any two nodes in a given device tree have overlapping & staggered
> > regions (ie. 0x80..0xbf and 0xa0..0xdf; where one is not contained
> > within the other). In this case one of the devices will fail to
> > register and an exception will be needed in platform_device_add() to
> > complain but not fail.
>
> Grant,
>
> The patch introduce a regression on imx6q boot.
It also breaks all of_amba_device users.
of_amba_device_create() --> amba_device_add() --> request_resource()
and fails.
Shawn
next prev parent reply other threads:[~2013-02-17 7:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-18 1:39 [PATCH 1/2] powerpc/5200: Fix size to request_mem_region() call Grant Likely
2013-01-18 1:40 ` [PATCH 2/2] of: use platform_device_add Grant Likely
2013-02-17 3:03 ` Shawn Guo
2013-02-17 7:43 ` Shawn Guo [this message]
2013-02-17 10:19 ` Russell King - ARM Linux
2013-02-17 10:49 ` Grant Likely
2013-02-19 19:03 ` Jason Gunthorpe
2013-02-17 13:18 ` Fabio Estevam
2013-01-22 21:10 ` [PATCH 1/2] powerpc/5200: Fix size to request_mem_region() call Anatolij Gustschin
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=20130217074317.GB16632@S2101-09.ap.freescale.net \
--to=shawn.guo@linaro.org \
--cc=benh@kernel.crashing.org \
--cc=grant.likely@secretlab.ca \
--cc=gregkh@linuxfoundation.org \
--cc=jgunthorpe@obsidianresearch.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=rob.herring@calxeda.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
all inboxes | Powered by JetHome®