From: Marc Zyngier <marc.zyngier@arm.com>
To: Andrey Smirnov <andrew.smirnov@gmail.com>, linux-kernel@vger.kernel.org
Cc: yurovsky@gmail.com, Thomas Gleixner <tglx@linutronix.de>,
Jason Cooper <jason@lakedaemon.net>
Subject: Re: [PATCH] irqchip/irq-imx-gpcv2: Clear OF_POPULATED flag
Date: Wed, 12 Apr 2017 09:19:38 +0100 [thread overview]
Message-ID: <a6da3596-c6a1-628f-d4f1-47fd20b53ea4@arm.com> (raw)
In-Reply-To: <20170411164809.13803-1-andrew.smirnov@gmail.com>
On 11/04/17 17:48, Andrey Smirnov wrote:
> Clear OF_POPULATED flag, so that GPC power domain driver[1] can be
> bound to "gpc" node as well.
>
> [1] https://lkml.org/lkml/2017/3/28/835
>
> Cc: yurovsky@gmail.com
> Cc: Thomas Gleixner <tglx@linutronix.de>
> Cc: Jason Cooper <jason@lakedaemon.net>
> Cc: Marc Zyngier <marc.zyngier@arm.com>
> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
> ---
>
> Marc:
>
> You've expressed you disagreement (in [thread]) for adding generic
> infrastructure to perform this kind of trickery because of its
> DT-specific nature. Any chance this, more contained version of it, is
> acceptable?
>
> Thanks,
> Andrey Smirnov
>
> [thread] https://lkml.org/lkml/2017/1/30/241
>
> drivers/irqchip/irq-imx-gpcv2.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/drivers/irqchip/irq-imx-gpcv2.c b/drivers/irqchip/irq-imx-gpcv2.c
> index 15af9a9..e13236f 100644
> --- a/drivers/irqchip/irq-imx-gpcv2.c
> +++ b/drivers/irqchip/irq-imx-gpcv2.c
> @@ -266,6 +266,11 @@ static int __init imx_gpcv2_irqchip_init(struct device_node *node,
> imx_gpcv2_instance = cd;
> register_syscore_ops(&imx_gpcv2_syscore_ops);
>
> + /*
> + * Clear the OF_POPULATED flag set in of_irq_init so that
> + * later the GPC power domain driver will not be skipped.
> + */
> + of_node_clear_flag(node, OF_POPULATED);
> return 0;
> }
Fair enough, I'll pick that one. It is still pretty horrible, but given
that this is an issue with the kernel at large, that's probably the best
we can do.
Thanks,
M.
--
Jazz is not dead. It just smells funny...
prev parent reply other threads:[~2017-04-12 8:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-11 16:48 Andrey Smirnov
2017-04-12 8:19 ` Marc Zyngier [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=a6da3596-c6a1-628f-d4f1-47fd20b53ea4@arm.com \
--to=marc.zyngier@arm.com \
--cc=andrew.smirnov@gmail.com \
--cc=jason@lakedaemon.net \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
--cc=yurovsky@gmail.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®