]> Gentwo Git Trees - linux/.git/commit
smsc911x: add second read of EEPROM mac when possible corruption seen
authorColin Foster <colin.foster@in-advantage.com>
Wed, 3 Sep 2025 13:26:10 +0000 (08:26 -0500)
committerJakub Kicinski <kuba@kernel.org>
Fri, 5 Sep 2025 02:09:44 +0000 (19:09 -0700)
commit69777753a8919b0b8313c856e707e1d1fe5ced85
treec59c18ea08d42c5e7bff2ef0fb088fad267c4396
parent3132f0e8ef8982c9f20941b795757c844590eb62
smsc911x: add second read of EEPROM mac when possible corruption seen

When the EEPROM MAC is read by way of ADDRH, it can return all 0s the
first time. Subsequent reads succeed.

This is fully reproduceable on the Phytec PCM049 SOM.

Re-read the ADDRH when this behaviour is observed, in an attempt to
correctly apply the EEPROM MAC address.

Signed-off-by: Colin Foster <colin.foster@in-advantage.com>
Link: https://patch.msgid.link/20250903132610.966787-1-colin.foster@in-advantage.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/smsc/smsc911x.c