mlx5en: limit reporting eeprom read failure due to unplugged module to verboseboot

Requested by:	gallatin
Sponsored by:	NVIDIA networking
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2024-07-27 00:09:58 +03:00
parent e23731db48
commit 2204a48290

View file

@ -3687,9 +3687,11 @@ out:
/* Check if module is present before doing an access */
module_status = mlx5_query_module_status(priv->mdev, module_num);
if (module_status != MLX5_MODULE_STATUS_PLUGGED_ENABLED) {
mlx5_en_err(ifp,
"Query module %d status: not plugged (%d), eeprom reading is not supported\n",
module_num, module_status);
if (bootverbose)
mlx5_en_err(ifp,
"Query module %d status: not plugged (%d), "
"eeprom reading is not supported\n",
module_num, module_status);
error = EINVAL;
goto err_i2c;
}