-
Notifications
You must be signed in to change notification settings - Fork 37
feat(host/hid): HID Host add suspend/resume events #182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
3394856 to
f1525db
Compare
0a327e0 to
fc3c43b
Compare
fc3c43b to
494766b
Compare
494766b to
618176b
Compare
034e930 to
2aad240
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the final PR Bugbot will review for you during this billing cycle
Your free Bugbot reviews will reset on November 20
Details
Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.
To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.
2aad240 to
cfb9e08
Compare
roma-jam
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One more question from my side for now:
a27f4e7 to
a31b56e
Compare
- usb_host lib supports global suspend and resume
- backward compatibility with older IDF releases
- HID Host target tests
a31b56e to
f3c0196
Compare
Description
This MR adds Suspend/Resume events for HID class driver as a follow-up for the Global/Suspend resume MR in esp-idf
Changes
Added Suspend and Resume HID Host interface events
As the global Suspend issued by the USB Host Halts and flushes all EPs of all connected devices. The HID Host driver must submit the in transfer upon Resuming the root port (similar to
hid_host_device_start()when a new device is connected)Related
Testing
Checklist
Before submitting a Pull Request, please ensure the following:
Note
Add global suspend/resume handling and events to HID Host, with state management updates and comprehensive tests.
HID_INTERFACE_STATE_SUSPENDEDandlast_stateto track suspend/resume.hid_host_suspend_interface(),hid_host_resume_interface(), plus device-level iterators to broadcast events per interface.USB_HOST_CLIENT_EVENT_DEV_SUSPENDED/DEV_RESUMEDand log others viaswitch.include/usb/hid_host.h):HID_HOST_SUSPEND_RESUME_API_SUPPORTED(gated byUSB_HOST_LIB_EVENT_FLAGS_AUTO_SUSPEND).HID_HOST_INTERFACE_EVENT_SUSPENDEDandHID_HOST_INTERFACE_EVENT_RESUMED.test_app):suspend_resume_basic,auto_suspend_timer,resume_by_transfer_submit,sudden_disconnect_suspended_device.USB_HOST_LIB_EVENT_FLAGS_AUTO_SUSPENDby suspending root port.CHANGELOG.mdunder[unreleased]with global suspend/resume support.Written by Cursor Bugbot for commit 2aad240. This will update automatically on new commits. Configure here.