mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-14 14:42:34 -04:00
Merge branch 'microchip-lan865x-minor-improvements'
Stefan Wahren says: ==================== microchip: lan865x: Minor improvements Recently I setup a custom i.MX93 board which contains a LAN8651 chip. These minor improvements were considered as helpful. The series has been tested with the mentioned i.MX93 board. ==================== Link: https://patch.msgid.link/20250912140332.35395-1-wahrenst@gmx.net Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
@@ -326,6 +326,7 @@ static const struct net_device_ops lan865x_netdev_ops = {
|
||||
.ndo_start_xmit = lan865x_send_packet,
|
||||
.ndo_set_rx_mode = lan865x_set_multicast_list,
|
||||
.ndo_set_mac_address = lan865x_set_mac_address,
|
||||
.ndo_validate_addr = eth_validate_addr,
|
||||
.ndo_eth_ioctl = phy_do_ioctl_running,
|
||||
};
|
||||
|
||||
|
||||
@@ -613,7 +613,10 @@ EXPORT_SYMBOL(fwnode_get_mac_address);
|
||||
*/
|
||||
int device_get_mac_address(struct device *dev, char *addr)
|
||||
{
|
||||
return fwnode_get_mac_address(dev_fwnode(dev), addr);
|
||||
if (!fwnode_get_mac_address(dev_fwnode(dev), addr))
|
||||
return 0;
|
||||
|
||||
return nvmem_get_mac_address(dev, addr);
|
||||
}
|
||||
EXPORT_SYMBOL(device_get_mac_address);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user