Skip to content

mcumgr: relocate uart transport #92359

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: main
Choose a base branch
from

Conversation

ycsin
Copy link
Member

@ycsin ycsin commented Jun 29, 2025

The uart_mcumgr.c implements the APIs used by the smp_uart.c but lives in the drivers/console folder which is kinda awkward, as the files in the drivers/console generally implements the stdout & printk hooks.

Relocate it into subsys/mgmt/mcumgr/transport/src/ alongside smp_uart.c instead.

TODO:

  • update migration guide and changelog for 4.3

The uart_mcumgr.c implements the APIs used by the smp_uart.c
but lives in the drivers/console folder which is kinda awkward,
as the files in the drivers/console generally implements the
stdout & printk hooks.

Relocate it into subsys/mgmt/mcumgr/transport/src/ alongside
smp_uart.c instead.

Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
@ycsin ycsin force-pushed the pr/reloc-uart_mcumgr branch from 7751f1c to 31ce009 Compare July 1, 2025 13:01
Copy link

sonarqubecloud bot commented Jul 1, 2025

@@ -10,16 +10,16 @@
*/

/* Define required for uart_mcumgr.h functionality reuse */
#define CONFIG_UART_MCUMGR_RX_BUF_SIZE CONFIG_MCUMGR_TRANSPORT_DUMMY_RX_BUF_SIZE
#define CONFIG_MCUMGR_TRANSPORT_UART_RX_BUF_SIZE CONFIG_MCUMGR_TRANSPORT_DUMMY_RX_BUF_SIZE
Copy link
Member Author

Choose a reason for hiding this comment

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

RFC: I'm also inclined to remove the uart/serial dependencies so that smp_dummy is completely standalone, at the expense of some code duplication, any idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant