From: Julien Grall <julien.grall@linaro.org>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: xen-devel@lists.xen.org,
Andrii Tseglytskyi <andrii.tseglytskyi@globallogic.com>
Subject: Re: [PATCH v01 2/3] xen/arm: add platform specific definitions for DRA7 evm board
Date: Fri, 27 Jun 2014 18:50:08 +0100 [thread overview]
Message-ID: <53ADAED0.4020006@linaro.org> (raw)
In-Reply-To: <1403880437.3169.55.camel@kazak.uk.xensource.com>
On 06/27/2014 03:47 PM, Ian Campbell wrote:
> On Fri, 2014-06-27 at 15:27 +0100, Julien Grall wrote:
>> Hi Ian,
>>
>> On 27/06/14 13:17, Ian Campbell wrote:
>>>> + /* OMAP Linux kernel handles devices with status "disabled" in a
>>>> + * weird manner - tries to reset them. While their memory ranges
>>>> + * are not mapped, this leads to data aborts, so skip these devices
>>>> + * from DT for dom0.
>>>> + */
>>>> + DT_MATCH_NOT_AVAILABLE(),
>>>
>>> I think this should be done in common code, either by default (if that
>>> makes sense) or using a new quirk flag.
>>
>> Both of these solutions doesn't make sense to me. A device which is not
>> available should not be touch by the kernel. In most of the case, Linux
>> ignores a device which is not available (see amba/platform register code).
>>
>> For instance, some board has the same SOC but with different devices
>> enabled/disabled. In this case, there is usually a common device tree
>> with all enabled/disabled, and a specific device tree which override
>> some properties.
>>
>> If OMAP does weird thinks with the device tree, then we should keep it
>> in the platform code.
>
> That's what the quirks mechanism is for IMHO.
platform_blacklist has been create to blacklist devices for a specific
platform. I don't think other platform will do a such weird think.
handle_node is actually quite complex, there is lots of different case
to skip a node. So I don't feel confident to add a quirk (and therefore
few lines mores) in this function.
So unless there is a good reason to skip blacklist, that does what we
want, I would prefer to use the current solution. And maybe we will be
able to remove it one day...
Regards,
--
Julien Grall
next prev parent reply other threads:[~2014-06-27 17:50 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-26 11:15 [PATCH v01 0/3] arm: introduce basic DRA7 platform support Andrii Tseglytskyi
2014-06-26 11:15 ` [PATCH v01 1/3] xen:dt: add match for non-available nodes Andrii Tseglytskyi
2014-06-26 16:29 ` Julien Grall
2014-06-30 10:11 ` Ian Campbell
2014-06-26 11:15 ` [PATCH v01 2/3] xen/arm: add platform specific definitions for DRA7 evm board Andrii Tseglytskyi
2014-06-26 16:40 ` Julien Grall
2014-06-27 8:28 ` Andrii Tseglytskyi
2014-06-27 12:17 ` Ian Campbell
2014-06-27 14:27 ` Julien Grall
2014-06-27 14:47 ` Ian Campbell
2014-06-27 17:50 ` Julien Grall [this message]
2014-06-30 10:08 ` Ian Campbell
2014-06-27 15:31 ` Andrii Tseglytskyi
2014-06-26 11:15 ` [PATCH v01 3/3] xen/arm: dra7: Add UART base address for early logging Andrii Tseglytskyi
2014-06-26 16:41 ` Julien Grall
2014-06-27 12:19 ` Ian Campbell
2014-06-26 16:46 ` [PATCH v01 0/3] arm: introduce basic DRA7 platform support Julien Grall
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=53ADAED0.4020006@linaro.org \
--to=julien.grall@linaro.org \
--cc=Ian.Campbell@citrix.com \
--cc=andrii.tseglytskyi@globallogic.com \
--cc=xen-devel@lists.xen.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.