Compare commits

..

No commits in common. "f01bffda3c08999ac5ff15b68d549e653faeda58" and "78ede46c30f3bdb38d6acec5bc3fe982703ade17" have entirely different histories.

6 changed files with 2 additions and 59 deletions

7
.gitignore vendored
View File

@ -1,7 +0,0 @@
*.cmd
*.ko
*.o
*.mod
*.mod.c
Module.symvers
modules.order

18
debian/changelog vendored
View File

@ -1,21 +1,3 @@
system76-dkms (1.0.17) focal; urgency=medium
* Fix building on Linux 6.12
-- Tim Crawford <tcrawford@system76.com> Fri, 20 Dec 2024 08:43:43 -0700
system76-dkms (1.0.16) focal; urgency=medium
* Fix build with Linux 6.11
-- Jeremy Soller <jeremy@system76.com> Thu, 10 Oct 2024 13:57:05 -0600
system76-dkms (1.0.15) focal; urgency=medium
* Fix bonw13 backlight control
-- Tim Crawford <tcrawford@system76.com> Wed, 12 Jun 2024 14:47:40 -0600
system76-dkms (1.0.14) focal; urgency=medium
* Add kudu6

2
debian/compat vendored
View File

@ -1 +1 @@
10
9

1
debian/control vendored
View File

@ -4,7 +4,6 @@ Priority: optional
Maintainer: Jeremy Soller <jeremy@system76.com>
Build-Depends:
debhelper (>=9),
dh-sequence-dkms,
dkms
Standards-Version: 4.1.1
Homepage: https://github.com/pop-os/system76-dkms

View File

@ -110,24 +110,13 @@ static int s76_wmbb(u32 method_id, u32 arg, u32 *retval) {
#include "system76_hwmon.c"
#include "system76_nv_hda.c"
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,12,0)
static void s76_wmi_notify(union acpi_object *obj, void *context) {
#else
static void s76_wmi_notify(u32 value, void *context) {
#endif
u32 event;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,12,0)
if (obj->type != ACPI_TYPE_INTEGER) {
S76_DEBUG("Unexpected WMI event (%0#6x)\n", obj);
return;
}
#else
if (value != 0xD0) {
S76_DEBUG("Unexpected WMI event (%0#6x)\n", value);
return;
}
#endif
s76_wmbb(GET_EVENT, 0, &event);
@ -235,11 +224,7 @@ static int __init s76_probe(struct platform_device *dev) {
return 0;
}
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,11,0)
static void s76_remove(struct platform_device *dev) {
#else
static int s76_remove(struct platform_device *dev) {
#endif
wmi_remove_notify_handler(S76_EVENT_GUID);
nv_hda_exit();
@ -258,9 +243,7 @@ static int s76_remove(struct platform_device *dev) {
ap_led_exit();
}
#if LINUX_VERSION_CODE < KERNEL_VERSION(6,11,0)
return 0;
#endif
}
static int s76_suspend(struct platform_device *dev, pm_message_t status) {
@ -312,17 +295,6 @@ static int __init s76_dmi_matched(const struct dmi_system_id *id) {
return 1;
}
#define DMI_TABLE_LEGACY(PRODUCT, DATA) { \
.ident = "System76 " PRODUCT, \
.matches = { \
DMI_MATCH(DMI_SYS_VENDOR, "System76"), \
DMI_MATCH(DMI_PRODUCT_VERSION, PRODUCT), \
DMI_MATCH(DMI_BIOS_VENDOR, "System76"), \
}, \
.callback = s76_dmi_matched, \
.driver_data = (void *)(uint64_t)0, \
}
#define DMI_TABLE(PRODUCT, DATA) { \
.ident = "System76 " PRODUCT, \
.matches = { \
@ -334,10 +306,9 @@ static int __init s76_dmi_matched(const struct dmi_system_id *id) {
}
static struct dmi_system_id s76_dmi_table[] __initdata = {
DMI_TABLE_LEGACY("bonw13", DRIVER_HWMON | DRIVER_KB_LED),
DMI_TABLE("addw1", DRIVER_AP_LED | DRIVER_KB_LED | DRIVER_OLED),
DMI_TABLE("addw2", DRIVER_AP_LED | DRIVER_KB_LED | DRIVER_OLED),
DMI_TABLE("bonw15-b", DRIVER_HWMON | DRIVER_KB_LED),
DMI_TABLE("bonw13", DRIVER_HWMON | DRIVER_KB_LED),
DMI_TABLE("darp5", DRIVER_AP_LED | DRIVER_HWMON | DRIVER_KB_LED),
DMI_TABLE("darp6", DRIVER_AP_LED | DRIVER_HWMON | DRIVER_KB_LED),
DMI_TABLE("galp2", DRIVER_HWMON),

View File

@ -333,6 +333,4 @@ static void kb_wmi_color(void) {
for (region = 0; region < sizeof(kb_led_regions)/sizeof(union kb_led_color); region++) {
kb_led_color_set(region, kb_led_colors[kb_led_colors_i]);
}
led_classdev_notify_brightness_hw_changed(&kb_led, kb_led_brightness);
}