Page MenuHomeFreeBSD

usb_quirk: implement bad remote wakeup and add ASM1074 SS
Needs ReviewPublic

Authored by mchoo on Jul 2 2026, 12:08 AM.
Tags
None
Referenced Files
F175750262: D58004.id181205.diff
Tue, Oct 13, 12:53 AM
F175750261: D58004.id189663.diff
Tue, Oct 13, 12:53 AM
F175746145: D58004.id189664.diff
Tue, Oct 13, 12:03 AM
Unknown Object (File)
Mon, Oct 12, 7:47 AM
Unknown Object (File)
Mon, Oct 12, 7:46 AM
Unknown Object (File)
Tue, Oct 6, 4:23 PM
Unknown Object (File)
Sun, Oct 4, 4:08 AM
Unknown Object (File)
Sun, Oct 4, 3:50 AM

Details

Reviewers
None
Group Reviewers
USB
Summary

Some devices (e.g. ASM1074) reports remote wakeup working, but the
functionality is not implemented on the controller. As a result,
they spam dmesg with {resume,suspend}_peer error message.

PR: 292613

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
No Test Coverage
Build Status
Buildable 78101
Build 74984: arc lint + arc unit

Event Timeline

mchoo requested review of this revision.Jul 2 2026, 12:08 AM
sys/dev/usb/usb_device.h
97–99

It's my first time to usb code, and I'm not sure how to implement this using existing remote_wakeup as usb_dev_{resume,suspend}_peer() don't seem to use it.

sys/dev/usb/usb_device.h
97–99

It's my first time to usb code, and I'm not sure how to implement this using existing remote_wakeup as usb_dev_{resume,suspend}_peer() don't seem to use it.

I think we can test the quirk in tr_handle_clear_wakeup branch of usb_handle_request to skip calling usb_handle_remote_wakeup.

bz added inline comments.
sys/dev/usb/usbdevs
1290

Indentation looks strange

  • Fix indent, conditional, and typo
  • Add ASM2 vendor
mchoo marked an inline comment as done.
mchoo added inline comments.
sys/dev/usb/usb_device.h
97–99

The current approach is correct.