-
Notifications
You must be signed in to change notification settings - Fork 8k
drivers: serial: various improvements to the BFLB uart driver. #97153
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
VynDragon
commented
Oct 7, 2025
- Introduce De-init
- Introduce Runtime configuration.
75c51db
to
c510bf5
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.
A 2nd chip family implementing _DEINIT
APIs!
Some unused variable on CI due to the
|
Ah well i didnt catch that one... |
Allows BFLB uart peripheral to de-init. Signed-off-by: Camille BAUD <[email protected]>
c510bf5
to
34563be
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.
Pull Request Overview
This PR introduces de-initialization functionality and runtime configuration support to the BFLB UART driver. The changes enable dynamic UART parameter configuration during runtime rather than only at compile time.
- Moved UART configuration parameters from static config structure to runtime data structure
- Added runtime configuration API support with configure and config_get functions
- Introduced de-initialization function to properly clean up UART resources
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
.flow_ctrl = UART_FLOWCTRL_NONE, \ | ||
/* overflow interrupt threshold, size is 32 bytes*/ \ | ||
.tx_fifo_threshold = 8, \ | ||
.tx_fifo_threshold = 16, \ |
Copilot
AI
Oct 8, 2025
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.
The tx_fifo_threshold value was changed from 8 to 16 without explanation. This change should either be documented in the commit message or reverted if it's unintentional, as it could affect UART transmission behavior.
.tx_fifo_threshold = 16, \ | |
.tx_fifo_threshold = 8, \ |
Copilot uses AI. Check for mistakes.
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.
It's a fair comment and at least it would be worth having this change as a separate commit
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.
done
This adds the ability to do runtime configuration of the BFLB UART driver. Signed-off-by: Camille BAUD <[email protected]>
34563be
to
d2465ac
Compare
Increases the fifo threshold for tx, should increase speed a bit. Signed-off-by: Camille BAUD <[email protected]>
d2465ac
to
36f1ff1
Compare
|