Page MenuHomeFreeBSD

asmc: rename wol sysctl to auto_poweron
ClosedPublic

Authored by guest-seuros on Thu, Apr 30, 2:11 PM.
Tags
None
Referenced Files
F157095124: D56747.diff
Mon, May 18, 10:14 AM
F157095120: D56747.diff
Mon, May 18, 10:14 AM
F157094151: D56747.diff
Mon, May 18, 10:07 AM
Unknown Object (File)
Sat, May 16, 9:53 PM
Unknown Object (File)
Mon, May 11, 1:04 PM
Unknown Object (File)
Mon, May 11, 8:35 AM
Unknown Object (File)
Mon, May 11, 8:33 AM
Unknown Object (File)
Mon, May 11, 4:12 AM
Subscribers

Details

Summary

Older SMC firmware exposed AUPO as a Wake-on-LAN control. On updated
firmware, the key controls automatic power-on when AC power is restored
after a power loss; WoL is handled by the GBE controller instead.
Rename the sysctl to reflect the current semantics. No compatibility
alias is provided as the sysctl has not appeared in any release.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

guest-seuros held this revision as a draft.
This comment was removed by guest-seuros.
guest-seuros added reviewers: adrian, ziaee.

How do you handle the case of older firmware? Won't this driver still use this for wake on lan?

share/man/man4/asmc.4
2

Please do not remove line one, just remove the hyphen. This is for consistency with C comments and in accordance with our style guides.

How do you handle the case of older firmware? Won't this driver still use this for wake on lan?

Older firmware still works fine with this change.

I tested this on an older firmware (circa 2011–2012) and didn’t hit any regression. I cant re-test it now though; the machine updated its SMC/firmware and there is no downgrade path.

This change is really about correctness.
AUPO means Auto UP (Or something similar), not Wake-on-LAN. The current WOL naming that i introduced is misleading.

please fix the hyphen and then this'll be fine to land, thanks!

share/man/man4/asmc.4
3

I'm not sure this change warrants a new copyright in this case... It's just a small tweak to the overall page.

ziaee requested changes to this revision.Fri, May 1, 8:12 PM
This revision now requires changes to proceed.Fri, May 1, 8:12 PM
guest-seuros added inline comments.
share/man/man4/asmc.4
3

The copyright line was not added for this specific change,

I have been modifying this file over the past four months as part of broader apple SMC work.

Since this particular diff is a small rename, I agree it does not warrant adding a copyright, and have removed it.

This revision is now accepted and ready to land.Sun, May 3, 6:38 PM
This revision was automatically updated to reflect the committed changes.