You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WOW! The mac-address exists in DT, it seems we can drop the 1bc5568.
But can you rename the mac-address to local-mac-address? The mac-address is better use for user-defined whereas local-mac-address - vendor-defined.
The of_get_mac_address() function tries "mac-address" first, then "local-mac-address", then "address", so using "mac-address" is actually a performance optimisation.
But seriously, can you think of a situation where defining "local-mac-address" instead is of some practical benefit?
local-mac-address: array of 6 bytes, specifies the MAC address that was
assigned to the network device;
mac-address: array of 6 bytes, specifies the MAC address that was last used by
the boot program; should be used in cases where the MAC address assigned to
the device by the boot program is different from the "local-mac-address"
property;
I think a one 'if' doesn't significantly degrade performance but the user may be able to change the mac address via DT.
I don't see how it is particularly useful retaining the original MAC address (except perhaps for information), but I agree that our usage doesn't really match the spec.
Create a new issue for tracking purposes (one problem per issue, please) and I'll change it (assuming there are no problems).
Activity
pelwell commentedon Oct 10, 2016
Sure - I've dropped a patch in the pipe.
firmware: ISP tuner: Lower rate at fast fps
firmware: ISP tuner: Lower rate at fast fps
popcornmix commentedon Oct 11, 2016
This is in latest rpi-update firmware.
notro commentedon Oct 11, 2016
Thanks, that worked just fine.
kukabu commentedon Oct 12, 2016
@popcornmix what about implement local-mac-address in DT? We can use the c489565 and drop the 1bc5568
kukabu commentedon Oct 12, 2016
WOW! The mac-address exists in DT, it seems we can drop the 1bc5568.
But can you rename the mac-address to local-mac-address? The mac-address is better use for user-defined whereas local-mac-address - vendor-defined.
pelwell commentedon Oct 12, 2016
The of_get_mac_address() function tries "mac-address" first, then "local-mac-address", then "address", so using "mac-address" is actually a performance optimisation.
But seriously, can you think of a situation where defining "local-mac-address" instead is of some practical benefit?
kukabu commentedon Oct 12, 2016
doc says:
assigned to the network device;
the boot program; should be used in cases where the MAC address assigned to
the device by the boot program is different from the "local-mac-address"
property;
I think a one 'if' doesn't significantly degrade performance but the user may be able to change the mac address via DT.
pelwell commentedon Oct 12, 2016
I don't see how it is particularly useful retaining the original MAC address (except perhaps for information), but I agree that our usage doesn't really match the spec.
Create a new issue for tracking purposes (one problem per issue, please) and I'll change it (assuming there are no problems).
firmware: ISP tuner: Lower rate at fast fps
verup and fixes:
firmware: ISP tuner: Lower rate at fast fps