@@ -111,7 +111,7 @@ mlxsw_env_validate_cable_ident(struct mlxsw_core *core, u8 slot_index, int id,
111
111
if (err )
112
112
return err ;
113
113
114
- mlxsw_reg_mcia_pack (mcia_pl , slot_index , id , 0 ,
114
+ mlxsw_reg_mcia_pack (mcia_pl , slot_index , id ,
115
115
MLXSW_REG_MCIA_PAGE0_LO_OFF , 0 , 1 ,
116
116
MLXSW_REG_MCIA_I2C_ADDR_LOW );
117
117
err = mlxsw_reg_query (core , MLXSW_REG (mcia ), mcia_pl );
@@ -188,7 +188,7 @@ mlxsw_env_query_module_eeprom(struct mlxsw_core *mlxsw_core, u8 slot_index,
188
188
}
189
189
}
190
190
191
- mlxsw_reg_mcia_pack (mcia_pl , slot_index , module , 0 , page , offset , size ,
191
+ mlxsw_reg_mcia_pack (mcia_pl , slot_index , module , page , offset , size ,
192
192
i2c_addr );
193
193
194
194
err = mlxsw_reg_query (mlxsw_core , MLXSW_REG (mcia ), mcia_pl );
@@ -266,12 +266,12 @@ mlxsw_env_module_temp_thresholds_get(struct mlxsw_core *core, u8 slot_index,
266
266
page = MLXSW_REG_MCIA_TH_PAGE_CMIS_NUM ;
267
267
else
268
268
page = MLXSW_REG_MCIA_TH_PAGE_NUM ;
269
- mlxsw_reg_mcia_pack (mcia_pl , slot_index , module , 0 , page ,
269
+ mlxsw_reg_mcia_pack (mcia_pl , slot_index , module , page ,
270
270
MLXSW_REG_MCIA_TH_PAGE_OFF + off ,
271
271
MLXSW_REG_MCIA_TH_ITEM_SIZE ,
272
272
MLXSW_REG_MCIA_I2C_ADDR_LOW );
273
273
} else {
274
- mlxsw_reg_mcia_pack (mcia_pl , slot_index , module , 0 ,
274
+ mlxsw_reg_mcia_pack (mcia_pl , slot_index , module ,
275
275
MLXSW_REG_MCIA_PAGE0_LO ,
276
276
off , MLXSW_REG_MCIA_TH_ITEM_SIZE ,
277
277
MLXSW_REG_MCIA_I2C_ADDR_HIGH );
@@ -491,7 +491,7 @@ mlxsw_env_get_module_eeprom_by_page(struct mlxsw_core *mlxsw_core,
491
491
size = min_t (u8 , page -> length - bytes_read ,
492
492
MLXSW_REG_MCIA_EEPROM_SIZE );
493
493
494
- mlxsw_reg_mcia_pack (mcia_pl , slot_index , module , 0 , page -> page ,
494
+ mlxsw_reg_mcia_pack (mcia_pl , slot_index , module , page -> page ,
495
495
device_addr + bytes_read , size ,
496
496
page -> i2c_address );
497
497
mlxsw_reg_mcia_bank_number_set (mcia_pl , page -> bank );
0 commit comments