platform/chrome: cros_ec: Report EC panic as uevent
authorRob Barnes <robbarnes@google.com>
Tue, 9 May 2023 23:26:24 +0000 (23:26 +0000)
committerTzung-Bi Shih <tzungbi@kernel.org>
Mon, 15 May 2023 03:55:41 +0000 (11:55 +0800)
commit2cbf475a04b2ae3d722bbe41742e5d874a027fc3
tree58678c21c564f0db9ced693871c0cf89c653f5f2
parentc9f9c6c875d14a107dabcf4579fcab95ed30af31
platform/chrome: cros_ec: Report EC panic as uevent

Create a uevent when an EC panic is detected. This will allow udev rules
to trigger when a panic occurs. For example, a udev rule could be added to
capture an EC coredump. This approach avoids the need to stuff all the
processing into the driver.

Signed-off-by: Rob Barnes <robbarnes@google.com>
Reviewed-by: Prashant Malani <pmalani@chromium.org>
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://lore.kernel.org/r/20230509232624.3120347-1-robbarnes@google.com
drivers/platform/chrome/cros_ec_lpc.c