From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Tue, 7 Jul 2020 23:04:25 -0400 Subject: [PATCH 3/7] net: smc911x: Properly handle EEPROM MAC address In-Reply-To: <20200611110321.9574-4-andre.przywara@arm.com> References: <20200611110321.9574-1-andre.przywara@arm.com> <20200611110321.9574-4-andre.przywara@arm.com> Message-ID: <20200708030425.GB1306@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Jun 11, 2020 at 12:03:17PM +0100, Andre Przywara wrote: > When compiled as a DM_ETH driver, the scm911x driver was reading the MAC > address from the optional EEPROM storage, but failed to copy this to the > platdata struct. Since it was also missing a definition of the > read_rom_hwaddr() function, the generic Ethernet code was dismissing > this MAC address, falling back to a random address or denying to start > at all. > > Add an implementation of .read_rom_hwaddr, and refactor the function > reading the ROM address to be called by all interested parties. > > This fixes MAC address issues when using the driver in DM_ETH "mode". > > Signed-off-by: Andre Przywara > Reviewed-By: Ramon Fried > Reviewed-by: Linus Walleij Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: