diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2022-09-25 02:03:17 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2022-09-25 02:03:17 +0200 |
commit | 264c64fc1ac744ed6bc0f8d38c208c4afb8b8d94 (patch) | |
tree | a6ce6a5066584a101383758674ddf3828242e108 /SOURCES/asus-linux.patch | |
parent | 5579eb45e00fd53dfe6a48bbadabc6c994b83464 (diff) | |
download | kernel-fsync-264c64fc1ac744ed6bc0f8d38c208c4afb8b8d94.tar.gz kernel-fsync-264c64fc1ac744ed6bc0f8d38c208c4afb8b8d94.zip |
kernel 5.19.10
Diffstat (limited to 'SOURCES/asus-linux.patch')
-rw-r--r-- | SOURCES/asus-linux.patch | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/SOURCES/asus-linux.patch b/SOURCES/asus-linux.patch index 91e726d..12f4922 100644 --- a/SOURCES/asus-linux.patch +++ b/SOURCES/asus-linux.patch @@ -1,59 +1,3 @@ -From 00eccdc62138a9857c53533701745fee2d5cf4ff Mon Sep 17 00:00:00 2001 -From: "Luke D. Jones" <luke@ljones.dev> -Date: Sun, 28 Aug 2022 19:44:46 +1200 -Subject: [PATCH] asus-wmi: Increase FAN_CURVE_BUF_LEN to 32 - -Fix for TUF laptops returning with an -ENOSPC on calling -asus_wmi_evaluate_method_buf() when fetching default curves. The TUF method -requires at least 32 bytes space. - -This also moves and changes the pr_debug() in fan_curve_check_present() to -pr_warn() in fan_curve_get_factory_default() so that there is at least some -indication in logs of why it fails. - -Signed-off-by: Luke D. Jones <luke@ljones.dev> ---- - drivers/platform/x86/asus-wmi.c | 9 ++++----- - 1 file changed, 4 insertions(+), 5 deletions(-) - -diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c -index 3d9fd58573f9..11203213e00d 100644 ---- a/drivers/platform/x86/asus-wmi.c -+++ b/drivers/platform/x86/asus-wmi.c -@@ -108,7 +108,7 @@ module_param(fnlock_default, bool, 0444); - #define WMI_EVENT_MASK 0xFFFF - - #define FAN_CURVE_POINTS 8 --#define FAN_CURVE_BUF_LEN (FAN_CURVE_POINTS * 2) -+#define FAN_CURVE_BUF_LEN 32 - #define FAN_CURVE_DEV_CPU 0x00 - #define FAN_CURVE_DEV_GPU 0x01 - /* Mask to determine if setting temperature or percentage */ -@@ -2383,8 +2383,10 @@ static int fan_curve_get_factory_default(struct asus_wmi *asus, u32 fan_dev) - curves = &asus->custom_fan_curves[fan_idx]; - err = asus_wmi_evaluate_method_buf(asus->dsts_id, fan_dev, mode, buf, - FAN_CURVE_BUF_LEN); -- if (err) -+ if (err) { -+ pr_warn("%s (0x%08x) failed: %d\n", __func__, fan_dev, err); - return err; -+ } - - fan_curve_copy_from_buf(curves, buf); - curves->device_id = fan_dev; -@@ -2402,9 +2404,6 @@ static int fan_curve_check_present(struct asus_wmi *asus, bool *available, - - err = fan_curve_get_factory_default(asus, fan_dev); - if (err) { -- pr_debug("fan_curve_get_factory_default(0x%08x) failed: %d\n", -- fan_dev, err); -- /* Don't cause probe to fail on devices without fan-curves */ - return 0; - } - --- -2.37.2 - From e6529e0ad6942bb0eadc5f5ad0590124153e0a8c Mon Sep 17 00:00:00 2001 From: "Luke D. Jones" <luke@ljones.dev> Date: Wed, 3 Aug 2022 11:02:05 +1200 |