Page MenuHomeFreeBSD

stand/usb: Update for devclass being removed from DRIVER_MODULE
ClosedPublic

Authored by jhb on Jan 10 2025, 3:22 AM.
Tags
None
Referenced Files
F153152659: D48409.id149114.diff
Sun, Apr 19, 12:14 PM
F153149238: D48409.id.diff
Sun, Apr 19, 11:51 AM
F153148525: D48409.id149030.diff
Sun, Apr 19, 11:47 AM
F153144976: D48409.id.diff
Sun, Apr 19, 11:21 AM
F153120356: D48409.id149030.diff
Sun, Apr 19, 7:30 AM
F153114116: D48409.id149114.diff
Sun, Apr 19, 6:23 AM
Unknown Object (File)
Thu, Apr 16, 11:11 PM
Unknown Object (File)
Sat, Apr 11, 7:50 PM
Subscribers

Details

Summary

The kshim code abused the devclass argument to DRIVER_MODULE in some
odd ways. Instead, refactor the devclass handling to more closely
mirror what new-bus does in the kernel by having a linked list of
devclasses looked up by name and associate devices with a devclass.

Devices are now only associated with a module while probing and
attaching.

Diff Detail

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

Event Timeline

jhb requested review of this revision.Jan 10 2025, 3:22 AM

Love the concept. Spot checked the impl. Structure is good, but didn't dive deeply in.

This revision is now accepted and ready to land.Jan 10 2025, 4:40 AM