Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
c220215
ZEN: Add sysctl and CONFIG to disallow unprivileged CLONE_NEWUSER
heftig Sep 16, 2019
e81a18c
drivers/firmware: skip simpledrm if nvidia-drm.modeset=1 is set
martinezjavier May 19, 2022
cf8f76c
arch/Kconfig: Default to maximum amount of ASLR bits
heftig Jan 13, 2024
d81e943
amdgpu: enable overdrive by default
BoukeHaarsma23 Dec 12, 2023
e449809
drm: panel-orientation-quirks: Add quirk for AYA NEO 2 model
Samsagax Jun 21, 2023
b0a4037
drm: panel-orientation-quirks: Add quirk for AYA NEO Founder edition
Samsagax Jun 21, 2023
56ec8d5
drm: panel-orientation-quirks: Add quirk for AYA NEO GEEK
Samsagax Jun 21, 2023
5a587d4
drm: panel-orientation-quirks: Add quirk for Ayn Loki Zero
BoukeHaarsma23 Oct 7, 2023
ee5c6c7
drm: panel-orientation-quirks: Add quirk for Ayn Loki Max
BoukeHaarsma23 Oct 7, 2023
ad8aade
Ayaneo geek headset patch
BoukeHaarsma23 Sep 22, 2023
8a01a81
ayaneo 2 headphone fix
BoukeHaarsma23 Sep 22, 2023
9733953
HACK: add KConfig to enable driver-specific color mgmt props
melissawen Apr 22, 2023
e75761e
Don't create color_mgmt_properties on asics < SIENNA_CICHLID
BoukeHaarsma23 Dec 15, 2023
1bd3d58
drm: Add GPU reset sysfs event
contactshashanksharma Mar 7, 2022
945b74b
drm/amdgpu: add work function for GPU reset event
contactshashanksharma Mar 7, 2022
a37b55c
drm/amdgpu: schedule GPU reset event work function
Mar 10, 2022
b756809
oxp-sensors: hwmon: Add OrangePi Neo PWM fan control
pastaq Mar 28, 2024
78c8501
oxp-sensors: hwmon: Add OneXPlayer 2 and OneXFly
pastaq Mar 28, 2024
f12bdbb
oxp-sensors: hwmon: Add support for AYANEO 2s, air 1s, geek 1s and ku…
pastaq Mar 28, 2024
61740ea
oxp-sensors: hwmon: Add GPD Win Mini
pastaq Mar 28, 2024
cc81de3
bump the sensitivity of AMD SFH
antheas Mar 3, 2024
0545e78
IIO: add aya neo tablet identifier
BoukeHaarsma23 Apr 10, 2024
acbef60
iio: imu: Add driver for Bosch BMI260 IMU
justinweiss Feb 14, 2024
39dc3ed
Codec: Add aw87xxx codec with partial acpi implementation
ruineka Apr 25, 2024
3c361b0
Updated AW87xxx driver to be more verbose for debugging purposes, but…
CVMagic May 16, 2024
a23fb72
Updated AW87xxx driver to automatically enumerate a second I2C chip i…
CVMagic May 19, 2024
98c4c31
Updated AW87xxx driver to implement Suspend and Resume.
CVMagic May 22, 2024
9a3f8a9
fixup aw87xxx.{c,h} warnings
BoukeHaarsma23 Jul 27, 2024
b88198e
Add Atari VCS quirk
fewtarius May 28, 2024
584aafc
iio: imu: bmi323: Use iio read_acpi_mount_matrix() helper
NeroReflex May 23, 2024
db41c3a
fix Air 1S audio - thanks in part to @linh1987!
fewtarius Jul 26, 2024
09b2882
Use DMI matching for conflicting SSID 0x1f660101 between Ayaneo and AYN
CVMagic Jul 13, 2024
7855885
Fix ROG ALLY X audio
jlobue10 Jul 13, 2024
2e50c14
Add azoth
flukejones Jun 18, 2024
51b9fc9
Input: xpad - add support for ASUS ROG RAIKIRI PRO
flukejones Jun 7, 2024
7c84d62
hid-asus: use hid for brightness control on keyboard
flukejones May 13, 2024
e6199fe
platform/x86: asus-wmi: add debug print in more key places
flukejones May 21, 2024
ec8092a
platform/x86: asus-wmi: don't fail if platform_profile already regist…
flukejones May 23, 2024
b55cab1
platform/x86: asus-wmi: fix TUF laptop RGB variant
flukejones Jul 13, 2024
49410fc
ALSA: hda/realtek: cs35l41: Fixup remaining asus strix models
flukejones Jul 15, 2024
8be7589
hid-asus: add ROG Ally X prod ID to quirk list
flukejones Jul 24, 2024
4448213
platform/x86: asus-wmi: Add quirk for ROG Ally X
flukejones Jul 24, 2024
3916f80
platform/x86: asus-armoury: move existing tunings to asus-armoury module
flukejones May 30, 2024
6cac33e
platform/x86: asus-armoury: add dgpu tgp control
flukejones Jun 2, 2024
73c86d0
platform/x86: asus-armoury: add apu-mem control support
flukejones Jun 2, 2024
09a5a70
platform/x86: asus-armoury: add core count control
flukejones Jun 2, 2024
196636b
asus-wmi: deprecate bios features
flukejones Jun 3, 2024
8531080
platform/x86/amd: pmf: Add quirk for ROG Ally X
flukejones Jul 28, 2024
4558a02
hid-asus-ally: Add full gamepad support
flukejones Jul 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
platform/x86: asus-wmi: don't fail if platform_profile already regist…
…ered

On some newer laptops it appears that an AMD driver can register a
platform_profile handler. If this happens then the asus_wmi driver would
error with -EEXIST when trying to register its own handler leaving the
user with a possibly unusable system - this is especially true for
laptops with an MCU that emit a stream of HID packets, some of which can
be misinterpreted as shutdown signals.

We can safely continue loading the driver instead of bombing out.

Signed-off-by: Luke D. Jones <[email protected]>
  • Loading branch information
flukejones committed Aug 4, 2024
commit ec8092a9a8c7445a420e39bb02ecd181abffebcb
9 changes: 7 additions & 2 deletions drivers/platform/x86/asus-wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -3836,8 +3836,13 @@ static int platform_profile_setup(struct asus_wmi *asus)
asus->platform_profile_handler.choices);

err = platform_profile_register(&asus->platform_profile_handler);
if (err)
if (err == -EEXIST) {
pr_warn("%s, a platform_profile handler is already registered\n", __func__);
return 0;
} else if (err) {
pr_err("%s, failed at platform_profile_register: %d\n", __func__, err);
return err;
}

asus->platform_profile_support = true;
return 0;
Expand Down Expand Up @@ -4713,7 +4718,7 @@ static int asus_wmi_add(struct platform_device *pdev)
throttle_thermal_policy_set_default(asus);

err = platform_profile_setup(asus);
if (err)
if (err && err != -EEXIST)
goto fail_platform_profile_setup;

err = asus_wmi_sysfs_init(asus->platform_device);
Expand Down