ARM: highbank: handle soft poweroff and reset key events
commit3843114856728075d0a80e7151197c19fb3a9e08
authorRob Herring <rob.herring@calxeda.com>
Wed, 4 Dec 2013 17:05:17 +0000 (4 11:05 -0600)
committerOlof Johansson <olof@lixom.net>
Wed, 4 Dec 2013 17:28:50 +0000 (4 09:28 -0800)
tree83cb155afa72b41bbeddf7002d9236f2575a249a
parenta5c6e87a7b224bdbf57875a9da8f340f5a6abc5a
ARM: highbank: handle soft poweroff and reset key events

Graceful reboot and poweroff via IPMI commands to the management
processor don't work. Power and reset keys are events from the
management processor which are generated via IPC messages. Passing
the keys to userspace does not work as neither acpid nor a desktop
environment are present.

This adds a notifier handler for the IPC messages so the kernel can
handle the key events directly and IPMI graceful shutdown will work.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Cc: stable@vger.kernel.org
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-highbank/highbank.c