From: Marc Zyngier <maz@kernel.org>
To: kostap@marvell.com
Cc: tmn505@gmail.com, andrew@lunn.ch, jaz@semihalf.com,
gregory.clement@bootlin.com, nadavh@marvell.com,
stefanc@marvell.com, tglx@linutronix.de, mw@semihalf.com,
bpeled@marvell.com, linux-arm-kernel@lists.infradead.org,
sebastian.hesselbarth@gmail.com
Subject: Re: [PATCH 1/1] marvell: irqchip: pic: change driver initcall to arch
Date: Tue, 22 Dec 2020 13:12:47 +0000 [thread overview]
Message-ID: <9c20fec9eb52ba7328e63efdbc3209fd@kernel.org> (raw)
In-Reply-To: <20201222122151.4549-1-kostap@marvell.com>
On 2020-12-22 12:21, kostap@marvell.com wrote:
> From: Stefan Chulski <stefanc@marvell.com>
>
> Patch solves the PMU driver probe error.
> PMU driver depends on irqchip pic driver, so it should probe
> after irqchip pic driver.
> Initcall order changed from device to arch.
>
> Signed-off-by: Stefan Chulski <stefanc@marvell.com>
> Signed-off-by: Konstantin Porotchkin <kostap@marvell.com>
> ---
> drivers/irqchip/irq-mvebu-pic.c | 14 +++++++++++++-
> 1 file changed, 13 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/irqchip/irq-mvebu-pic.c
> b/drivers/irqchip/irq-mvebu-pic.c
> index eec63951129a..eca1a6edf49c 100644
> --- a/drivers/irqchip/irq-mvebu-pic.c
> +++ b/drivers/irqchip/irq-mvebu-pic.c
> @@ -188,7 +188,19 @@ static struct platform_driver mvebu_pic_driver = {
> .of_match_table = mvebu_pic_of_match,
> },
> };
> -module_platform_driver(mvebu_pic_driver);
> +
> +static int __init mvebu_pic_driver_init(void)
> +{
> + return platform_driver_register(&mvebu_pic_driver);
> +}
> +
> +static void __exit mvebu_pic_driver_exit(void)
> +{
> + return platform_driver_unregister(&mvebu_pic_driver);
> +}
> +
> +arch_initcall(mvebu_pic_driver_init)
> +module_exit(mvebu_pic_driver_exit)
>
> MODULE_AUTHOR("Yehuda Yitschak <yehuday@marvell.com>");
> MODULE_AUTHOR("Thomas Petazzoni
> <thomas.petazzoni@free-electrons.com>");
You are trading an implicit dependency for another one,
so this patch isn't acceptable, as it is just as likely to
break as the current situation.
Furthermore, at least on the system I lying around (8040), the PMU
driver is perfectly able to defer its probing until the interrupt
becomes available, so I have no idea what problem you are trying
to solve.
M.
--
Jazz is not dead. It just smells funny...
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
prev parent reply other threads:[~2020-12-22 13:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-22 12:21 [PATCH 1/1] marvell: irqchip: pic: change driver initcall to arch kostap
2020-12-22 13:12 ` 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=9c20fec9eb52ba7328e63efdbc3209fd@kernel.org \
--to=maz@kernel.org \
--cc=andrew@lunn.ch \
--cc=bpeled@marvell.com \
--cc=gregory.clement@bootlin.com \
--cc=jaz@semihalf.com \
--cc=kostap@marvell.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=mw@semihalf.com \
--cc=nadavh@marvell.com \
--cc=sebastian.hesselbarth@gmail.com \
--cc=stefanc@marvell.com \
--cc=tglx@linutronix.de \
--cc=tmn505@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;
as well as URLs for NNTP newsgroup(s).