Skip to content
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

usb: device_next: align CDC ACM UART with Interrupt-driven UART API #75439

Merged

Commits on Oct 2, 2024

  1. doc: usb: move "Built-in functions" down and increase the heading

    Move "Built-in functions" section down and increase the heading.
    
    Signed-off-by: Johann Fischer <[email protected]>
    jfischer-no committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    c55706a View commit details
    Browse the repository at this point in the history
  2. usb: device_next: align CDC ACM UART with Interrupt-driven UART API

    Align CDC ACM UART with Interrupt-driven UART API behavior description.
    Use the same flags in uart_irq_rx_ready(), uart_irq_tx_ready(), and
    uart_irq_is_pending(), which are updated after each uart_irq_update()
    call. Allow TX FIFO to be filled if there is space.
    
    Signed-off-by: Johann Fischer <[email protected]>
    jfischer-no committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    b88eec7 View commit details
    Browse the repository at this point in the history
  3. doc: usb: describe CDC ACM virtual UART IRQ API behavior

    In general, it mirrors what is described in Interrupt-driven API
    documentation, but here a little more explicitly and with a simplified
    example, so that we can finally chisel it into the stone.
    
    Signed-off-by: Johann Fischer <[email protected]>
    jfischer-no committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    ccd92e7 View commit details
    Browse the repository at this point in the history
  4. usb: device_next: align CDC ACM UART poll_out with legacy implementation

    Apply changes in commit c152e09
    ("usb: device: cdc_acm: block in uart_poll_out() routine")
    to the new CDC ACM UART poll_out implementation.
    
    Signed-off-by: Johann Fischer <[email protected]>
    jfischer-no committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    f5e56e4 View commit details
    Browse the repository at this point in the history
  5. usb: device_next: allow fifo_fill and poll_out be used simultaneously

    As it is still accepted practice, allow fifo_fill and poll_out to be
    used simultaneously. The lock around fifo_fill was already in place.
    
    Signed-off-by: Johann Fischer <[email protected]>
    jfischer-no committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    6e80ee2 View commit details
    Browse the repository at this point in the history
  6. doc: usb: add note about CDC ACM virtual UART polling API behavior

    Add note about CDC ACM virtual UART polling API behavior.
    
    Signed-off-by: Johann Fischer <[email protected]>
    jfischer-no committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    98ba81c View commit details
    Browse the repository at this point in the history
  7. usb: device_next: limit CDC ACM OUT transfer size to the current MPS

    When the controller is connected to a full speed bus, regardless of
    whether the controller supports high speed or not, the transfer size for
    the bulk OUT endpoint should be equal to the MPS in the current
    configuration.
    
    Signed-off-by: Johann Fischer <[email protected]>
    jfischer-no committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    3304357 View commit details
    Browse the repository at this point in the history
  8. usb: device_next: use delayable work for TX FIFO in CDC ACM

    Use delayable work to reduce CPU load when there is no transfer flow in
    the host direction. This also improves the performance of poll out, as
    introduced in commit commit fed6bde
    ("usb: device: cdc_acm: send more than 1 byte in poll out")
    for the legacy CDC ACM implementation.
    
    Signed-off-by: Johann Fischer <[email protected]>
    jfischer-no committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    87d3827 View commit details
    Browse the repository at this point in the history