aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraeme Gregory <graeme.gregory@linaro.org>2016-11-25 13:22:35 +0000
committerGraeme Gregory <graeme.gregory@linaro.org>2017-06-06 12:45:08 +0100
commit1d4c7a529302743c88ec4e795da3106f1db68998 (patch)
treefbc04be461413643a90cf7f42b6ef6e4c21e2a66
parent37edf0f0978a06e825a1ef449183adf79d12deca (diff)
DISTROHACK: acpi/spcr: remove baud rate handling.rpk-noupstream
This breaks arm64 boards with 8250 IP blocks with non standard clocks. Supplying the baud rate makes the driver change to that baud rate but it bases its calculations off the wrong clock value. Signed-off-by: Graeme Gregory <graeme.gregory@linaro.org>
-rw-r--r--drivers/acpi/spcr.c23
1 files changed, 2 insertions, 21 deletions
diff --git a/drivers/acpi/spcr.c b/drivers/acpi/spcr.c
index 3afa8c1fa127..e774a54a6bac 100644
--- a/drivers/acpi/spcr.c
+++ b/drivers/acpi/spcr.c
@@ -56,7 +56,6 @@ int __init parse_spcr(bool earlycon)
acpi_status status;
char *uart;
char *iotype;
- int baud_rate;
int err;
if (acpi_disabled)
@@ -95,29 +94,11 @@ int __init parse_spcr(bool earlycon)
goto done;
}
- switch (table->baud_rate) {
- case 3:
- baud_rate = 9600;
- break;
- case 4:
- baud_rate = 19200;
- break;
- case 6:
- baud_rate = 57600;
- break;
- case 7:
- baud_rate = 115200;
- break;
- default:
- err = -ENOENT;
- goto done;
- }
-
if (qdf2400_erratum_44_present(&table->header))
uart = "qdf2400_e44";
- snprintf(opts, sizeof(opts), "%s,%s,0x%llx,%d", uart, iotype,
- table->serial_port.address, baud_rate);
+ snprintf(opts, sizeof(opts), "%s,%s,0x%llx", uart, iotype,
+ table->serial_port.address);
pr_info("console: %s\n", opts);