IB/mlx5: Return PORT_ERR in Active to Initializing tranisition
[firefly-linux-kernel-4.4.55.git] / drivers / infiniband / hw / mlx5 / main.c
index fd17443aeacde3259cab9b50f6b918f518990179..bfc940ff9c8a531368bae44fde0ed68f000ae787 100644 (file)
@@ -962,14 +962,11 @@ static void mlx5_ib_event(struct mlx5_core_dev *dev, void *context,
                break;
 
        case MLX5_DEV_EVENT_PORT_DOWN:
+       case MLX5_DEV_EVENT_PORT_INITIALIZED:
                ibev.event = IB_EVENT_PORT_ERR;
                port = (u8)param;
                break;
 
-       case MLX5_DEV_EVENT_PORT_INITIALIZED:
-               /* not used by ULPs */
-               return;
-
        case MLX5_DEV_EVENT_LID_CHANGE:
                ibev.event = IB_EVENT_LID_CHANGE;
                port = (u8)param;