netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ezra Buehler <ezra@easyb.ch>
To: netdev@vger.kernel.org
Cc: thomas.petazzoni@bootlin.com, Stefan Roese <sr@denx.de>,
	linux-arm-kernel@lists.infradead.org, u-boot@lists.denx.de
Subject: Linux mvneta driver unable to read MAC address from HW
Date: Sat, 10 Oct 2020 18:41:24 +0200	[thread overview]
Message-ID: <4E00AED7-28FD-4583-B319-FFF5C96CCE73@easyb.ch> (raw)

Hello,

sorry for bothering you, but I am kinda stuck here.

I am running Debian buster (Linux 4.19.146) on a Synology DS214+ NAS
(Marvell ARMADA XP). Unfortunately, I end up with random MAC addresses
for the two Ethernet interfaces after boot. (Also with Debian sid, Linux
5.4.0.)

Since commit 8cc3e439ab92 ("net: mvneta: read MAC address from hardware
when available") the mvneta Linux driver reads the MVNETA_MAC_ADDR_*
registers when no MAC address is provided by the DT. In my case, only
zeros are read, causing the driver to fall back to a random address. I
was able to verify that the registers are correctly written by the
bootloader by reading out the registers in the U-Boot prompt.

As a workaround, I now specify the MAC addresses in the DT. However, I
would prefer not to do that. Also, it would be nice to get to the bottom
of this.

Could it be, that for some reason, the clock of the MAC is removed
either by U-Boot or Linux during boot?

Any hints that could help me investigate this further would be highly
appreciated.

Cheers,
Ezra.


             reply	other threads:[~2020-10-10 22:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-10 16:41 Ezra Buehler [this message]
2020-10-13  6:35 ` Linux mvneta driver unable to read MAC address from HW Thomas Petazzoni
2020-10-13  8:20   ` Ezra Buehler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E00AED7-28FD-4583-B319-FFF5C96CCE73@easyb.ch \
    --to=ezra@easyb.ch \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=netdev@vger.kernel.org \
    --cc=sr@denx.de \
    --cc=thomas.petazzoni@bootlin.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).