[PATCH 4.14 19/34] net/mlx4_core: Fix reset flow when in command polling mode