]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ACPI SPCR: handle BaudRate=0
authorRebecca Cran <bcran@FreeBSD.org>
Thu, 25 Apr 2019 02:16:48 +0000 (02:16 +0000)
committerRebecca Cran <bcran@FreeBSD.org>
Thu, 25 Apr 2019 02:16:48 +0000 (02:16 +0000)
commit56a70105df148e611d90c1c7dbce516b9aa52825
treede8f49002be039f66b848dcf5a0f7cdbf6c3655f
parent0c0ffba5d64b6d3a2e0e874f6e11bded03375313
ACPI SPCR: handle BaudRate=0

From https://github.com/tianocore/edk2-platforms/commit/7d8dc6544c93a5f5a03c83316489ba8700946e9f

"The mcbin (and likely others) have a nonstandard uart clock. This means
that the earlycon programming will incorrectly set the baud rate if it is
specified. The way around this is to tell the kernel to continue using the
preprogrammed baud rate. This is done by setting the baud to 0."

Our drivers (uart_dev_ns8250) do respect zero, but SPCR would error. Let's
not error.

Submitted by: Greg V <greg@unrelenting.technology>
Reviewed by: mw, imp, bcran
Differential Revision: https://reviews.freebsd.org/D19914
sys/dev/uart/uart_cpu_arm64.c