Page MenuHomeFreeBSD

LinuxKPI: usb: factor out struct device initialization
AcceptedPublic

Authored by bz on Feb 1 2026, 5:12 PM.
Referenced Files
Unknown Object (File)
Thu, Aug 27, 5:23 AM
Unknown Object (File)
Wed, Aug 26, 6:31 PM
Unknown Object (File)
Tue, Aug 25, 7:09 AM
Unknown Object (File)
Mon, Aug 24, 9:53 AM
Unknown Object (File)
Sat, Aug 22, 11:31 PM
Unknown Object (File)
Tue, Aug 18, 6:52 PM
Unknown Object (File)
Wed, Aug 12, 5:38 PM
Unknown Object (File)
Wed, Aug 12, 1:46 PM
Subscribers

Details

Reviewers
emaste
dumbbell
Group Reviewers
USB
linuxkpi
Summary

We never go through the device_create*() path in LinuxKPI which would
initialize some of the struct device information.

Similar to the lkpifill_pci_dev() function (which also does a lot of
pdev initialization) start a lkpi_usb_fill_dev() version which sets
the appropriate fields. Once SDIO is done I should revisit this and
see if it can be a common function between all bus attachments.

The main reason for this is to initialize der devres list and lock.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 70319
Build 67202: arc lint + arc unit