All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 23/25 v7][RFC] Local: Hack: remove pm_sysrq_init
@ 2015-08-24  2:32 Kuninori Morimoto
  2015-08-26  7:33 ` Magnus Damm
  0 siblings, 1 reply; 2+ messages in thread
From: Kuninori Morimoto @ 2015-08-24  2:32 UTC (permalink / raw)
  To: linux-sh

From: Yoshifumi Hosoya <yoshifumi.hosoya.wj@renesas.com>

In initial H3 environment, psci/pm/suspend is not supported.
When primary cpu was booted, pm_sysrq_init() is not initialized.
So remove this function as temporary fix.

Signed-off-by: Yoshifumi Hosoya <yoshifumi.hosoya.wj@renesas.com>
Signed-off-by: Gaku Inami <gaku.inami.xw@bp.renesas.com>
Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com>
---
v5 -> v7

 - no change

 kernel/power/poweroff.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/power/poweroff.c b/kernel/power/poweroff.c
index 7ef6866..3f7ba43 100644
--- a/kernel/power/poweroff.c
+++ b/kernel/power/poweroff.c
@@ -39,7 +39,7 @@ static struct sysrq_key_op	sysrq_poweroff_op = {
 
 static int __init pm_sysrq_init(void)
 {
-	register_sysrq_key('o', &sysrq_poweroff_op);
+//	register_sysrq_key('o', &sysrq_poweroff_op);
 	return 0;
 }
 
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 23/25 v7][RFC] Local: Hack: remove pm_sysrq_init
  2015-08-24  2:32 [PATCH 23/25 v7][RFC] Local: Hack: remove pm_sysrq_init Kuninori Morimoto
@ 2015-08-26  7:33 ` Magnus Damm
  0 siblings, 0 replies; 2+ messages in thread
From: Magnus Damm @ 2015-08-26  7:33 UTC (permalink / raw)
  To: linux-sh

Hi Morimoto-san,

On Mon, Aug 24, 2015 at 11:32 AM, Kuninori Morimoto
<kuninori.morimoto.gx@renesas.com> wrote:
> From: Yoshifumi Hosoya <yoshifumi.hosoya.wj@renesas.com>
>
> In initial H3 environment, psci/pm/suspend is not supported.
> When primary cpu was booted, pm_sysrq_init() is not initialized.
> So remove this function as temporary fix.
>
> Signed-off-by: Yoshifumi Hosoya <yoshifumi.hosoya.wj@renesas.com>
> Signed-off-by: Gaku Inami <gaku.inami.xw@bp.renesas.com>
> Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com>
> ---
> v5 -> v7
>
>  - no change

Thanks for your patch. Is this really needed? I doubt that, but
usually code is included for a reason. =)

If the patch is still needed, may I propose that you temporarily
modify the defconfig to disable CONFIG_MAGIC_SYSRQ instead of
modifying core code?

Thanks,

/ magnus

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-08-26  7:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-24  2:32 [PATCH 23/25 v7][RFC] Local: Hack: remove pm_sysrq_init Kuninori Morimoto
2015-08-26  7:33 ` Magnus Damm

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.