mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-03 07:04:53 +00:00
mlx5en: add diagnostic in one more case of failed eeprom read preparation
(cherry picked from commit c097967b9a
)
This commit is contained in:
parent
9a8a26aefb
commit
ddabe1d3c5
|
@ -3674,6 +3674,9 @@ mlx5e_ioctl(if_t ifp, u_long command, caddr_t data)
|
|||
/* 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);
|
||||
error = EINVAL;
|
||||
goto err_i2c;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue