Skip to content

Conversation

rerickson1
Copy link
Member

@rerickson1 rerickson1 commented Oct 7, 2025

If there are still bytes in the RX buffer, trigger another MODEM_PIPE_EVENT_RECEIVE_READY event.

The async backends do this, this brings the ISR backend inline to behave like the others.

fixes: #97131

@rerickson1 rerickson1 requested a review from Copilot October 7, 2025 15:43
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes an issue where the modem backend UART ISR driver would fail to notify when additional RX bytes remained in the buffer after a receive operation. The fix ensures that a MODEM_PIPE_EVENT_RECEIVE_READY event is triggered when there are still unread bytes available.

  • Adds notifications when RX buffer still contains data after reading
  • Improves code formatting by splitting a long function call across multiple lines

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

If there are still bytes in the RX buffer, trigger another
MODEM_PIPE_EVENT_RECEIVE_READY event.

Signed-off-by: Ryan Erickson <[email protected]>
@rerickson1 rerickson1 force-pushed the PR/up_modem_backend_isr branch from f5ed9f9 to 1f91de7 Compare October 7, 2025 15:50
@rerickson1 rerickson1 changed the title subsys: modem: backends: isr: notify remaining RX bytes modem: backends: isr: notify remaining RX bytes Oct 7, 2025
Copy link

sonarqubecloud bot commented Oct 7, 2025

@tomi-font tomi-font removed their request for review October 8, 2025 11:05
@rerickson1 rerickson1 added bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug labels Oct 8, 2025
@cfriedt cfriedt merged commit 0ab3085 into zephyrproject-rtos:main Oct 9, 2025
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Modem bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

subsys: modem: backends: isr: No RX ready notification if there are still bytes available
6 participants