mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] hwmon: Add new pwmX_fan_channel attribute
@ 2022-07-23  3:38 Armin Wolf
  2022-07-23  3:38 ` [PATCH 1/2] hwmon: Add " Armin Wolf
  2022-07-23  3:38 ` [PATCH 2/2] hwmon: (dell-smm) Add support for " Armin Wolf
  0 siblings, 2 replies; 10+ messages in thread
From: Armin Wolf @ 2022-07-23  3:38 UTC (permalink / raw)
  To: jdelvare, linux; +Cc: linux-hwmon, linux-kernel

Userspace software which needs to know which PWM channel is
associated with which fan channel (like fancontrol/pwmconfig)
currently has to probe each PWM channel and watch for fan speed
changes.

This process has multiple issues:
1. Hardware might overhead during probing of PWM channels.
2. Not all fans react the same to PWM changes, making
detection unreliable.

However some hwmon chips, especially firmware-based ones, already
know which PWM channels are associated to which fan channel,
making probing of them unnecessary.

Add a new sysfs attribute to allow such chips to export
this knowlege to userspace in a standardized manner.

The first patch adds support for the new attribute to the hwmon core,
while the second patch adds support for this new attribute to the
dell-smm-hwmon driver.

All changes have been tested on a Dell Inspiron 3505.

Armin Wolf (2):
  hwmon: Add pwmX_fan_channel attribute
  hwmon: (dell-smm) Add support for pwmX_fan_channel attribute

 Documentation/ABI/testing/sysfs-class-hwmon |  8 ++++++++
 Documentation/hwmon/dell-smm-hwmon.rst      |  1 +
 Documentation/hwmon/sysfs-interface.rst     |  3 +++
 drivers/hwmon/dell-smm-hwmon.c              | 15 ++++++++++++---
 drivers/hwmon/hwmon.c                       |  1 +
 include/linux/hwmon.h                       |  2 ++
 6 files changed, 27 insertions(+), 3 deletions(-)

--
2.30.2


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

end of thread, other threads:[~2022-07-24 17:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-23  3:38 [PATCH 0/2] hwmon: Add new pwmX_fan_channel attribute Armin Wolf
2022-07-23  3:38 ` [PATCH 1/2] hwmon: Add " Armin Wolf
2022-07-23 14:17   ` Guenter Roeck
2022-07-24  1:20     ` Armin Wolf
2022-07-24 14:44       ` Guenter Roeck
2022-07-24 16:06         ` Armin Wolf
2022-07-24 16:30           ` Guenter Roeck
2022-07-24 17:50             ` Armin Wolf
2022-07-23  3:38 ` [PATCH 2/2] hwmon: (dell-smm) Add support for " Armin Wolf
2022-07-23 14:14   ` Guenter Roeck

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

all inboxes | Powered by JetHome®