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
Unknown Object (File)
Sun, Jan 26, 4:23 AM
Unknown Object (File)
Fri, Jan 24, 7:25 AM
Unknown Object (File)
Jan 3 2025, 11:29 AM
Unknown Object (File)
Dec 13 2024, 10:38 PM
Unknown Object (File)
Nov 1 2024, 1:16 AM
Unknown Object (File)
Oct 31 2024, 10:24 AM
Unknown Object (File)
Oct 26 2024, 4:47 PM
Unknown Object (File)
Oct 26 2024, 4:47 PM
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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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