if (port_type[i-1] & dev_cap->supported_port_types[i])
dev->caps.port_type[i] = port_type[i-1];
else {
- MLX4_PRINT_EV(TRACE_LEVEL_ERROR ,MLX4_DBG_DRV ,
+ MLX4_PRINT_EV(TRACE_LEVEL_WARNING,MLX4_DBG_DRV ,
("Requested port type %#x for port %d is "
- "not supported by HW. Supported %#x\n",
+ "not supported by HW. Supported %#x. We'll working to the supported one! \n",
port_type[i-1], i, (int)dev_cap->supported_port_types[i]));
- MLX4_PRINT_EV(TRACE_LEVEL_ERROR ,MLX4_DBG_DRV ,
+ MLX4_PRINT_EV(TRACE_LEVEL_WARNING ,MLX4_DBG_DRV ,
("Ven %x Dev %d Fw %d.%d.%d, IsBurnDevice %s\n",
(unsigned)dev->pdev->ven_id, (unsigned)dev->pdev->dev_id,
(int) (dev->caps.fw_ver >> 32),
mlx4_is_livefish(dev) ? "Y" : "N"
));
- return -ENODEV;
+ dev->caps.port_type[i] = dev_cap->supported_port_types[i];
}
if (dev->caps.log_num_macs > dev_cap->log_max_macs[i]) {
dev->caps.log_num_macs = dev_cap->log_max_macs[i];