From: michael@walle.cc (Michael Walle)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 4/4] ARM: Kirkwood: Convert LSXL to restart-poweroff driver.
Date: Fri, 28 Dec 2012 20:16:59 +0100 [thread overview]
Message-ID: <201212282016.59894.michael@walle.cc> (raw)
In-Reply-To: <1356697512-3950-5-git-send-email-andrew@lunn.ch>
Am Freitag 28 Dezember 2012, 13:25:12 schrieb Andrew Lunn:
> Add a device tree node and remove the C code.
>
> Signed-off-by: Andrew Lunn <andrew@lunn.ch>
> ---
> arch/arm/boot/dts/kirkwood-lsxl.dtsi | 4 ++++
> arch/arm/mach-kirkwood/Kconfig | 1 +
> arch/arm/mach-kirkwood/board-lsxl.c | 16 ----------------
> 3 files changed, 5 insertions(+), 16 deletions(-)
>
> diff --git a/arch/arm/boot/dts/kirkwood-lsxl.dtsi
> b/arch/arm/boot/dts/kirkwood-lsxl.dtsi index 37d45c4..996c7fe 100644
> --- a/arch/arm/boot/dts/kirkwood-lsxl.dtsi
> +++ b/arch/arm/boot/dts/kirkwood-lsxl.dtsi
> @@ -172,6 +172,10 @@
> alarm-gpios = <&gpio1 8 0>;
> };
>
> + restart_poweroff {
> + compatible = "restart-poweroff";
> + };
> +
> regulators {
> compatible = "simple-bus";
> #address-cells = <1>;
> diff --git a/arch/arm/mach-kirkwood/Kconfig
> b/arch/arm/mach-kirkwood/Kconfig index bb4de9c..432bee0 100644
> --- a/arch/arm/mach-kirkwood/Kconfig
> +++ b/arch/arm/mach-kirkwood/Kconfig
> @@ -119,6 +119,7 @@ config MACH_GOFLEXNET_DT
> config MACH_LSXL_DT
> bool "Buffalo Linkstation LS-XHL, LS-CHLv2 (Flattened Device Tree)"
> select ARCH_KIRKWOOD_DT
> + select POWER_RESET_RESTART
> help
> Say 'Y' here if you want your kernel to support the
> Buffalo Linkstation LS-XHL & LS-CHLv2 devices, using
> diff --git a/arch/arm/mach-kirkwood/board-lsxl.c
> b/arch/arm/mach-kirkwood/board-lsxl.c index 4ec8b7a..3483952 100644
> --- a/arch/arm/mach-kirkwood/board-lsxl.c
> +++ b/arch/arm/mach-kirkwood/board-lsxl.c
> @@ -25,19 +25,6 @@ static struct mv643xx_eth_platform_data lsxl_ge01_data =
> { .phy_addr = MV643XX_ETH_PHY_ADDR(8),
> };
>
> -/*
> - * On the LS-XHL/LS-CHLv2, the shutdown process is following:
> - * - Userland monitors key events until the power switch goes to off
> position - * - The board reboots
> - * - U-boot starts and goes into an idle mode waiting for the user
> - * to move the switch to ON position
> - *
> - */
> -static void lsxl_power_off(void)
> -{
> - kirkwood_restart('h', NULL);
> -}
> -
> void __init lsxl_init(void)
> {
> /*
> @@ -46,7 +33,4 @@ void __init lsxl_init(void)
>
> kirkwood_ge00_init(&lsxl_ge00_data);
> kirkwood_ge01_init(&lsxl_ge01_data);
> -
> - /* register power-off method */
> - pm_power_off = lsxl_power_off;
> }
Tested-by: Michael Walle <michael@walle.cc>
Sort of, device_shutdown() is blocking on my board (seems to be some kind of
issue with orion-ehci), but that has nothing to do with this patch :)
next prev parent reply other threads:[~2012-12-28 19:16 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-28 12:25 [PATCH 0/4] Power off drivers for QNAP and LSXL Andrew Lunn
2012-12-28 12:25 ` [PATCH 1/4] Power: Reset: Driver to turn QNAP board power off Andrew Lunn
2013-01-06 21:55 ` Anton Vorontsov
2013-01-08 18:15 ` [PATCH] power: reset: qnap-poweroff: Fix License String Andrew Lunn
2013-01-20 2:05 ` Anton Vorontsov
2013-01-20 20:13 ` Uwe Kleine-König
2013-01-20 20:47 ` Anton Vorontsov
2013-01-21 8:11 ` Uwe Kleine-König
2012-12-28 12:25 ` [PATCH 2/4] ARM: Kirkwood: Make use of the QNAP Power off driver Andrew Lunn
2012-12-28 12:25 ` [PATCH 3/4] Power: Reset: Power off by restarting Andrew Lunn
2012-12-28 18:59 ` Michael Walle
2013-01-06 22:04 ` Anton Vorontsov
2013-01-07 6:42 ` Andrew Lunn
2013-01-07 7:00 ` Anton Vorontsov
2013-01-07 11:27 ` Jason Cooper
2013-01-31 18:54 ` [PATCH] power/reset: restart: remove __dev{init,exit} Jason Cooper
2013-01-31 18:57 ` Jason Cooper
2013-01-31 20:02 ` Andrew Lunn
2013-01-31 20:20 ` Jason Cooper
2013-02-03 3:43 ` Anton Vorontsov
2012-12-28 12:25 ` [PATCH 4/4] ARM: Kirkwood: Convert LSXL to restart-poweroff driver Andrew Lunn
2012-12-28 19:16 ` Michael Walle [this message]
2012-12-28 19:39 ` Andrew Lunn
2012-12-28 23:11 ` Michael Walle
2013-01-23 12:53 ` [PATCH 0/4] Power off drivers for QNAP and LSXL Jason Cooper
2013-05-26 1:19 ` Jason Cooper
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=201212282016.59894.michael@walle.cc \
--to=michael@walle.cc \
--cc=linux-arm-kernel@lists.infradead.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).