Skip to content

Commit 75e09ab

Browse files
vadimp-nvidiajwrdegoede
authored andcommitted
platform: mellanox: mlx-platform: Modify power off callback
Extend platform power off callback with kernel_halt() call. When powering off, the process involves setting a halt bit in the register space, which is then activated after a certain delay and power off auxiliary power. By invoking `kernel_halt()` within this timeframe, the intention is to facilitate a clean system power-off sequence. Signed-off-by: Vadim Pasternak <vadimp@nvidia.com> Reviewed-by: Michael Shych <michaelsh@nvidia.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Link: https://lore.kernel.org/r/20230822113451.13785-8-vadimp@nvidia.com Signed-off-by: Hans de Goede <hdegoede@redhat.com>
1 parent 3d0593c commit 75e09ab

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/platform/x86/mlx-platform.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5539,6 +5539,7 @@ static void mlxplat_poweroff(void)
55395539
struct mlxplat_priv *priv = platform_get_drvdata(mlxplat_dev);
55405540

55415541
regmap_write(priv->regmap, MLXPLAT_CPLD_LPC_REG_GP1_OFFSET, MLXPLAT_CPLD_HALT_MASK);
5542+
kernel_halt();
55425543
}
55435544

55445545
static int __init mlxplat_dmi_default_matched(const struct dmi_system_id *dmi)

0 commit comments

Comments
 (0)