Skip to content

feat(usb_host): MSC Host add suspend/resume events #181

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

peter-marcisovsky
Copy link
Collaborator

@peter-marcisovsky peter-marcisovsky commented Jun 4, 2025

Description

This MR adds Suspend/Resume events for MSC class driver as a follow-up for the Global/Suspend resume MR in esp-idf.

Added a backward compatibility for older IDF releases, where the suspend/resume will not be backported, by:

// For backward compatibility with IDF versions which do not have suspend/resume api
#ifdef USB_HOST_LIB_EVENT_FLAGS_AUTO_SUSPEND
#define MSC_HOST_SUSPEND_RESUME_API_SUPPORTED
#endif

Related

  • Suspend/Resume support for MSC Class driver IDF-13343

Testing

  • Added tests, which verify the class driver functionality with root port Suspend/Resume events

Checklist

Before submitting a Pull Request, please ensure the following:

  • 🚨 This PR does not introduce breaking changes.
  • All CI checks (GH Actions) pass.
  • Documentation is updated as needed.
  • Tests are updated or added as necessary.
  • Code is well-commented, especially in complex areas.
  • Git history is clean — commits are squashed to the minimum necessary.

@peter-marcisovsky peter-marcisovsky self-assigned this Jun 4, 2025
@peter-marcisovsky peter-marcisovsky added the Status: In Progress Issue is being worked on label Jun 4, 2025
@peter-marcisovsky peter-marcisovsky force-pushed the feat/usb_host_msc_suspend_resume_evts branch 3 times, most recently from 45e682b to 2227f73 Compare July 3, 2025 08:00
    - usb_host lib supports global suspend and resume
    - backward compatibility with older IDF releases
    - MSC Host target tests
@peter-marcisovsky peter-marcisovsky force-pushed the feat/usb_host_msc_suspend_resume_evts branch from 2227f73 to 3bb97fc Compare July 14, 2025 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: In Progress Issue is being worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant