Add cursed MAX_TOPO_LEVEL patch

This commit is contained in:
Artemis Tosini 2023-12-02 01:30:21 +00:00
parent b78b8efaac
commit dccf6842a3
Signed by: artemist
GPG key ID: EE5227935FE3FF18
3 changed files with 20 additions and 0 deletions

View file

@ -21,6 +21,7 @@
}) // {
overlays.default = final: prev: {
jlink = final.callPackage ./packages/jlink { };
kernelPatches = final.callPackage ./packages/kernelPatches { };
zephyrPackages = final.callPackage ./packages/zephyr { };
};
};

View file

@ -0,0 +1,6 @@
{ ... }: {
increase_max_topo = {
name = "increase-max-topo";
patch = ./increase-max-topo.patch;
};
}

View file

@ -0,0 +1,13 @@
diff --git a/include/linux/usb/hcd.h b/include/linux/usb/hcd.h
index 3dbb42c637c1..8d45c90cee8a 100644
--- a/include/linux/usb/hcd.h
+++ b/include/linux/usb/hcd.h
@@ -26,7 +26,7 @@
#include <linux/interrupt.h>
#include <linux/idr.h>
-#define MAX_TOPO_LEVEL 6
+#define MAX_TOPO_LEVEL 1022
/* This file contains declarations of usbcore internals that are mostly
* used or exposed by Host Controller Drivers.