[PATCH] am33xx: cpsw: default to ethernet hwaddr from efuse if not defined in dt
michal.bachraty at gmail.com
Fri Jan 18 03:23:14 EST 2013
On Thu, Jan 17, 2013 at 11:19 PM, Peter Korsgaard <jacmet at sunsite.dk> wrote:
> >>>>> "Tony" == Tony Lindgren <tony at atomide.com> writes:
> >> The way I've handled it is similar to how it is done on atleast one
> >> other arm subarchicture, see
> >> arch/arm/mach-mxs/mach-mxs.c::update_fec_mac_prop()
> Tony> Cool this seems like the cleanest way to deal with it so far. Can
> Tony> you please resend with also linux-net and DT list Cc:d too?
> Tony> Also the arch_initcall should be omap_arch_initcall in linux next
> Tony> for consistency if we ever have SoC specific sections for those.
> Sure, resent with the initcall change and netdev/devicetree-discuss added.
> Bye, Peter Korsgaard
I added DT option mac-address-source because there is still possiblility to
have mac address set by the u-boot in the future. Beaglebone have special
eeprom on board, were you can have stored user MAC and u-boot can read
data. Maybe some users will want this feature. Also in cpsw dt binding
documentation, there is mention /* Filled in by U-Boot */. For that
code I proposed can easily deal with any driver exteds.
Reading CPU mac address registers with (my approach) or without (your
approach) DT should be more discussed. Also your way seems to be fine.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the linux-arm-kernel