From: "Alexander Shiyan" <shc_work@mail.ru>
To: "Sascha Hauer" <s.hauer@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re[2]: Regression on latest barebox
Date: Mon, 08 Oct 2012 13:58:02 +0400 [thread overview]
Message-ID: <1349690282.410426865@f350.mail.ru> (raw)
In-Reply-To: <20121008094508.GN1322@pengutronix.de>
Mon, 8 Oct 2012 11:45:08 +0200 от Sascha Hauer <s.hauer@pengutronix.de>:
> On Mon, Oct 08, 2012 at 01:23:54PM +0400, Alexander Shiyan wrote:
> > Hello.
> > Latest master sources have a regression due migrate to use platform_device_register functions.
> > Now I cannot register cfi_flash device which resides at 0x0, because it have conflicts with "mem"
> > command which have same start address.
>
> This is because of this quite bogus check in platform_device_register:
>
> if (dev->resource->start == new_device->resource->start) {
> return -EBUSY;
> }
>
> The correct way would be to check whether the regions overlap, not
> whether the start addresses match. With this the whole patch wouldn't
> work anymore because everything would conflict with the iomem resource.
>
> I have no good idea atm except making /dev/mem a non driver.
Or we can provide virtual bus ("system" for example) for /dev/mem device.
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
prev parent reply other threads:[~2012-10-08 9:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-08 9:23 Alexander Shiyan
[not found] ` <20121008094508.GN1322@pengutronix.de>
2012-10-08 9:58 ` Alexander Shiyan [this message]
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=1349690282.410426865@f350.mail.ru \
--to=shc_work@mail.ru \
--cc=barebox@lists.infradead.org \
--cc=s.hauer@pengutronix.de \
/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