Re: [Intel-wired-lan] [PATCH v6] i40e: Look up MAC address in Open Firmware or IDPROM

From: Sowmini Varadhan
Date: Thu Dec 03 2015 - 11:59:07 EST


On (12/03/15 16:53), Bowers, AndrewX wrote:

>
> I get an error -11 on driver init with this patch applied, I can
> revert it and everything works normally. Dmesg screenshot is attached,
> can supply complete dmesg log if needed.

Yes, that's the same thing that I'm running into as well.
Using this patch makes this work. But this adds some ugly
ifdef's, and other methods should be explored.

--- a/drivers/net/ethernet/intel/i40e/i40e_main.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c
@@ -9102,9 +9102,11 @@ struct i40e_vsi *i40e_vsi_setup(struct i40e_pf *pf, u8 ty
ret = i40e_config_netdev(vsi);
if (ret)
goto err_netdev;
+#if defined(CONFIG_SPARC) || defined(CONFIG_OF)
ret = i40e_macaddr_init(vsi, pf->hw.mac.addr);
if (ret)
goto err_netdev;
+#endif
ret = register_netdev(vsi->netdev);
if (ret)
goto err_netdev;



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/