mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 22:47:56 +00:00
2c363a070e
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.1.75 Removed upstreamed: generic/hack-6.1/321-powerpc_crtsavres_prereq.patch[1] generic/pending-6.1/540-ksmbd-only-v2-leases-handle-the-directory.patch[2] Rebased: bcm27xx/patches-6.1/950-0670-fbdev-Don-t-cancel-deferred-work-if-pagelist-empty.patch[3] All other patches automatically rebased. 1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.75&id=16b88e68b85d5520c28498bb847358ff6300cb90 2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/fs/smb?h=v6.1.75&id=c866866c795296d3637ab0d48a3d8a3ef5d6f4a3 3. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.75&id=81f444f22816a82ada2cc787a2845cffc8c584a6 Build system: x86/64 Build-tested: x86/64/AMD Cezanne Run-tested: x86/64/AMD Cezanne Signed-off-by: John Audia <therealgraysky@proton.me>
29 lines
967 B
Diff
29 lines
967 B
Diff
From 34fb077ceed5166f4426daf21287d2ff4c0d65ca Mon Sep 17 00:00:00 2001
|
|
From: Phil Elwell <phil@raspberrypi.com>
|
|
Date: Thu, 2 Jul 2020 13:53:20 +0100
|
|
Subject: [PATCH] serial: 8250: bcm2835aux - defer if clock is zero
|
|
|
|
See: https://github.com/raspberrypi/linux/issues/3700
|
|
|
|
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
|
---
|
|
drivers/tty/serial/8250/8250_bcm2835aux.c | 7 +++++++
|
|
1 file changed, 7 insertions(+)
|
|
|
|
--- a/drivers/tty/serial/8250/8250_bcm2835aux.c
|
|
+++ b/drivers/tty/serial/8250/8250_bcm2835aux.c
|
|
@@ -182,6 +182,13 @@ static int bcm2835aux_serial_probe(struc
|
|
*/
|
|
up.port.uartclk = uartclk * 2;
|
|
|
|
+ /* The clock is only queried at probe time, which means we get one shot
|
|
+ * at this. A zero clock is never going to work and is almost certainly
|
|
+ * due to a parent not being ready, so prefer to defer.
|
|
+ */
|
|
+ if (!up.port.uartclk)
|
|
+ return -EPROBE_DEFER;
|
|
+
|
|
/* register the port */
|
|
ret = serial8250_register_8250_port(&up);
|
|
if (ret < 0) {
|