Home Home > GIT Browse > SLE15-AZURE
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-02-14 11:33:46 +0100
committerTakashi Iwai <tiwai@suse.de>2019-02-14 11:33:49 +0100
commit3501ab2c47de969c3782dbb2b1a98591eb8e4cfc (patch)
treebb3d3ac11b1ebe4bfc54365138f1b203455c529a
parentd29416c07aa2b5fdabb8d5e0ce23480a80920a96 (diff)
earlycon: Remove hardcoded port->uartclk initialization in
of_setup_earlycon (bsc#1051510).
-rw-r--r--patches.fixes/earlycon-Remove-hardcoded-port-uartclk-initializatio.patch35
-rw-r--r--series.conf1
2 files changed, 36 insertions, 0 deletions
diff --git a/patches.fixes/earlycon-Remove-hardcoded-port-uartclk-initializatio.patch b/patches.fixes/earlycon-Remove-hardcoded-port-uartclk-initializatio.patch
new file mode 100644
index 0000000000..8c40d9a09b
--- /dev/null
+++ b/patches.fixes/earlycon-Remove-hardcoded-port-uartclk-initializatio.patch
@@ -0,0 +1,35 @@
+From 182ead3e418a20328b73152b8e81fc8b4cac3b0b Mon Sep 17 00:00:00 2001
+From: Michal Simek <michal.simek@xilinx.com>
+Date: Wed, 25 Apr 2018 15:48:42 +0200
+Subject: [PATCH] earlycon: Remove hardcoded port->uartclk initialization in of_setup_earlycon
+Git-commit: 182ead3e418a20328b73152b8e81fc8b4cac3b0b
+Patch-mainline: v4.18-rc1
+References: bsc#1051510
+
+There is no reason to initialize uartclk to BASE_BAUD * 16 for DT based
+systems.
+
+Signed-off-by: Michal Simek <michal.simek@xilinx.com>
+Tested-by: Matt Redfearn <matt.redfearn@mips.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+Acked-by: Takashi Iwai <tiwai@suse.de>
+
+---
+ drivers/tty/serial/earlycon.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/drivers/tty/serial/earlycon.c b/drivers/tty/serial/earlycon.c
+index 149d0d0da65e..c14873b67803 100644
+--- a/drivers/tty/serial/earlycon.c
++++ b/drivers/tty/serial/earlycon.c
+@@ -246,7 +246,6 @@ int __init of_setup_earlycon(const struct earlycon_id *match,
+ return -ENXIO;
+ }
+ port->mapbase = addr;
+- port->uartclk = BASE_BAUD * 16;
+
+ val = of_get_flat_dt_prop(node, "reg-offset", NULL);
+ if (val)
+--
+2.16.4
+
diff --git a/series.conf b/series.conf
index 92b464786a..6cb6eefdb7 100644
--- a/series.conf
+++ b/series.conf
@@ -16313,6 +16313,7 @@
patches.fixes/earlycon-Initialize-port-uartclk-based-on-clock-freq.patch
patches.drivers/sc16is7xx-Check-for-an-error-when-the-clock-is-enabl
patches.drivers/tty-pl011-Avoid-spuriously-stuck-off-interrupts
+ patches.fixes/earlycon-Remove-hardcoded-port-uartclk-initializatio.patch
patches.drivers/serial-samsung-fix-maxburst-parameter-for-DMA-transa
patches.drivers/tty-serial-atmel-use-port-name-as-name-in-request_ir
patches.drivers/serial-sh-sci-Use-spin_-try-lock_irqsave-instead-of-