Page MenuHomeFreeBSD

LinuxKPI: usb: factor out struct device initialization
Needs ReviewPublic

Authored by bz on Sun, Feb 1, 5:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Feb 18, 6:35 PM
Unknown Object (File)
Wed, Feb 18, 5:58 PM
Unknown Object (File)
Wed, Feb 18, 9:40 AM
Unknown Object (File)
Tue, Feb 17, 3:02 AM
Unknown Object (File)
Mon, Feb 16, 8:44 AM
Unknown Object (File)
Mon, Feb 9, 3:13 AM
Unknown Object (File)
Sat, Feb 7, 9:14 PM
Unknown Object (File)
Tue, Feb 3, 10:48 PM
Subscribers

Details

Reviewers
None
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