From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BE2003F3260 for ; Sat, 29 Aug 2026 17:05:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788023157; cv=none; b=LjNYOi/omcuCewxe55lxl7iLeE4MpOYEEmXVsxvKJq8y1Dmug5/Y2cyfAO/5kyj0mlvei9onbxKucj0/wDTxERu/aImD1cWo9N1upSwFenWbNSsNUlrXKYWJSHVZuaCM87k6hkTC0niIavFd1xcZSHtQhi+ej7Tz/1AjT1O5umw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788023157; c=relaxed/simple; bh=lcaIH443j7ZbU7odPFlIb8oOMxT3qKpiCDIOgGlK1EI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=f+u+F+NBLTd33j3Kt1NSwPrwWbVBwm7QA/K4hHXxwMRSrN6J00GxNbw9fvygtF/ixLNy8L9moLijHH/FqF9Gk6CAVS6OOxCsTAQbleVSkiQlMSLvDxWiffEvVavDWUaQZapypYMIUAZrLRZKYj/L6VpwsuwkhyhzjkeKHtJt5AU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=jbP8k790; arc=none smtp.client-ip=209.85.218.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jbP8k790" Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-c2529b3139fso252468466b.3 for ; Sat, 29 Aug 2026 10:05:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788023150; x=1788627950; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=nObHJJxKYbL0QP8ldGFvAbA9nLk/23W+3s2f++7bPgg=; b=jbP8k790cbyT80UtGw9/Gze+x8eerHeIhzUiztrr6FauVnfrpl5HfXNozmG9Emivpz iAQIHoqynqIfllfQ3Ap/VgPuXwVJCfCjI0SbBxf6dQ7nH+otDrPSx89mSG+rNdaaQbaj p3IC4ApAyuerZ+oARZbi2oWy/7e/5fz9bp8UkaImnBA9OLM+2m2BR0dpII80N6qCnE86 WAT3zKPNPXq2JApjQgxA+qMox/7t9Rd8rN8yqb1JElJsPO8WfOaeOurRcMthgFn+GTb2 FXoNXcBeoRd1lH1RZEi0TxK82G+gR5GVa2iQZPv56L9b2j/spjJQAjPyhOjmrDFnfHU3 hPbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788023150; x=1788627950; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=nObHJJxKYbL0QP8ldGFvAbA9nLk/23W+3s2f++7bPgg=; b=LB3ipJoklrfI1wZBsOw0DL6B419x4en8NILWjN9R+jVhKWsMiwKxtc5OXJ2Oe1JSHR XqQiu4fU1hD+oktkQ/jOljV1Ua59ySpgEN6vxcz6S5jU7PYKARGy9yb05mFvD+AcxqYC GGRWtysV6l4hCUbqJ60W0plaqzU0Y3x7C2X///RzztHCjrBmCcXXEJX5HJF/fArtK8Zp 2E0w35+k3U0Gs+B5S2Jyttf3SLyu0gqCxIynJWV1Bi4W3vVVrj12Hlh81MSPzasU6bjW 4VPC9IYXhMjRPvLqXkVKRVRUTBDQKAd6PCR34T+rSEblgPHw8Ibv84z2fTJgIeiwCdC4 uv9Q== X-Gm-Message-State: AFuF++mHk7AiTVyZXPq+alCuCe/AQoti5Cw+MDCyqo2HpnHceTZT6Isk sUv+t+xphT1xfRlBVRJxsOJrwwIXWuYs6gbi/js2YcF7zpfM+zLAsRXU X-Gm-Gg: AR+sD10DHBwb9Yg0YELSDS0SDKVWgsY/MEbA08KrUXtTx1SrCY0fuMotD8xGzt2Cw0F w6ZdQ0qvqHWXB74e1Dc7RQAaae7KgLSJSYpBm5sWtrc0OAwpP0kck13Kb6qG5COJGYIu3tNYTAT 5QGb80CLftKddX0u59d5EdZ9bN3A+SocAV9BpfAe4zMnwhs0IBK0GiT6XV3PTv1qdSuF+bSIRx+ ufAJot/D0NSR+AbQQnGCbeHZI0G4BJLhM5rLUDJyTGmpymMqPBL6Skvd/roGExznjMXBsvZxZqf 9OOMjitiYvEiZs3YBwiuKVIKZW4wFtY880h9u0Fgxxzdd6qmwcA1HBRmzzZOYPW10mT711VyOfE 4Gjbe9HehMNHI2MtQThfVd9aElr/nNC8ahzbBQgvM/KVzB8CbOCof+Krim4YjDpeepWe0+ZE02b 4K23NoJNLLKE2jqOcjU64lAAfGPOPKfEc6xbFd/uNW5BpYlXAqsulmOBkmpR2vsCoguDjhUhvGK helolm2/3LPnRM= X-Received: by 2002:a17:907:9612:b0:c16:4e5:944a with SMTP id a640c23a62f3a-c25574341c1mr937184966b.21.1788023149479; Sat, 29 Aug 2026 10:05:49 -0700 (PDT) Received: from localhost ([2603:5004:20a0:100c:4701:1ac4:1c21:4a1]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c255ee288afsm213287266b.23.2026.08.29.10.05.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Aug 2026 10:05:48 -0700 (PDT) From: Jerome Tollet To: Jean Delvare , Guenter Roeck Cc: linux-hwmon@vger.kernel.org, Benoit Masson , Jonathan Corbet , Shuah Khan , Randy Dunlap , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Jerome Tollet Subject: [PATCH v5 0/4] hwmon: it87: add IT8613E support Date: Sat, 29 Aug 2026 19:05:41 +0200 Message-ID: <20260829170545.33401-1-jerome.tollet@gmail.com> X-Mailer: git-send-email 2.55.0 Precedence: bulk X-Mailing-List: linux-hwmon@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This is a respin of Benoit Masson's v4 series, with his permission. It replaces my fan-input-only RFC with the complete support requested in review. The v4 series was dropped after a NULL pointer dereference was reported. The IT8613E device entry did not initialize reg_pwm, while the probe path unconditionally dereferences it. It also advertised six temperature offsets but the register table contained only three entries. Changes in v5: - Use the IT8665-style PWM register map for IT8613E, matching the out-of-tree driver. - Extend the temperature offset register table with the three IT8613E registers used by the out-of-tree driver. - Preserve the existing IT8689 behavior when introducing the per-chip resource and PWM metadata now required by the series. - Combine IT8613E identification and configuration so no intermediate patch binds to the device with an incomplete configuration. - Use octal permissions for the new sysfs attributes. Tested on an IT8613E at 0xa30, revision 12. Each patch builds as an external module with W=1, and the complete series passes checkpatch --strict with no warnings or errors. The final module loads without errors and exposes the same voltage, temperature, fan, temperature-offset, and PWM register values as the out-of-tree driver. On this system it exposes fan2_input and PWM2, PWM4, and PWM5. The value of pwm2_auto_channels_temp is 4 instead of the out-of-tree driver's 3 because the upstream ABI reports a channel bitmask (BIT(2)) rather than a one-based channel number. The PWM2 write path was tested by switching from automatic control to manual full duty (255). Fan2 increased from about 2100 RPM to 4687 RPM. The original duty (65), automatic mode, and temperature mapping were then restored. An S3 suspend/resume cycle with an RTC wakeup completed successfully. The PWM configuration and sensor readings were preserved, with no it87 or hwmon warnings in the kernel log. Link: https://lore.kernel.org/linux-hwmon/20260114221210.98071-1-yahoo@perenite.com/ Link: https://lore.kernel.org/linux-hwmon/20260829113011.51290-1-jerome.tollet@gmail.com/ benoit.masson (4): hwmon: it87: describe per-chip temperature resources hwmon: it87: prepare for extended PWM temp maps hwmon: it87: expose additional temperature limits hwmon: it87: add IT8613E support Documentation/hwmon/it87.rst | 8 + drivers/hwmon/it87.c | 456 ++++++++++++++++++++++++++++------- 2 files changed, 383 insertions(+), 81 deletions(-) base-commit: 75f2c0b3690702c90863c2e138cb5520670845ea -- 2.55.0