dwc2_port_resume(9)
β¨ dwc2_port_resume β a kernel API manual moment β¨
okay so bestie, this is a page from the Kernel API Manual (the dwc2_port_resume(9) one, iykyk) and it's lowkey a tiny little function with a very specific job π
πΈ NAME πΈ
dwc2_port_resume β Exit controller from suspend mode for host.
like, it wakes the host side back up out of suspend. that's the whole vibe. periodt π«Ά
π SYNOPSIS π
int dwc2_port_resume (struct dwc2_hsotg *hsotg );
that's it. one argument, one return value. simple queen behavior β¨
π¦ ARGUMENTS π¦
hsotgβ Programming view of the DWC_otg controller π
(yeah, that's the literal description and honestly? it's giving "you already know what this is" energy. it's the controller's programming view, bestie. hand it over and let it cook.)
π RETURN π
not zero if it failed to exit suspend mode for host π β so non-zero = things did not slay. 0 = success, we're so back π
β DESCRIPTION β
This function is for exiting Host mode suspend. that's its whole main character moment π«
β οΈ Must NOT be called with interrupt disabled or spinlock held. β οΈ
fr fr, do not do that. that's a hard no. like, the way that this is a big deal β interrupting with interrupts off or a spinlock in your hand is not the move, bestie. respect the caveat π
π SEE ALSO π
Kernel file ./drivers/usb/dwc2/hcd.c β and all these sibling functions, because the dwc2 family is large and we love an interconnected ecosystem π
dwc2_enable_common_interrupts(9)dwc2_enable_host_interrupts(9)dwc2_disable_host_interrupts(9)dwc2_calc_frame_interval(9)dwc2_read_packet(9)dwc2_dump_channel_info(9)dwc2_hc_init(9)dwc2_hc_halt(9)dwc2_hc_cleanup(9)dwc2_hc_set_even_odd_frame(9)dwc2_hc_write_packet(9)dwc2_hc_do_ping(9)dwc2_hc_start_transfer(9)dwc2_hc_start_transfer_ddma(9)dwc2_hc_continue_transfer(9)dwc2_hcd_start(9)dwc2_hcd_connect(9)dwc2_hcd_disconnect(9)dwc2_hcd_rem_wakeup(9)dwc2_hcd_stop(9)dwc2_core_init(9)dwc2_core_host_init(9)dwc2_assign_and_init_hc(9)dwc2_hcd_select_transactions(9)dwc2_queue_transaction(9)dwc2_hcd_queue_transactions(9)dwc2_port_suspend(9)dwc2_host_get_tt_info(9)dwc2_host_put_tt_info(9)dwc2_backup_host_registers(9)dwc2_restore_host_registers(9)dwc2_host_enter_hibernation(9)dwc2_host_enter_partial_power_down(9)dwc2_host_enter_clock_gating(9)dwc2_host_exit_clock_gating(9)
π§ and that's the whole page! the ./drivers/usb/dwc2 source and the October 2026 date are the little footer crumbs at the bottom of the original, so consider them officially shouted out here at the end instead. mwah π πΈ π¦ π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms