Skip to content

Commit c071afc

Browse files
vadimp-nvidiajwrdegoede
authored andcommitted
platform/x86: mlx-platform: Remove PSU EEPROM configuration
Remove PSU EEPROM configuration for systems class equipped with Mellanox chip Spectrume-2. Till now all the systems from this class used few types of power units, all equipped with EEPROM device with address space two bytes. Thus, all these devices have been handled by EEPROM driver "24c32". There is a new requirement is to support power unit replacement by "off the shelf" device, matching electrical required parameters. Such device could be equipped with different EEPROM type, which could be one byte address space addressing or even could be not equipped with EEPROM. In such case "24c32" will not work. Fixes: 1bd42d9 ("platform/x86: mlx-platform: Add support for new 200G IB and Ethernet systems") Signed-off-by: Vadim Pasternak <vadimp@nvidia.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20200923172053.26296-2-vadimp@nvidia.com Signed-off-by: Hans de Goede <hdegoede@redhat.com>
1 parent d0e21c2 commit c071afc

1 file changed

Lines changed: 2 additions & 13 deletions

File tree

drivers/platform/x86/mlx-platform.c

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -328,15 +328,6 @@ static struct i2c_board_info mlxplat_mlxcpld_psu[] = {
328328
},
329329
};
330330

331-
static struct i2c_board_info mlxplat_mlxcpld_ng_psu[] = {
332-
{
333-
I2C_BOARD_INFO("24c32", 0x51),
334-
},
335-
{
336-
I2C_BOARD_INFO("24c32", 0x50),
337-
},
338-
};
339-
340331
static struct i2c_board_info mlxplat_mlxcpld_pwr[] = {
341332
{
342333
I2C_BOARD_INFO("dps460", 0x59),
@@ -770,15 +761,13 @@ static struct mlxreg_core_data mlxplat_mlxcpld_default_ng_psu_items_data[] = {
770761
.label = "psu1",
771762
.reg = MLXPLAT_CPLD_LPC_REG_PSU_OFFSET,
772763
.mask = BIT(0),
773-
.hpdev.brdinfo = &mlxplat_mlxcpld_ng_psu[0],
774-
.hpdev.nr = MLXPLAT_CPLD_PSU_MSNXXXX_NR,
764+
.hpdev.nr = MLXPLAT_CPLD_NR_NONE,
775765
},
776766
{
777767
.label = "psu2",
778768
.reg = MLXPLAT_CPLD_LPC_REG_PSU_OFFSET,
779769
.mask = BIT(1),
780-
.hpdev.brdinfo = &mlxplat_mlxcpld_ng_psu[1],
781-
.hpdev.nr = MLXPLAT_CPLD_PSU_MSNXXXX_NR,
770+
.hpdev.nr = MLXPLAT_CPLD_NR_NONE,
782771
},
783772
};
784773

0 commit comments

Comments
 (0)