[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20211006084916.2d924104@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
Date: Wed, 6 Oct 2021 08:49:16 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Andrew Lunn <andrew@...n.ch>
Cc: netdev@...r.kernel.org, gregkh@...uxfoundation.org,
rafael@...nel.org, saravanak@...gle.com, mw@...ihalf.com,
jeremy.linton@....com
Subject: Re: [RFC] fwnode: change the return type of mac address helpers
On Wed, 6 Oct 2021 16:49:36 +0200 Andrew Lunn wrote:
> > --- a/drivers/net/ethernet/apm/xgene-v2/main.c
> > +++ b/drivers/net/ethernet/apm/xgene-v2/main.c
> > @@ -36,7 +36,7 @@ static int xge_get_resources(struct xge_pdata *pdata)
> > return -ENOMEM;
> > }
> >
> > - if (!device_get_ethdev_addr(dev, ndev))
> > + if (device_get_ethdev_addr(dev, ndev))
> > eth_hw_addr_random(ndev);
>
> That is going to be interesting for out of tree drivers.
Indeed :( But I think it's worth it - I thought it's only device tree
that has the usual errno return code but inside eth.c there are also
helpers for platform and nvmem mac retrieval which also return errno.
Powered by blists - more mailing lists