Skip to content

Commit 3c91d7e

Browse files
vadimp-nvidiajwrdegoede
authored andcommitted
platform: mellanox: mlx-platform: Fix signals polarity and latch mask
Change polarity of chassis health and power signals and fix latch reset mask for L1 switch. Fixes: dd635e3 ("platform: mellanox: Introduce support of new Nvidia L1 switch") Signed-off-by: Vadim Pasternak <vadimp@nvidia.com> Reviewed-by: Michael Shych <michaelsh@nvidia.com> Link: https://lore.kernel.org/r/20230813083735.39090-3-vadimp@nvidia.com Signed-off-by: Hans de Goede <hdegoede@redhat.com>
1 parent 8e3938c commit 3c91d7e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/platform/x86/mlx-platform.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@
237237
#define MLXPLAT_CPLD_GWP_MASK GENMASK(0, 0)
238238
#define MLXPLAT_CPLD_EROT_MASK GENMASK(1, 0)
239239
#define MLXPLAT_CPLD_PWR_BUTTON_MASK BIT(0)
240-
#define MLXPLAT_CPLD_LATCH_RST_MASK BIT(5)
240+
#define MLXPLAT_CPLD_LATCH_RST_MASK BIT(6)
241241
#define MLXPLAT_CPLD_THERMAL1_PDB_MASK BIT(3)
242242
#define MLXPLAT_CPLD_THERMAL2_PDB_MASK BIT(4)
243243
#define MLXPLAT_CPLD_INTRUSION_MASK BIT(6)
@@ -2475,7 +2475,7 @@ static struct mlxreg_core_item mlxplat_mlxcpld_l1_switch_events_items[] = {
24752475
.reg = MLXPLAT_CPLD_LPC_REG_PWRB_OFFSET,
24762476
.mask = MLXPLAT_CPLD_PWR_BUTTON_MASK,
24772477
.count = ARRAY_SIZE(mlxplat_mlxcpld_l1_switch_pwr_events_items_data),
2478-
.inversed = 0,
2478+
.inversed = 1,
24792479
.health = false,
24802480
},
24812481
{
@@ -2484,7 +2484,7 @@ static struct mlxreg_core_item mlxplat_mlxcpld_l1_switch_events_items[] = {
24842484
.reg = MLXPLAT_CPLD_LPC_REG_BRD_OFFSET,
24852485
.mask = MLXPLAT_CPLD_L1_CHA_HEALTH_MASK,
24862486
.count = ARRAY_SIZE(mlxplat_mlxcpld_l1_switch_health_events_items_data),
2487-
.inversed = 0,
2487+
.inversed = 1,
24882488
.health = false,
24892489
.ind = 8,
24902490
},
@@ -3677,7 +3677,7 @@ static struct mlxreg_core_data mlxplat_mlxcpld_default_ng_regs_io_data[] = {
36773677
{
36783678
.label = "latch_reset",
36793679
.reg = MLXPLAT_CPLD_LPC_REG_GP1_OFFSET,
3680-
.mask = GENMASK(7, 0) & ~BIT(5),
3680+
.mask = GENMASK(7, 0) & ~BIT(6),
36813681
.mode = 0200,
36823682
},
36833683
{

0 commit comments

Comments
 (0)