mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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:
parent
e23731db48
commit
2204a48290
1 changed files with 5 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue