]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf1339164092899738ec0e8c8441dd6a8828a3322
tree07feac2a2ce4fa899e977459ceba71b2f9babc06
parent1c7f68655b2459006a4d7d95694829170b71d607
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]