[PATCH v2 09/12] platform/chrome: cros_ec_lpc: prepare for hw_protection_shutdown removal
Tzung-Bi Shih
tzungbi at kernel.org
Mon Jan 20 07:12:41 UTC 2025
On Mon, Jan 13, 2025 at 05:25:34PM +0100, Ahmad Fatoum wrote:
> In the general case, a driver doesn't know which of system shutdown or
> reboot is the better action to take to protect hardware in an emergency
> situation. For this reason, hw_protection_shutdown is going to be
> removed in favor of hw_protection_trigger, which defaults to shutdown,
> but may be configured at kernel runtime to be a reboot instead.
>
> The ChromeOS EC situation is different as we do know that shutdown is
> the correct action as the EC is programmed to force reset after the
> short period, thus replace hw_protection_shutdown with
> __hw_protection_trigger with HWPROT_ACT_SHUTDOWN as argument to
> maintain the same behavior.
>
> No functional change.
>
> Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
Acked-by: Tzung-Bi Shih <tzungbi at kernel.org>
More information about the Linux-security-module-archive
mailing list