all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob b899e43d63f8cc4840863380747c0d974086af1a 1307 bytes (raw)
name: gnu/packages/patches/amlogic-0010-LOCAL-usb-hub-disable-autosuspend-for-Genesys-Logic-.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
 
From 080a637d2fedf1d550f2fcee2da8520cb2456122 Mon Sep 17 00:00:00 2001
From: Christian Hewitt <christianshewitt@gmail.com>
Date: Mon, 3 Jan 2022 10:44:17 +0000
Subject: [PATCH 10/73] LOCAL: usb: hub: disable autosuspend for Genesys Logic
 Hubs

Disable autosuspend in Genesys Logic hubs to allow USB devices on the
Odroid C2 board to be used. The alternative to this patch is setting
usbcore.autosuspend=-1 in boot params.

This patch only impacts GXBB devices as GXL/GXM onwards use the newer
dwc3 core which does not have the problem.

Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
---
 drivers/usb/core/hub.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index bbab424b0d55..ccfd0b312867 100644
--- a/drivers/usb/core/hub.c
+++ b/drivers/usb/core/hub.c
@@ -5797,7 +5797,7 @@ static const struct usb_device_id hub_id_table[] = {
 			| USB_DEVICE_ID_MATCH_INT_CLASS,
       .idVendor = USB_VENDOR_GENESYS_LOGIC,
       .bInterfaceClass = USB_CLASS_HUB,
-      .driver_info = HUB_QUIRK_CHECK_PORT_AUTOSUSPEND},
+      .driver_info = HUB_QUIRK_DISABLE_AUTOSUSPEND},
     { .match_flags = USB_DEVICE_ID_MATCH_DEV_CLASS,
       .bDeviceClass = USB_CLASS_HUB},
     { .match_flags = USB_DEVICE_ID_MATCH_INT_CLASS,
-- 
2.17.1


debug log:

solving b899e43d63 ...
found b899e43d63 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-0010-LOCAL-usb-hub-disable-autosuspend-for-Genesys-Logic-.patch b/gnu/packages/patches/amlogic-0010-LOCAL-usb-hub-disable-autosuspend-for-Genesys-Logic-.patch
new file mode 100644
index 0000000000..b899e43d63

1:30: space before tab in indent.
 			| USB_DEVICE_ID_MATCH_INT_CLASS,
1:38: trailing whitespace.
-- 
Checking patch gnu/packages/patches/amlogic-0010-LOCAL-usb-hub-disable-autosuspend-for-Genesys-Logic-.patch...
1:40: new blank line at EOF.
+
Applied patch gnu/packages/patches/amlogic-0010-LOCAL-usb-hub-disable-autosuspend-for-Genesys-Logic-.patch cleanly.
warning: 3 lines add whitespace errors.

index at:
100644 b899e43d63f8cc4840863380747c0d974086af1a	gnu/packages/patches/amlogic-0010-LOCAL-usb-hub-disable-autosuspend-for-Genesys-Logic-.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.