diff --git a/flake.nix b/flake.nix index ed9bdd8..21b02c2 100644 --- a/flake.nix +++ b/flake.nix @@ -21,6 +21,7 @@ }) // { overlays.default = final: prev: { jlink = final.callPackage ./packages/jlink { }; + kernelPatches = final.callPackage ./packages/kernelPatches { }; zephyrPackages = final.callPackage ./packages/zephyr { }; }; }; diff --git a/packages/kernelPatches/default.nix b/packages/kernelPatches/default.nix new file mode 100644 index 0000000..e9ad64f --- /dev/null +++ b/packages/kernelPatches/default.nix @@ -0,0 +1,6 @@ +{ ... }: { + increase_max_topo = { + name = "increase-max-topo"; + patch = ./increase-max-topo.patch; + }; +} diff --git a/packages/kernelPatches/increase-max-topo.patch b/packages/kernelPatches/increase-max-topo.patch new file mode 100644 index 0000000..f0617bb --- /dev/null +++ b/packages/kernelPatches/increase-max-topo.patch @@ -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 + #include + +-#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.