Am 2021-04-27 01:44, schrieb Benjamin Herrenschmidt:
On Mon, 2021-04-26 at 12:54 +0200, Michael Walle wrote:
(2) What do you think of eth_get_mac_address(ndev). That is, the
Not sure what you mean, eth_platform_get_mac_address() takes the
address as an argument. I think what you want is a consolidated
nvmem_get_mac_address + eth_platform_get_mac_address that takes a
device, which would have no requirement of the bus_type at all.
Sure. What I meant was the following:
eth_get_mac_address(struct net_device *ndev)
vs.
eth_get_mac_address(struct device *dev, u8 *mac_buf)
The first would assume the destination is ndev->dev_addr (which
is true for most of the calls, but not all).
-michael