MLX4_PORT_TYPE_AUTO
if (mdev->caps.possible_type[info->port] == MLX4_PORT_TYPE_AUTO)
if (types[i] == MLX4_PORT_TYPE_AUTO)
if (mdev->caps.possible_type[i] == MLX4_PORT_TYPE_AUTO) {
port_type = MLX4_PORT_TYPE_AUTO;
mlx4_port_type = MLX4_PORT_TYPE_AUTO;
((dev->caps.supported_type[i] == MLX4_PORT_TYPE_AUTO) &&
dev->caps.possible_type[i] = MLX4_PORT_TYPE_AUTO;
dev->caps.possible_type[i] == MLX4_PORT_TYPE_AUTO) {