[PATCH v9 0/2] hwmon: add GPD devices sensor driver

Cryolitia PukNgae via B4 Relay posted 2 patches 3 weeks, 3 days ago
Documentation/hwmon/gpd-fan.rst |  78 +++++
Documentation/hwmon/index.rst   |   1 +
MAINTAINERS                     |   7 +
drivers/hwmon/Kconfig           |  10 +
drivers/hwmon/Makefile          |   1 +
drivers/hwmon/gpd-fan.c         | 715 ++++++++++++++++++++++++++++++++++++++++
6 files changed, 812 insertions(+)
[PATCH v9 0/2] hwmon: add GPD devices sensor driver
Posted by Cryolitia PukNgae via B4 Relay 3 weeks, 3 days ago
Sensors driver for GPD Handhelds that expose fan reading and control
via hwmon sysfs.

Shenzhen GPD Technology Co., Ltd. manufactures a series of handheld
devices. This driver implements these functions through x86 port-mapped
IO.

Signed-off-by: Cryolitia PukNgae <cryolitia@uniontech.com>

---
Changes in v9:
- remove worthlessness EC access mutex lock
- just return EOPNOTSUPP on device that not support read pwm in auto
  mode
- cleanup code
- Link to v8: https://lore.kernel.org/r/20250904-gpd_fan-v8-0-0752584f16da@uniontech.com

Changes in v8:
- add mutex lock to protect an entire hwmon operation sequence
- clear manual model action
- improve error check
- style fix
- Link to v7: https://lore.kernel.org/r/20250820-gpd_fan-v7-0-10c8058f4dba@uniontech.com

Changes in v7:
- Add support for GPD Duo
- Change email from cryolitia@gmail.com to cryolitia@uniontech.com
- Link to v6: https://lore.kernel.org/r/CAGwozwG13swYjCB6_Wm2h8a2CdHxam+2y=g1m42pynkKqqdDLg@mail.gmail.com

Changes in v6:
- fix: nullptr and label followed by a declaration
- cleanup: clean up code and rename some function
- format code
- dmi: add 2025 new GPD devices
- Link to v5: https://lore.kernel.org/r/20250211-gpd_fan-v5-0-608f4255f0e1@gmail.com

Changes in v5:
- Rebase on kernel 6.13
- Remove all value-cache related code
- Clean up code
- Link to v4: https://lore.kernel.org/r/20240718-gpd_fan-v4-0-116e5431a9fe@gmail.com

Changes in v4:
- Apply suggest by Krzysztof Kozlowski, thanks!
- Link to v3: https://lore.kernel.org/r/20240717-gpd_fan-v3-0-8d7efb1263b7@gmail.com

Changes in v3:
- Re-arrange code, thanks to Krzysztof Kozlowski, Guenter Roeck, Yao Zi!
- Link to v2: https://lore.kernel.org/r/20240717-gpd_fan-v2-0-f7b7e6b9f21b@gmail.com

Changes in v2:
- Improved documentation, thanks to Randy Dunlap!
- Link to v1: https://lore.kernel.org/r/20240716-gpd_fan-v1-0-34051dd71a06@gmail.com

---
Cryolitia PukNgae (2):
      hwmon: add GPD devices sensor driver
      hwmon: document: add gpd-fan

 Documentation/hwmon/gpd-fan.rst |  78 +++++
 Documentation/hwmon/index.rst   |   1 +
 MAINTAINERS                     |   7 +
 drivers/hwmon/Kconfig           |  10 +
 drivers/hwmon/Makefile          |   1 +
 drivers/hwmon/gpd-fan.c         | 715 ++++++++++++++++++++++++++++++++++++++++
 6 files changed, 812 insertions(+)
---
base-commit: e6b9dce0aeeb91dfc0974ab87f02454e24566182
change-id: 20240716-gpd_fan-57f30923c884

Best regards,
-- 
Cryolitia PukNgae <cryolitia@uniontech.com>