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)
commit952f7d10c6b1685c6700fb24cf4ecbcf26ede77e
tree1c271af93a5610c4a1d429ad3d5ab41412f6fbc5
parenta9e54f4b62dcfed4432a5a89b1cd5903737f6e83
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: 4f567b9f8141 ("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