linux-uconsole/drivers/platform/x86
Hans de Goede b1152098d4 platform/x86: GPD pocket fan: Use default values when wrong modparams are given
commit 6ae01050e4 upstream.

Use our default values when wrong module-parameters are given, instead of
refusing to load. Refusing to load leaves the fan at the BIOS default
setting, which is "Off". The CPU's thermal throttling should protect the
system from damage, but not-loading is really not the best fallback in this
case.

This commit fixes this by re-setting module-parameter values to their
defaults if they are out of range, instead of failing the probe with
-EINVAL.

Cc: stable@vger.kernel.org
Cc: Jason Anderson <jasona.594@gmail.com>
Reported-by: Jason Anderson <jasona.594@gmail.com>
Fixes: 594ce6db32 ("platform/x86: GPD pocket fan: Use a min-speed of 2 while charging")
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-17 19:47:04 +01:00
..
acer-wireless.c
acer-wmi.c platform/x86: acer-wmi: Silence "unsupported" message a bit 2018-08-22 13:40:24 +03:00
acerhdf.c platform/x86: acerhdf: Add BIOS entry for Gateway LT31 v1.3307 2018-11-27 16:13:00 +01:00
alienware-wmi.c platform/x86: alienware-wmi: Correct a memory leak 2018-09-10 13:45:43 -07:00
amilo-rfkill.c
apple-gmux.c
asus-laptop.c
asus-nb-wmi.c platform/x86: asus-wmi: Only Tell EC the OS will handle display hotkeys from asus_nb_wmi 2019-07-10 09:53:37 +02:00
asus-wireless.c
asus-wmi.c platform/x86: asus-wmi: Fix keyboard brightness cannot be set to 0 2020-01-17 19:47:03 +01:00
asus-wmi.h platform/x86: asus-wmi: Only Tell EC the OS will handle display hotkeys from asus_nb_wmi 2019-07-10 09:53:37 +02:00
classmate-laptop.c
compal-laptop.c
dell-laptop.c platform/x86: dell-laptop: fix rfkill functionality 2019-05-16 19:41:18 +02:00
dell-rbtn.c
dell-rbtn.h
dell-smbios-base.c
dell-smbios-smm.c
dell-smbios-wmi.c platform/x86: dell-smbios-wmi: Correct a memory leak 2018-09-10 13:45:43 -07:00
dell-smbios.h
dell-smo8800.c
dell-wmi-aio.c
dell-wmi-descriptor.c
dell-wmi-descriptor.h
dell-wmi-led.c
dell-wmi.c
eeepc-laptop.c
eeepc-wmi.c
fujitsu-laptop.c
fujitsu-tablet.c
gpd-pocket-fan.c platform/x86: GPD pocket fan: Use default values when wrong modparams are given 2020-01-17 19:47:04 +01:00
hdaps.c
hp-wireless.c
hp-wmi.c platform/x86: hp-wmi: Make buffer for HPWMI_FEATURE2_QUERY 128 bytes 2019-12-31 16:36:25 +01:00
hp_accel.c
i2c-multi-instantiate.c
ibm_rtl.c
ideapad-laptop.c platform/x86: ideapad-laptop: Fix no_hw_rfkill_list for Lenovo RESCUER R720-15IKBN 2019-04-05 22:33:03 +02:00
intel-hid.c platform/x86: intel-hid: Missing power button release on some Dell models 2019-04-05 22:33:14 +02:00
intel-rst.c
intel-smartconnect.c
intel-vbtn.c platform/x86: intel-vbtn: Report switch events when event wakes device 2019-07-10 09:53:38 +02:00
intel-wmi-thunderbolt.c
intel_atomisp2_pm.c platform/x86: Fix config space access for intel_atomisp2_pm 2019-11-06 13:05:25 +01:00
intel_bxtwc_tmu.c
intel_cht_int33fe.c ACPI / scan: Create platform device for INT33FE ACPI nodes 2019-12-01 09:16:35 +01:00
intel_chtdc_ti_pwrbtn.c
intel_int0002_vgpio.c x86/cpu: Sanitize FAM6_ATOM naming 2019-05-14 19:17:53 +02:00
intel_ips.c
intel_ips.h
intel_menlow.c
intel_mid_powerbtn.c x86/cpu: Sanitize FAM6_ATOM naming 2019-05-14 19:17:53 +02:00
intel_mid_thermal.c
intel_oaktrail.c
intel_pmc_core.c platform/x86: intel_pmc_core: Do not ioremap RAM 2019-10-05 13:09:55 +02:00
intel_pmc_core.h platform/x86: intel_pmc_core: Fix PCH IP sts reading 2019-04-05 22:33:11 +02:00
intel_pmc_ipc.c platform/x86: intel_pmc_ipc: adding error handling 2019-06-15 11:54:09 +02:00
intel_punit_ipc.c platform-drivers-x86 for v4.19-1 2018-08-22 14:14:15 -07:00
intel_scu_ipc.c
intel_scu_ipcutil.c
intel_telemetry_core.c
intel_telemetry_debugfs.c x86/cpu: Sanitize FAM6_ATOM naming 2019-05-14 19:17:53 +02:00
intel_telemetry_pltdrv.c x86/cpu: Sanitize FAM6_ATOM naming 2019-05-14 19:17:53 +02:00
intel_turbo_max_3.c
Kconfig platform/x86: Add Intel AtomISP2 dummy / power-management driver 2019-04-20 09:16:02 +02:00
Makefile platform/x86: Add Intel AtomISP2 dummy / power-management driver 2019-04-20 09:16:02 +02:00
mlx-platform.c platform/x86: mlx-platform: Fix LED configuration 2019-12-05 09:20:00 +01:00
msi-laptop.c
msi-wmi.c
mxm-wmi.c
panasonic-laptop.c
peaq-wmi.c
pmc_atom.c platform/x86: pmc_atom: Add Siemens CONNECT X300 to critclk_systems DMI table 2020-01-09 10:19:04 +01:00
pvpanic.c
samsung-laptop.c
samsung-q10.c
sony-laptop.c platform/x86: sony-laptop: Fix unintentional fall-through 2019-05-16 19:41:17 +02:00
surface3-wmi.c
surface3_button.c
surfacepro3_button.c
tc1100-wmi.c
thinkpad_acpi.c platform/x86: thinkpad_acpi: Disable Bluetooth for some machines 2019-05-16 19:41:17 +02:00
topstar-laptop.c
toshiba-wmi.c
toshiba_acpi.c
toshiba_bluetooth.c
toshiba_haps.c
touchscreen_dmi.c platform/x86: touchscreen_dmi: Add info for the Cube KNote i1101 tablet 2018-08-15 12:55:32 +03:00
wmi-bmof.c
wmi.c
xo1-rfkill.c
xo15-ebook.c