Overall procedure is to find DTB node with comaptible string "usbVID,PID"
and try to obtain MAC address from mac-address and local-mac-address fields
Details
Details
Tested in RPi3B+, FreeBSD uses MAC address matching the one provided by the firmware
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 17826 Build 17599: arc lint + arc unit
Event Timeline
Comment Actions
- Added documentation
- Removed some stale comments
- Refactored MAC-stting part into muge_set_mac_addr function
Comment Actions
Some suggestions but overall I think this is fine. I can futz with it after commit otherwise.
sys/dev/usb/net/if_muge.c | ||
---|---|---|
1468 | extra 'r' in store | |
1509 | matching | |
1546–1547 | This comment is probably not correct (at least, not correct at this location) now. | |
1563–1564 | Given this is moved out into a function we could use early-return instead |