* [PATCH v2] drivers/irqchip: Enable IMX_GPCV2 on i.MX7 by default
@ 2017-04-14 20:28 Andrey Smirnov
2017-04-14 21:01 ` Thomas Gleixner
0 siblings, 1 reply; 3+ messages in thread
From: Andrey Smirnov @ 2017-04-14 20:28 UTC (permalink / raw)
To: linux-kernel
Cc: Andrey Smirnov, yurovsky, Thomas Gleixner, Jason Cooper,
Marc Zyngier, Shawn Guo, Tyler Baker
i.MX7 has GPCv2 IP block and should be one of the main users of that
driver. Unitl now, however, this driver was not being used by i.MX7
code and GPCv2 block not specified in corresponding .dts(i). In light
of the series [1] and problems that lack of the driver creates with it
[2], enable this option when i.MX7 support is selected.
[1] https://lkml.org/lkml/2017/4/13/327
[2] https://lkml.org/lkml/2017/4/13/646
Cc: yurovsky@gmail.com
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Shawn Guo <shawnguo@kernel.org>
Cc: Tyler Baker <tyler.baker@linaro.org>
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
---
Changes since v1:
- Better commit message.
drivers/irqchip/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig
index 125528f..8d87546 100644
--- a/drivers/irqchip/Kconfig
+++ b/drivers/irqchip/Kconfig
@@ -250,7 +250,7 @@ config RENESAS_H8S_INTC
select IRQ_DOMAIN
config IMX_GPCV2
- bool
+ def_bool y if SOC_IMX7D
select IRQ_DOMAIN
help
Enables the wakeup IRQs for IMX platforms with GPCv2 block
--
2.9.3
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] drivers/irqchip: Enable IMX_GPCV2 on i.MX7 by default
2017-04-14 20:28 [PATCH v2] drivers/irqchip: Enable IMX_GPCV2 on i.MX7 by default Andrey Smirnov
@ 2017-04-14 21:01 ` Thomas Gleixner
2017-04-14 21:24 ` Andrey Smirnov
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Gleixner @ 2017-04-14 21:01 UTC (permalink / raw)
To: Andrey Smirnov
Cc: linux-kernel, yurovsky, Jason Cooper, Marc Zyngier, Shawn Guo,
Tyler Baker
On Fri, 14 Apr 2017, Andrey Smirnov wrote:
> i.MX7 has GPCv2 IP block and should be one of the main users of that
> driver. Unitl now, however, this driver was not being used by i.MX7
> code and GPCv2 block not specified in corresponding .dts(i). In light
> of the series [1] and problems that lack of the driver creates with it
> [2], enable this option when i.MX7 support is selected.
Please don't do this link dance. Explain in short precise words what this
is about. Links are only useful when there is information which is too big
to put into a change log or the mail thread contains useful context like a
sequence of steps which led to a patch.
In that case [1] links to a patch for a device tree blob. That's not really
useful to understand this patch. [2] is halfways useful, but you could
simply explain it directly.
Let me give you an example:
i.MX7 contains a GPCv2 IP block, but it was not enabled so far because
the required device tree parts are missing and no other code depends on
it.
The device tree parts and actual users are on the way to mainline, so
it's required to select the GPCv2 driver for i.MX7.
That nicely gives the context (Paragraph 1) and the reason (P 2).
But, this patch is actually wrong. If the SoC or other code parts depend on
it then these parts should simply add a
select IMX_GPCV2
statement to the relevant Kconfig. That avoids endless
default y if FOO || (BLA && !MEH) || BRR .....
lines and enforces the enablement when the actual user is selected.
> [1] https://lkml.org/lkml/2017/4/13/327
> [2] https://lkml.org/lkml/2017/4/13/646
Please do not use lkml.org references. If you ever want to link to a mail
thread then please use http://lkml.kernel.org/r/$Message-Id. That is a
redirector to a known to be available mail archive.
Thanks,
tglx
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] drivers/irqchip: Enable IMX_GPCV2 on i.MX7 by default
2017-04-14 21:01 ` Thomas Gleixner
@ 2017-04-14 21:24 ` Andrey Smirnov
0 siblings, 0 replies; 3+ messages in thread
From: Andrey Smirnov @ 2017-04-14 21:24 UTC (permalink / raw)
To: Thomas Gleixner
Cc: linux-kernel, Andrey Yurovsky, Jason Cooper, Marc Zyngier,
Shawn Guo, Tyler Baker
On Fri, Apr 14, 2017 at 2:01 PM, Thomas Gleixner <tglx@linutronix.de> wrote:
> On Fri, 14 Apr 2017, Andrey Smirnov wrote:
>
>> i.MX7 has GPCv2 IP block and should be one of the main users of that
>> driver. Unitl now, however, this driver was not being used by i.MX7
>> code and GPCv2 block not specified in corresponding .dts(i). In light
>> of the series [1] and problems that lack of the driver creates with it
>> [2], enable this option when i.MX7 support is selected.
>
> Please don't do this link dance. Explain in short precise words what this
> is about. Links are only useful when there is information which is too big
> to put into a change log or the mail thread contains useful context like a
> sequence of steps which led to a patch.
>
> In that case [1] links to a patch for a device tree blob. That's not really
> useful to understand this patch. [2] is halfways useful, but you could
> simply explain it directly.
>
> Let me give you an example:
>
> i.MX7 contains a GPCv2 IP block, but it was not enabled so far because
> the required device tree parts are missing and no other code depends on
> it.
>
> The device tree parts and actual users are on the way to mainline, so
> it's required to select the GPCv2 driver for i.MX7.
>
> That nicely gives the context (Paragraph 1) and the reason (P 2).
>
> But, this patch is actually wrong. If the SoC or other code parts depend on
> it then these parts should simply add a
>
> select IMX_GPCV2
>
> statement to the relevant Kconfig. That avoids endless
>
> default y if FOO || (BLA && !MEH) || BRR .....
>
> lines and enforces the enablement when the actual user is selected.
>
>> [1] https://lkml.org/lkml/2017/4/13/327
>> [2] https://lkml.org/lkml/2017/4/13/646
>
> Please do not use lkml.org references. If you ever want to link to a mail
> thread then please use http://lkml.kernel.org/r/$Message-Id. That is a
> redirector to a known to be available mail archive.
That was very useful, thanks!
I'll convert the patch and include it in v2 of
http://lkml.kernel.org/r/20170413133242.5068-1-andrew.smirnov@gmail.com
Thanks,
Andrey Smirnov
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-04-14 21:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-14 20:28 [PATCH v2] drivers/irqchip: Enable IMX_GPCV2 on i.MX7 by default Andrey Smirnov
2017-04-14 21:01 ` Thomas Gleixner
2017-04-14 21:24 ` Andrey Smirnov
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®