[Linux-stm32] [PATCH v2] net: stmmac: move stmmac_check_ether_addr() to driver probe

David Miller davem at davemloft.net
Tue Apr 23 04:53:21 UTC 2019


From: Vinod Koul <vkoul at kernel.org>
Date: Mon, 22 Apr 2019 15:15:32 +0530

> stmmac_check_ether_addr() checks the MAC address and assigns one in
> driver open(). In many cases when we create slave netdevice, the dev
> addr is inherited from master but the master dev addr maybe NULL at
> that time, so move this call to driver probe so that address is
> always valid.
> 
> Signed-off-by: Xiaofei Shen <xiaofeis at codeaurora.org>
> Tested-by: Xiaofei Shen <xiaofeis at codeaurora.org>
> Signed-off-by: Sneh Shah <snehshah at codeaurora.org>
> Signed-off-by: Vinod Koul <vkoul at kernel.org>
> ---
> 
> Changes in v2:
>   As discussed in [1] we move the stmmac driver inherting the mac address
> from probe to open
> [1]: https://lore.kernel.org/netdev/20190222125654.12478-1-vkoul@kernel.org/

Applied and queued up for -stable.



More information about the Linux-stm32 mailing list