]> git.baikalelectronics.ru Git - kernel.git/commit
AMD_SFH: Add sensor_mask module parameter
authorHans de Goede <hdegoede@redhat.com>
Thu, 28 Jan 2021 12:12:18 +0000 (13:12 +0100)
committerJiri Kosina <jkosina@suse.cz>
Mon, 8 Mar 2021 15:32:32 +0000 (16:32 +0100)
commit05f9d195a2df6c04c8d24204112dd248b2774aa7
tree1c271af93a5610c4a1d429ad3d5ab41412f6fbc5
parentf3608d98f5ad05eab04b0e74bd2f46c18f4c3b53
AMD_SFH: Add sensor_mask module parameter

Add a sensor_mask module parameter which can be used to override the
sensor-mask read from the activestatus bits of the AMD_P2C_MSG3
registers. Some BIOS-es do not program the activestatus bits, leading
to the AMD-SFH driver not registering any HID devices even though the
laptop in question does actually have sensors.

While at it also fix the wrong indentation of the MAGNO_EN define.

BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=199715
BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1651886
Fixes: 1f4ff354fa3a ("SFH: PCIe driver to add support of AMD sensor fusion hub")
Suggested-by: Richard Neumann <mail@richard-neumann.de>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Sandeep Singh <sandeep.singh@amd.com
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/amd-sfh-hid/amd_sfh_pcie.c