diff options
author | Ricardo Salveti <ricardo.salveti@linaro.org> | 2016-11-26 14:10:27 -0200 |
---|---|---|
committer | Ricardo Salveti <ricardo.salveti@linaro.org> | 2016-12-05 16:21:33 +0000 |
commit | e0916efc0e549f8bd38e5f0ec0801dbf643310bc (patch) | |
tree | 039c05b76ac3987894ad896f576a25af31834a38 | |
parent | 97241628086fd10703c3bf5e05c3467a7852b1cc (diff) |
d/p/linaro: add DISTROHACK-acpi-spcr-remove-baud-rate-handling.patch
Change-Id: I00b4009ffd13bea9a219da9856880e830fd1f53a
Signed-off-by: Ricardo Salveti <ricardo.salveti@linaro.org>
-rw-r--r-- | debian/patches/linaro/0001-DISTROHACK-acpi-spcr-remove-baud-rate-handling.patch | 58 | ||||
-rw-r--r-- | debian/patches/series | 1 |
2 files changed, 59 insertions, 0 deletions
diff --git a/debian/patches/linaro/0001-DISTROHACK-acpi-spcr-remove-baud-rate-handling.patch b/debian/patches/linaro/0001-DISTROHACK-acpi-spcr-remove-baud-rate-handling.patch new file mode 100644 index 000000000..d018fb34c --- /dev/null +++ b/debian/patches/linaro/0001-DISTROHACK-acpi-spcr-remove-baud-rate-handling.patch @@ -0,0 +1,58 @@ +From cdcda6fbc94865318a3cac8464cdc652fb97d27c Mon Sep 17 00:00:00 2001 +From: Graeme Gregory <graeme.gregory@linaro.org> +Date: Fri, 25 Nov 2016 13:22:35 +0000 +Subject: [PATCH] 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 <graeme.gregory@linaro.org> +--- + 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 6c6710b..1117758 100644 +--- a/drivers/acpi/spcr.c ++++ b/drivers/acpi/spcr.c +@@ -37,7 +37,6 @@ int __init parse_spcr(bool earlycon) + acpi_status status; + char *uart; + char *iotype; +- int baud_rate; + int err; + + if (acpi_disabled) +@@ -81,26 +80,8 @@ 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; +- } +- +- 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); + +-- +2.7.4 + diff --git a/debian/patches/series b/debian/patches/series index 6b0ebb730..0c5e1d744 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -133,3 +133,4 @@ bugfix/all/liblockdep-fix-defined-but-not-used-warning-for-init.patch # Linaro linaro/0001-arm64-prefer-ACPI-by-default.patch +linaro/0001-DISTROHACK-acpi-spcr-remove-baud-rate-handling.patch |