power: reset: add driver for LinkStation power off
authorDaniel González Cabanelas <dgcbueu@gmail.com>
Wed, 15 Jul 2020 13:35:14 +0000 (15:35 +0200)
committerSebastian Reichel <sre@kernel.org>
Mon, 27 Jul 2020 23:49:32 +0000 (01:49 +0200)
commita7f79f99541eff4e6bcae0014eb08d3019337565
tree07feac2a2ce4fa899e977459ceba71b2f9babc06
parentac31585fca317b29b6b7093a5a6775137a852f94
power: reset: add driver for LinkStation power off

Some Buffalo LinkStations perform the power off operation, at restart
time, depending on the state of an output pin (LED2/INTn) at the ethernet
PHY. This pin is also used to wake the machine when a WoL packet is
received by the PHY.

The driver is required by the Buffalo LinkStation LS421DE (ARM MVEBU),
and other models. Without it, the board remains forever halted if a
power off command is executed, unless the PSU is disconnected and
connected again.

Add the driver to provide the power off function and also make the WoL
feature to be available.

Signed-off-by: Daniel González Cabanelas <dgcbueu@gmail.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/reset/Kconfig
drivers/power/reset/Makefile
drivers/power/reset/linkstation-poweroff.c [new file with mode: 0644]