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

Fix UART initialization and support early and cmdline specified serial consoles #304

Merged
merged 4 commits into from
Sep 8, 2023

Conversation

wipawel
Copy link
Contributor

@wipawel wipawel commented Sep 6, 2023

No description provided.

@wipawel wipawel added bugfix This fixes a bug Severity: high Very important bug - fix ASAP labels Sep 6, 2023
@wipawel wipawel requested a review from a team as a code owner September 6, 2023 13:24
@wipawel wipawel enabled auto-merge (rebase) September 6, 2023 13:24
Copy link
Contributor

@minipli-oss minipli-oss left a comment

Choose a reason for hiding this comment

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

Just some nits

drivers/serial.c Outdated Show resolved Hide resolved
drivers/serial.c Outdated Show resolved Hide resolved
drivers/serial.c Outdated Show resolved Hide resolved
Register serial console only when UART port really exists and is ready.
Otherwise, the serial writing functions trigger a BUG_ON.

Signed-off-by: Pawel Wieczorkiewicz <[email protected]>
Initialize early serial console with a default config: com1,115200,8,n,1.
This is useful to get multiboot and cmdline parsing output.
When cmdline has been parsed initialize all specified UART ports and
assign serial console to them. This may overwrite the early config for
UART com1.
Always assign configured UART devices to the global com_ports[] and do
not hard code COM identifiers to actual COM ports.

Signed-off-by: Pawel Wieczorkiewicz <[email protected]>
@wipawel wipawel merged commit 696493b into KernelTestFramework:mainline Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This fixes a bug Severity: high Very important bug - fix ASAP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants