From: Scott Wood <oss@buserror.net>
To: Andrey Smirnov <andrew.smirnov@gmail.com>, linuxppc-dev@lists.ozlabs.org
Cc: Kumar Gala <galak@kernel.crashing.org>,
Benjamin Herrenschmidt <benh@kernel.crashing.org>,
Paul Mackerras <paulus@samba.org>,
Michael Ellerman <mpe@ellerman.id.au>,
Alessio Igor Bogani <alessio.bogani@elettra.eu>,
Daniel Axtens <dja@axtens.net>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/3] powerpc: Convert fsl_rstcr_restart to a reset handler
Date: Tue, 26 Jul 2016 02:59:05 -0500 [thread overview]
Message-ID: <1469519945.25630.105.camel@buserror.net> (raw)
In-Reply-To: <1469507114-5788-3-git-send-email-andrew.smirnov@gmail.com>
On Mon, 2016-07-25 at 21:25 -0700, Andrey Smirnov wrote:
> Convert fsl_rstcr_restart into a function to be registered with
> register_reset_handler() API and introduce fls_rstcr_restart_register()
> function that can be added as an initcall that would do aforementioned
> registration.
>
> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Is there a particular motivation for this (e.g. new handlers you plan to
register elsewhere)?
> diff --git a/arch/powerpc/platforms/85xx/bsc913x_qds.c
> b/arch/powerpc/platforms/85xx/bsc913x_qds.c
> index 07dd6ae..14ea7a0 100644
> --- a/arch/powerpc/platforms/85xx/bsc913x_qds.c
> +++ b/arch/powerpc/platforms/85xx/bsc913x_qds.c
> @@ -53,6 +53,7 @@ static void __init bsc913x_qds_setup_arch(void)
> }
>
> machine_arch_initcall(bsc9132_qds, mpc85xx_common_publish_devices);
> +machine_arch_initcall(bsc9133_qds, fsl_rstcr_restart_register);
Do we really still need to call the registration on a per-board basis, now
that boards have a way of registering a higher-priority notifier? Can't we
just have setup_rstcr() do the registration when it finds the appropriate
device tree node?
> +int fsl_rstcr_restart_register(void)
> +{
> + static struct notifier_block restart_handler;
> +
> + restart_handler.notifier_call = fsl_rstcr_restart;
> + restart_handler.priority = 128;
> +
> + return register_restart_handler(&restart_handler);
> +}
> +EXPORT_SYMBOL(fsl_rstcr_restart_register);
When would this ever get called from a module?
-Scott
next prev parent reply other threads:[~2016-07-26 7:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-26 4:25 [PATCH 1/3] powerpc: Factor out common code in setup-common.c Andrey Smirnov
2016-07-26 4:25 ` [PATCH 2/3] powerpc: Call chained reset handlers during reset Andrey Smirnov
2016-07-26 4:25 ` [PATCH 3/3] powerpc: Convert fsl_rstcr_restart to a reset handler Andrey Smirnov
2016-07-26 7:59 ` Scott Wood [this message]
2016-07-26 21:22 ` Andrey Smirnov
2016-07-26 21:26 ` Scott Wood
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=1469519945.25630.105.camel@buserror.net \
--to=oss@buserror.net \
--cc=alessio.bogani@elettra.eu \
--cc=andrew.smirnov@gmail.com \
--cc=benh@kernel.crashing.org \
--cc=dja@axtens.net \
--cc=galak@kernel.crashing.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mpe@ellerman.id.au \
--cc=paulus@samba.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 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).