all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob fcbd7b24340528d1d67069a079702f4ebd4f1e2f 1296 bytes (raw)
name: gnu/packages/patches/amlogic-0016-FROMLIST-v1-mmc-meson-gx-fix-deferred-probing.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
 
From fe266042ccee82d0997fdc437572de68ff9a1a76 Mon Sep 17 00:00:00 2001
From: Sergey Shtylyov <s.shtylyov@omp.ru>
Date: Fri, 24 Dec 2021 06:09:57 +0000
Subject: [PATCH 16/73] FROMLIST(v1): mmc: meson-gx: fix deferred probing

The driver overrides the error codes and IRQ0 returned by platform_get_irq()
to -EINVAL, so if it returns -EPROBE_DEFER, the driver will fail the probe
permanently instead of the deferred probing. Switch to propagating the error
codes upstream. IRQ0 is no longer returned by platform_get_irq(), so we now
can safely ignore it...

Fixes: cbcaac6d7dd2 ("mmc: meson-gx-mmc: Fix platform_get_irq's error checking")
Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
 drivers/mmc/host/meson-gx-mmc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mmc/host/meson-gx-mmc.c b/drivers/mmc/host/meson-gx-mmc.c
index fc462995cf94..a2aacbffc3bf 100644
--- a/drivers/mmc/host/meson-gx-mmc.c
+++ b/drivers/mmc/host/meson-gx-mmc.c
@@ -1185,8 +1185,8 @@ static int meson_mmc_probe(struct platform_device *pdev)
 	}
 
 	host->irq = platform_get_irq(pdev, 0);
-	if (host->irq <= 0) {
-		ret = -EINVAL;
+	if (host->irq < 0) {
+		ret = host->irq;
 		goto free_host;
 	}
 
-- 
2.17.1


debug log:

solving fcbd7b2434 ...
found fcbd7b2434 in https://yhetil.org/guix/C2ORkCSHJz-4jxwCauZznk4tZlP9KS4u_3Ywe4q2QrfJ7tvIswRWw4vX6OuzXDIHRriNNTQaCiYC67GgL30p8g80J9OcduCgaoZ8XNf-amE=@protonmail.com/

applying [1/1] https://yhetil.org/guix/C2ORkCSHJz-4jxwCauZznk4tZlP9KS4u_3Ywe4q2QrfJ7tvIswRWw4vX6OuzXDIHRriNNTQaCiYC67GgL30p8g80J9OcduCgaoZ8XNf-amE=@protonmail.com/
diff --git a/gnu/packages/patches/amlogic-0016-FROMLIST-v1-mmc-meson-gx-fix-deferred-probing.patch b/gnu/packages/patches/amlogic-0016-FROMLIST-v1-mmc-meson-gx-fix-deferred-probing.patch
new file mode 100644
index 0000000000..fcbd7b2434

1:30: space before tab in indent.
 	}
1:31: trailing whitespace.
 
1:32: space before tab in indent.
 	host->irq = platform_get_irq(pdev, 0);
1:37: space before tab in indent.
 		goto free_host;
1:38: space before tab in indent.
 	}
Checking patch gnu/packages/patches/amlogic-0016-FROMLIST-v1-mmc-meson-gx-fix-deferred-probing.patch...
Applied patch gnu/packages/patches/amlogic-0016-FROMLIST-v1-mmc-meson-gx-fix-deferred-probing.patch cleanly.
warning: squelched 3 whitespace errors
warning: 8 lines add whitespace errors.

index at:
100644 fcbd7b24340528d1d67069a079702f4ebd4f1e2f	gnu/packages/patches/amlogic-0016-FROMLIST-v1-mmc-meson-gx-fix-deferred-probing.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.