Linux mvneta driver unable to read MAC address from HW

Ezra Buehler ezra at easyb.ch
Tue Oct 13 04:20:26 EDT 2020


Hi Thomas,

On 13 Oct 2020, at 08:35, Thomas Petazzoni <thomas.petazzoni at bootlin.com> wrote:
> I suspect you have the mvneta driver as a module ? If this is the case,
> then indeed, the MAC address is lost because Linux turns of all unused
> clocks at the end of the boot. When the driver is built-in, there is a
> driver adding a reference to the clock before all unused clocks are
> disabled. When the driver is compiled as a module, this does not
> happen. So indeed, the correct solution here is to have U-Boot pass the
> MAC address in the Device Tree.

Yes, you are right, the driver is compiled as module. This explains
everything, thank you very much for the clarification.

Have a nice day!

Cheers,
Ezra.




More information about the linux-arm-kernel mailing list