3
0
Fork 0
forked from mirrors/nixpkgs

Fix kernel oops on boot due to bug in i2c driver.

https://github.com/NixOS/nixpkgs/issues/60126
https://lkml.org/lkml/2019/4/24/1123

The patch should be removed in the next round of stable releases because the fix should be included.
This commit is contained in:
Ambroz Bizjak 2019-04-24 19:18:42 +02:00 committed by Tim Steinbach
parent 69682e92c5
commit 1e8a080589
3 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,14 @@
diff --git a/drivers/hid/i2c-hid/i2c-hid-dmi-quirks.c b/drivers/hid/i2c-hid/i2c-hid-dmi-quirks.c
index 1d645c9ab417bf..cac262a912c124 100644
--- a/drivers/hid/i2c-hid/i2c-hid-dmi-quirks.c
+++ b/drivers/hid/i2c-hid/i2c-hid-dmi-quirks.c
@@ -337,7 +337,8 @@ static const struct dmi_system_id i2c_hid_dmi_desc_override_table[] = {
DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "FlexBook edge11 - M-FBE11"),
},
.driver_data = (void *)&sipodev_desc
- }
+ },
+ { } /* Terminate list */
};

View file

@ -57,4 +57,8 @@ rec {
sha256 = "1l8xq02rd7vakxg52xm9g4zng0ald866rpgm8kjlh88mwwyjkrwv";
};
};
# Fix kernel OOPS on boot: https://github.com/NixOS/nixpkgs/issues/60126
# Remove with the next release.
i2c-oops = { name = "i2c-oops"; patch = ./i2c-oops.patch; };
}

View file

@ -14673,6 +14673,7 @@ in
[ kernelPatches.bridge_stp_helper
kernelPatches.cpu-cgroup-v2."4.9"
kernelPatches.modinst_arg_list_too_long
kernelPatches.i2c-oops
];
};
@ -14683,6 +14684,7 @@ in
# when adding a new linux version
kernelPatches.cpu-cgroup-v2."4.11"
kernelPatches.modinst_arg_list_too_long
kernelPatches.i2c-oops
];
};
@ -14690,6 +14692,7 @@ in
kernelPatches =
[ kernelPatches.bridge_stp_helper
kernelPatches.modinst_arg_list_too_long
kernelPatches.i2c-oops
];
};