From 1d4c7a529302743c88ec4e795da3106f1db68998 Mon Sep 17 00:00:00 2001 From: Graeme Gregory Date: Fri, 25 Nov 2016 13:22:35 +0000 Subject: DISTROHACK: acpi/spcr: remove baud rate handling. 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 --- drivers/acpi/spcr.c | 23 ++--------------------- 1 file 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); -- cgit v1.2.1