Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1160954

Re: [PATCH 2/2 RESEND] power: reset: Add syscon poweroff device node for APM X-Gene platform

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Dann Frazier <dann.frazier@canonical.com>
Newsgroups linux.kernel
Subject Re: [PATCH 2/2 RESEND] power: reset: Add syscon poweroff device node for APM X-Gene platform
Date Tue, 09 Jun 2015 05:50:02 +0200
Message-ID <pziI2-2ST-7@gated-at.bofh.it> (permalink)
References <pwZTb-29Z-3@gated-at.bofh.it> <px02T-2mG-41@gated-at.bofh.it>
X-Original-To Tai Nguyen <ttnguyen@apm.com>
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=DctTPViQsSCXmBzdocwsgSGkP81ZSTP0VBvLIW0gvZ4=; b=HhX/r7mHTPCvS0qaWTvyB1KBlXQioLpevhhAWYp80Vfc5+9WRl8c7nJawoMU/YIJxu TLa/RDAL1VDPUpbLZy88t7uWn+t7uTFZN7Sz9S4CjYJaAYVhlHxeM0w6pfjX4++EAV/Z hclElhdghO7xc5WY2bibSL9ZM8oibhakHSTGyATNMvd0rd7ZblKSltitgNqhF1gGy29J u5juNmX3KMNEN7LQy8nuvf1jpfs3gIjXVDUlgMmQuGBhG/B/tAykiQjaZABbbqYSZbQy HeLETIL/kziAU57xEGZOr0mZZBHtKroZ6CvJ7WbmGqpQST4OrR9QfKL8gPh4ZecMpbqF PsXg==
X-Gm-Message-State ALoCoQmfg+lT3x215U+RnfqrrJ1iIq4z4cpwyw3E59zvEEox4/L2850JTi8akkgKP8tRQCKbrXQf
MIME-Version 1.0
X-Received by 10.55.18.104 with SMTP id c101mr38613421qkh.25.1433821461806; Mon, 08 Jun 2015 20:44:21 -0700 (PDT)
Content-Type text/plain; charset=UTF-8
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 67
Organization linux.* mail to news gateway
X-Original-Cc arm@kernel.org, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "devicetree@vger.kernel.org" <devicetree@vger.kernel.org>, linux-arm-kernel <linux-arm-kernel@lists.infradead.org>, patches@apm.com, Jon Masters <jcm@redhat.com>
X-Original-Date Mon, 8 Jun 2015 21:44:21 -0600
X-Original-Message-ID <CALdTtnvQg2xmL5MqxUcvJmk_33XiEg9tnLzYvC++ZQL3j7J46g@mail.gmail.com>
X-Original-References <1433272747-27114-1-git-send-email-ttnguyen@apm.com> <1433272747-27114-3-git-send-email-ttnguyen@apm.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref aioe.org linux.kernel:1160954

Show key headers only | View raw


On Tue, Jun 2, 2015 at 1:19 PM, Tai Nguyen <ttnguyen@apm.com> wrote:
> This patch adds syscon poweroff device node to support poweroff feature
> on APM X-Gene Mustang platform

hey Tai,
 The reboot changes work just fine for me, but poweroff does not:

[  OK  ] Reached target Final Step.
         Starting Power-Off...
reboot: Power down
Unable to poweroff system
Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000000

CPU: 0 PID: 1 Comm: systemd-shutdow Tainted: G        W       4.1.0-rc7+ #1
Hardware name: APM X-Gene Mustang board (DT)
Call trace:
[<ffffffc00008990c>] dump_backtrace+0x0/0x11c
[<ffffffc000089a38>] show_stack+0x10/0x1c
[<ffffffc0005b447c>] dump_stack+0x88/0xc8
[<ffffffc0005b3374>] panic+0xe0/0x220
[<ffffffc0000b5f24>] do_exit+0x990/0x994
[<ffffffc0000d06bc>] SyS_reboot+0x14c/0x208
---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000000

  -dann

> Signed-off-by: Tai Nguyen <ttnguyen@apm.com>
> ---
>  arch/arm64/boot/dts/apm/apm-mustang.dts |   12 ++++++++++++
>  1 file changed, 12 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/apm/apm-mustang.dts b/arch/arm64/boot/dts/apm/apm-mustang.dts
> index 83578e7..910d561 100644
> --- a/arch/arm64/boot/dts/apm/apm-mustang.dts
> +++ b/arch/arm64/boot/dts/apm/apm-mustang.dts
> @@ -23,6 +23,18 @@
>                 device_type = "memory";
>                 reg = < 0x1 0x00000000 0x0 0x80000000 >; /* Updated by bootloader */
>         };
> +
> +       poweroff_mbox: poweroff_mbox@10548000 {
> +               compatible = "syscon";
> +               reg = <0x0 0x10548000 0x0 0x30>;
> +       };
> +
> +       poweroff: poweroff@10548010 {
> +               compatible = "syscon-poweroff";
> +               regmap = <&poweroff_mbox>;
> +               offset = <0x10>;
> +               mask = <0x1>;
> +       };
>  };
>
>  &pcie0clk {
> --
> 1.7.9.5
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH 2/2 RESEND] power: reset: Add syscon poweroff device node  for APM X-Gene platform Dann Frazier <dann.frazier@canonical.com> - 2015-06-09 05:50 +0200
  Re: [PATCH 2/2 RESEND] power: reset: Add syscon poweroff device node  for APM X-Gene platform Tai Tri Nguyen <ttnguyen@apm.com> - 2015-06-09 06:40 +0200
    Re: [PATCH 2/2 RESEND] power: reset: Add syscon poweroff device node  for APM X-Gene platform Moritz Fischer <moritz.fischer@ettus.com> - 2015-06-11 01:10 +0200

csiph-web