Page MenuHomeFreeBSD

psm: Swap the unit member in the softc for a device_t.
ClosedPublic

Authored by jhb on Apr 20 2022, 8:15 PM.
Tags
None
Referenced Files
F140557124: D35006.diff
Thu, Dec 25, 5:56 AM
Unknown Object (File)
Wed, Dec 24, 5:27 PM
Unknown Object (File)
Wed, Dec 24, 6:59 AM
Unknown Object (File)
Fri, Dec 5, 11:02 AM
Unknown Object (File)
Nov 20 2025, 6:28 AM
Unknown Object (File)
Nov 12 2025, 11:04 PM
Unknown Object (File)
Nov 8 2025, 4:43 AM
Unknown Object (File)
Nov 3 2025, 6:28 AM
Subscribers
None

Details

Summary

This entails various changes to make this driver more "modern"
(new-bus vs pre-new-bus) using device_log() and device_printf() rather
than psm%d. It also fixes the device_busy/unbusy calls to use sc->dev
directly rather than looking the device_t up via the devclass and
unit.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 45300
Build 42188: arc lint + arc unit

Event Timeline

jhb requested review of this revision.Apr 20 2022, 8:15 PM
jhb created this revision.
imp added inline comments.
sys/dev/atkbdc/psm.c
1053

device_log() might not be a bad idea... But this is fine here.

This revision is now accepted and ready to land.Apr 20 2022, 9:24 PM
sys/dev/atkbdc/psm.c
1053

Oh, we have that now, yes. Ok, I'd rather use that.

This revision now requires review to proceed.Apr 21 2022, 4:34 PM
This revision is now accepted and ready to land.Apr 21 2022, 6:01 PM