Linux kernel modifications for the Kernel Hacking exam
Find a file
Mario Limonciello 7bcfdab3f0 HID: amd_sfh: if no sensors are enabled, clean up
It was reported that commit b300667b33 ("HID: amd_sfh: Disable the
interrupt for all command") had caused increased resume time on HP Envy
x360.

Before this commit 3 sensors were reported, but they were not actually
functional.  After this commit the sensors are no longer reported, but
also the resume time increased.

To avoid this problem explicitly look for the number of disabled sensors.
If all the sensors are disabled, clean everything up.

Fixes: b300667b33 ("HID: amd_sfh: Disable the interrupt for all command")
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2115
Reported-by: Xaver Hugl <xaver.hugl@gmail.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Acked-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
Link: https://lore.kernel.org/r/20230203220850.13924-1-mario.limonciello@amd.com
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
2023-02-06 11:00:36 +01:00
arch Input updates for 6.2 merge window: 2022-12-13 13:20:36 -08:00
block for-6.2/block-2022-12-08 2022-12-13 10:43:59 -08:00
certs
crypto iov_iter work; most of that is about getting rid of 2022-12-12 18:29:54 -08:00
Documentation Input updates for 6.2 merge window: 2022-12-13 13:20:36 -08:00
drivers HID: amd_sfh: if no sensors are enabled, clean up 2023-02-06 11:00:36 +01:00
fs for-6.2/block-2022-12-08 2022-12-13 10:43:59 -08:00
include Input updates for 6.2 merge window: 2022-12-13 13:20:36 -08:00
init Non-MM patches for 6.2-rc1. 2022-12-12 17:28:58 -08:00
io_uring for-6.2/block-2022-12-08 2022-12-13 10:43:59 -08:00
ipc Non-MM patches for 6.2-rc1. 2022-12-12 17:28:58 -08:00
kernel for-6.2/block-2022-12-08 2022-12-13 10:43:59 -08:00
lib regulator: Updates for v6.2 2022-12-13 12:49:59 -08:00
LICENSES
mm for-6.2/block-2022-12-08 2022-12-13 10:43:59 -08:00
net lsm/stable-6.2 PR 20221212 2022-12-13 09:47:48 -08:00
rust
samples Landlock updates for v6.2-rc1 2022-12-13 09:14:50 -08:00
scripts Devicetree updates for v6.2: 2022-12-13 13:13:55 -08:00
security lsm/stable-6.2 PR 20221212 2022-12-13 09:47:48 -08:00
sound sound updates for 6.2-rc1 2022-12-13 11:27:26 -08:00
tools sound updates for 6.2-rc1 2022-12-13 11:27:26 -08:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap Non-MM patches for 6.2-rc1. 2022-12-12 17:28:58 -08:00
.rustfmt.toml
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS Input updates for 6.2 merge window: 2022-12-13 13:20:36 -08:00
Makefile This was a not-too-busy cycle for documentation; highlights include: 2022-12-12 17:18:50 -08:00
README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.