public inbox for linux-hwmon@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/4] asus-ec-sensors: add support for board families
@ 2022-04-27 14:29 Eugene Shalygin
  2022-04-27 14:29 ` [PATCH v3 1/4] hwmon: (asus-ec-sensors) introduce ec_board_info struct for board data Eugene Shalygin
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Eugene Shalygin @ 2022-04-27 14:29 UTC (permalink / raw)
  Cc: Eugene Shalygin, Jean Delvare, Guenter Roeck, linux-hwmon,
	linux-kernel

Users provided information for boards from AMD-400 and sTRX40 families
and demonstrated that sensor addresses differ from those for the AMD-500
family. Also the AMD-400 family board uses the global ACPI lock instead
of a dedicated mutex to guard access to the hardware.

This patchset implements required changes to support other board
families:
 - per-family sensor definitions
 - options to choose hardware/state guard mutex: an AML mutex or the
   global ACPI lock.

These changes are used to add support for the PRIME X470-PRO board.


Changes in 
v3:
 - Added family_unknown member to the board_family enum to ensure the
	 default value of 0 is not a valid family value.
 - Added a note explaining why module_platform_driver_probe() is chosen
	 over module_platform_driver().

v2:
 - Removed the case without ACPI mutex where the state was guarded using
         the normal mutex. After receiving an update from user that case
         turned out to be non-existent.
 - Removed the __initconst attribute from the board data array.
 - Updated documentation to include the special string for the mutex
         path module parameters which make the driver use the global ACPI
         lock.

Eugene Shalygin (4):
  hwmon: (asus-ec-sensors) introduce ec_board_info struct for board data
  hwmon: (asus-ec-sensors) implement locking via the ACPI global lock
  hwmon: (asus-ec-sensors) add support for board families
  hwmon: (asus-ec-sensors) add PRIME X470-PRO board

 Documentation/hwmon/asus_ec_sensors.rst |   2 +
 drivers/hwmon/asus-ec-sensors.c         | 420 +++++++++++++++++-------
 2 files changed, 302 insertions(+), 120 deletions(-)

-- 
2.35.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-04-27 18:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-27 14:29 [PATCH v3 0/4] asus-ec-sensors: add support for board families Eugene Shalygin
2022-04-27 14:29 ` [PATCH v3 1/4] hwmon: (asus-ec-sensors) introduce ec_board_info struct for board data Eugene Shalygin
2022-04-27 14:29 ` [PATCH v3 2/4] hwmon: (asus-ec-sensors) implement locking via the ACPI global lock Eugene Shalygin
2022-04-27 14:30 ` [PATCH v3 3/4] hwmon: (asus-ec-sensors) add support for board families Eugene Shalygin
2022-04-27 14:30 ` [PATCH v3 4/4] hwmon: (asus-ec-sensors) add PRIME X470-PRO board Eugene Shalygin
2022-04-27 16:57   ` Eugene Shalygin
2022-04-27 17:56     ` Guenter Roeck
2022-04-27 18:00     ` Guenter Roeck
2022-04-27 14:39 ` [PATCH v3 0/4] asus-ec-sensors: add support for board families Guenter Roeck
2022-04-27 14:40   ` Eugene Shalygin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox