[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190729.105731.2008954478313187190.davem@davemloft.net>
Date: Mon, 29 Jul 2019 10:57:31 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: martin.blumenstingl@...glemail.com
Cc: peppe.cavallaro@...com, alexandre.torgue@...com,
joabreu@...opsys.com, netdev@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux-amlogic@...ts.infradead.org
Subject: Re: [PATCH] net: stmmac: manage errors returned by
of_get_mac_address()
From: Martin Blumenstingl <martin.blumenstingl@...glemail.com>
Date: Sat, 27 Jul 2019 21:21:37 +0200
> Commit d01f449c008a ("of_net: add NVMEM support to of_get_mac_address")
> added support for reading the MAC address from an nvmem-cell. This
> required changing the logic to return an error pointer upon failure.
>
> If stmmac is loaded before the nvmem provider driver then
> of_get_mac_address() return an error pointer with -EPROBE_DEFER.
>
> Propagate this error so the stmmac driver will be probed again after the
> nvmem provider driver is loaded.
> Default to a random generated MAC address in case of any other error,
> instead of using the error pointer as MAC address.
>
> Fixes: d01f449c008a ("of_net: add NVMEM support to of_get_mac_address")
> Signed-off-by: Martin Blumenstingl <martin.blumenstingl@...glemail.com>
Applied, thanks.
Powered by blists - more mailing lists