Skip to content

Commit 0d228ff

Browse files
vadimp-nvidiajwrdegoede
authored andcommitted
platform: mellanox: mlx-platform: Modify health and power hotplug action
Set explicitly hotplug event action for health and power signals for L1 switch as "MLXREG_HOTPLUG_DEVICE_NO_ACTION" in order to allow processing of notification callback even I2C parent bus is not specified. 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-5-vadimp@nvidia.com Signed-off-by: Hans de Goede <hdegoede@redhat.com>
1 parent 59b96ea commit 0d228ff

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/platform/x86/mlx-platform.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2373,6 +2373,7 @@ static struct mlxreg_core_data mlxplat_mlxcpld_l1_switch_pwr_events_items_data[]
23732373
.reg = MLXPLAT_CPLD_LPC_REG_PWRB_OFFSET,
23742374
.mask = MLXPLAT_CPLD_PWR_BUTTON_MASK,
23752375
.hpdev.nr = MLXPLAT_CPLD_NR_NONE,
2376+
.hpdev.action = MLXREG_HOTPLUG_DEVICE_NO_ACTION,
23762377
.hpdev.notifier = &mlxplat_mlxcpld_l1_switch_pwr_events_notifier,
23772378
},
23782379
};
@@ -2433,6 +2434,7 @@ static struct mlxreg_core_data mlxplat_mlxcpld_l1_switch_health_events_items_dat
24332434
.reg = MLXPLAT_CPLD_LPC_REG_BRD_OFFSET,
24342435
.mask = MLXPLAT_CPLD_INTRUSION_MASK,
24352436
.hpdev.nr = MLXPLAT_CPLD_NR_NONE,
2437+
.hpdev.action = MLXREG_HOTPLUG_DEVICE_NO_ACTION,
24362438
.hpdev.notifier = &mlxplat_mlxcpld_l1_switch_intrusion_events_notifier,
24372439
},
24382440
{

0 commit comments

Comments
 (0)