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

drivers: console: uart_mux: fix incorrect usage of configuration API #68649

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

gmarull
Copy link
Member

@gmarull gmarull commented Feb 6, 2024

First, the API ops are available only if
CONFIG_UART_USE_RUNTIME_CONFIGURE=y, but the driver was not guarding the code. Also, according to the API specs, these functions are optional, and the interface already returns -ENOSYS if they are not implemented. To solve both problems, just drop the dummy implementation.

First, the API ops are available only if
CONFIG_UART_USE_RUNTIME_CONFIGURE=y, but the driver was not guarding the
code. Also, according to the API specs, these functions are optional,
and the interface already returns -ENOSYS if they are not implemented.
To solve both problems, just drop the dummy implementation.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
@gmarull gmarull added bug The issue is a bug, or the PR is fixing a bug Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc. labels Feb 6, 2024
@gmarull gmarull added this to the v3.6.0 milestone Feb 6, 2024
@gmarull gmarull requested review from anangl and rlubos February 6, 2024 14:11
@henrikbrixandersen henrikbrixandersen merged commit b548a73 into zephyrproject-rtos:main Feb 6, 2024
24 checks passed
@gmarull gmarull deleted the uart-mux-bug branch June 5, 2024 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Console bug The issue is a bug, or the PR is fixing a bug Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants