mfd: cros_ec: Add support for dumping panic information
authorNicolas Boichat <drinkcat@chromium.org>
Tue, 16 May 2017 15:46:48 +0000 (17:46 +0200)
committerBenson Leung <bleung@chromium.org>
Fri, 16 Jun 2017 20:57:45 +0000 (13:57 -0700)
commit6e4941067cef482c9ed254cf06cab70c32db05b2
tree85dc68b480c186c5a4d9a7445005175c507bec9a
parent73b44f40c63bebcce9d66c4072878ecaceb43dda
mfd: cros_ec: Add support for dumping panic information

This dumps the EC panic information from the previous reboot.

Similar to the information presented by ectool panicinfo, except
that we do not bother doing any parsing (we should write a small
offline tool for that).

Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Tested-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Benson Leung <bleung@chromium.org>
drivers/platform/chrome/cros_ec_debugfs.c