mbox series

[v2,0/3] Add quirks to AMD Sensor Fusion Hub driver

Message ID 20210127162600.35927-1-mail@richard-neumann.de
Headers show
Series Add quirks to AMD Sensor Fusion Hub driver | expand

Message

Richard Neumann Jan. 27, 2021, 4:25 p.m. UTC
From: Richard Neumann <mail@richard-neumann.de>

This patch adds quirks to the upstream (v8) version of the
AMD Sensor Fusion Hub driver.
The quirks provide a function to detect the sensor mask for systems
that do not have it stored in the AMD_P2C_MSG3 register.
The information about the systems IDs and available sensors was
taken from: https://bugzilla.kernel.org/show_bug.cgi?id=199715

Changes since v1:
* Added missing object amd_sfh_quirks.o to amd_sfh-objs
* changed type of "system" in "amd_sfh_quirks_get_sensor_mask"
  - struct dmi_system_id -> const struct dmi_system_id

Richard Neumann (3):
  Outsourced sensor masks to PCI driver header.
  Added quirks to detect sensor masks.
  Updated MAINTAINERS

 MAINTAINERS                              |  1 +
 drivers/hid/amd-sfh-hid/Makefile         |  1 +
 drivers/hid/amd-sfh-hid/amd_sfh_pcie.c   | 16 +++----
 drivers/hid/amd-sfh-hid/amd_sfh_pcie.h   | 15 +++++++
 drivers/hid/amd-sfh-hid/amd_sfh_quirks.c | 55 ++++++++++++++++++++++++
 5 files changed, 79 insertions(+), 9 deletions(-)
 create mode 100644 drivers/hid/amd-sfh-hid/amd_sfh_quirks.c

Comments

Jiri Kosina Feb. 9, 2021, 9:39 a.m. UTC | #1
On Wed, 27 Jan 2021, mail@richard-neumann.de wrote:

> From: Richard Neumann <mail@richard-neumann.de>

> 

> This patch adds quirks to the upstream (v8) version of the

> AMD Sensor Fusion Hub driver.

> The quirks provide a function to detect the sensor mask for systems

> that do not have it stored in the AMD_P2C_MSG3 register.

> The information about the systems IDs and available sensors was

> taken from: https://bugzilla.kernel.org/show_bug.cgi?id=199715

> 

> Changes since v1:

> * Added missing object amd_sfh_quirks.o to amd_sfh-objs

> * changed type of "system" in "amd_sfh_quirks_get_sensor_mask"

>   - struct dmi_system_id -> const struct dmi_system_id


Nehal, Sandeep, can you please review this patchset? Thanks.

-- 
Jiri Kosina
SUSE Labs