mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-03 15:55:38 +00:00
![]() This patch adds support for HP Omen laptops. It adds support for most things that can be controlled via the Windows Omen Command Center application. - Fan speed monitoring through hwmon - Platform Profile support (cool, balanced, performance) - Max fan speed function toggle Also exposes the existing HDD temperature through hwmon since this driver didn't use hwmon before this patch. This patch has been tested on a 2020 HP Omen 15 (AMD) 15-en0023dx. - V1 Initial Patch - V2 Use standard hwmon ABI attributes Add existing non-standard "hddtemp" to hwmon - V3 Fix overflow issue in "hp_wmi_get_fan_speed" Map max fan speed value back to hwmon values on read Code style fixes Fix issue with returning values from "hp_wmi_hwmon_read", the value to return should be written to val and not just returned from the function - V4 Use DMI Board names to detect if a device should use the omen specific thermal profile method. Select HWMON instead of depending on it. Code style fixes. Replace some error codes with more specific/meaningful ones. Remove the HDD temperature from HWMON since we don't know what unit it's expressed in. Handle error from hp_wmi_hwmon_init - V5 Handle possible NULL from dmi_get_system_info() Use match_string function instead of manually checking Directly use is_omen_thermal_profile() without the static variable. Signed-off-by: Enver Balalic <balalic.enver@gmail.com> Acked-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20210902182234.vtwl72n5rjql22qa@omen.localdomain Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> |
||
---|---|---|
.. | ||
dell | ||
intel | ||
acer-wireless.c | ||
acer-wmi.c | ||
acerhdf.c | ||
adv_swbutton.c | ||
amd-pmc.c | ||
amilo-rfkill.c | ||
apple-gmux.c | ||
asus-laptop.c | ||
asus-nb-wmi.c | ||
asus-wireless.c | ||
asus-wmi.c | ||
asus-wmi.h | ||
classmate-laptop.c | ||
compal-laptop.c | ||
dual_accel_detect.h | ||
eeepc-laptop.c | ||
eeepc-wmi.c | ||
firmware_attributes_class.c | ||
firmware_attributes_class.h | ||
fujitsu-laptop.c | ||
fujitsu-tablet.c | ||
gigabyte-wmi.c | ||
gpd-pocket-fan.c | ||
hdaps.c | ||
hp-wmi.c | ||
hp_accel.c | ||
huawei-wmi.c | ||
i2c-multi-instantiate.c | ||
ibm_rtl.c | ||
ideapad-laptop.c | ||
intel_ips.c | ||
intel_ips.h | ||
intel_scu_ipc.c | ||
intel_scu_ipcutil.c | ||
intel_scu_pcidrv.c | ||
intel_scu_pltdrv.c | ||
intel_scu_wdt.c | ||
Kconfig | ||
lg-laptop.c | ||
Makefile | ||
meraki-mx100.c | ||
mlx-platform.c | ||
msi-laptop.c | ||
msi-wmi.c | ||
mxm-wmi.c | ||
panasonic-laptop.c | ||
pcengines-apuv2.c | ||
peaq-wmi.c | ||
pmc_atom.c | ||
samsung-laptop.c | ||
samsung-q10.c | ||
sony-laptop.c | ||
system76_acpi.c | ||
tc1100-wmi.c | ||
think-lmi.c | ||
think-lmi.h | ||
thinkpad_acpi.c | ||
topstar-laptop.c | ||
toshiba-wmi.c | ||
toshiba_acpi.c | ||
toshiba_bluetooth.c | ||
toshiba_haps.c | ||
touchscreen_dmi.c | ||
uv_sysfs.c | ||
wireless-hotkey.c | ||
wmi-bmof.c | ||
wmi.c | ||
xiaomi-wmi.c | ||
xo1-rfkill.c | ||
xo15-ebook.c |