Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+5 -1
+1
drivers/net/ethernet/microchip/lan865x/lan865x.c
··· 326 326 .ndo_start_xmit = lan865x_send_packet, 327 327 .ndo_set_rx_mode = lan865x_set_multicast_list, 328 328 .ndo_set_mac_address = lan865x_set_mac_address, 329 + .ndo_validate_addr = eth_validate_addr, 329 330 .ndo_eth_ioctl = phy_do_ioctl_running, 330 331 }; 331 332
+4 -1
net/ethernet/eth.c
··· 613 613 */ 614 614 int device_get_mac_address(struct device *dev, char *addr) 615 615 { 616 - return fwnode_get_mac_address(dev_fwnode(dev), addr); 616 + if (!fwnode_get_mac_address(dev_fwnode(dev), addr)) 617 + return 0; 618 + 619 + return nvmem_get_mac_address(dev, addr); 617 620 } 618 621 EXPORT_SYMBOL(device_get_mac_address); 619 622