Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3679840rdb; Wed, 27 Dec 2023 16:35:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IE3V5nFj3H7arj8Iu51mTHJnosbclweO6Jq/Jjos4qlmudEjD4bNPknNlUN3s8GhD4M3y1N X-Received: by 2002:a05:6e02:12e5:b0:35f:be3a:a8b5 with SMTP id l5-20020a056e0212e500b0035fbe3aa8b5mr8318880iln.28.1703723708622; Wed, 27 Dec 2023 16:35:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703723708; cv=none; d=google.com; s=arc-20160816; b=u6nyUmJkCGERYWTydfYf4BBkmZF0487D8I7VjOMH8U8RTqOh0zCdrrDduZjT2TQY61 EX1ONMTtwQPVvzwJ51+bqIm2R4xI8lwqHDiRH9gNAohZ2nKST8fm/DJmZ26KY45QE7m0 L4JYYZ2NqZpPcwxHIVKfOEQHg+vfXU5C4HI8duSlsKnXDxwrGcLIYdieFurPJzNsgVRr 21iz+VHlj1tngfKP5aI1I7A8rjhYp5tt/4WSdIGaS5zosS2fkPgQGqetQ3PblcWiKTqc IKHgtaTdTayf06119H/gMgHd1JB/SA0Xpw8TEpOSri/rlwZdPI8t8A/WL7SD4YeNAPpV mM6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from:dkim-signature; bh=g7pRev8d8xqftOZokIk69L3uMsCe9icbzoBaKLUC/8I=; fh=tmP3r8kdHnjto9t/Q2hyg0WZlGuk2h+t0yEFfDzt3ZM=; b=dejgpiB/8KpjsMMaZHeD/W8YNHtgjJ+jGnQz2eyf/Arn3HD2mzCv67mixIO3svMR/i FNfkfGInv5h0vbHWZivz1TwAwJo4QgZ306hynZ3qo3pPT2/ueK7skCs58S2QuKTjKdA4 Mk0VjKkqld3w1GYFBbzgC+/Gp/RrtQ55fRexVGo1NFKQam9elwx1dLVCwc96rdziakyw ik3lFD4Bov29Xe+Agnk+2ez7PIGf7CLar7KhaSaJr7gN0XApAySFSvFmnIR57vt1ugIc 6FOVIi0sETkgVmgSobo/Iuxmn0nJngeip4Ud6MLtO1vuz37M/4qUsvVDdg1vVowelJvH fx/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@iwanders.net header.s=google header.b=f4rM+Gmr; spf=pass (google.com: domain of linux-kernel+bounces-12324-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12324-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id e8-20020a656488000000b005ce004c1886si8619172pgv.468.2023.12.27.16.35.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 16:35:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12324-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@iwanders.net header.s=google header.b=f4rM+Gmr; spf=pass (google.com: domain of linux-kernel+bounces-12324-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12324-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 47DBCB227D1 for ; Thu, 28 Dec 2023 00:35:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 843DE10F9; Thu, 28 Dec 2023 00:34:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=iwanders.net header.i=@iwanders.net header.b="f4rM+Gmr" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-qt1-f181.google.com (mail-qt1-f181.google.com [209.85.160.181]) (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 6F63F64D for ; Thu, 28 Dec 2023 00:34:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=iwanders.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=iwanders.net Received: by mail-qt1-f181.google.com with SMTP id d75a77b69052e-427e8bb6778so6546941cf.3 for ; Wed, 27 Dec 2023 16:34:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iwanders.net; s=google; t=1703723694; x=1704328494; darn=vger.kernel.org; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=g7pRev8d8xqftOZokIk69L3uMsCe9icbzoBaKLUC/8I=; b=f4rM+Gmr4L40thb/bMT6suveiR5gOI6+qndTSdwuJ1Oj6pql565GYMJrKxnZXEkrjy YEVWiFeseA63ONDvK9TjhDhfPqVIf+VXB67+NrX9pvqQDCIFnQnXDtnqVqZcmHJ3/9th rr2cjk9A0w+9La39JSvC7KoviCEK2fIVQIj30= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703723694; x=1704328494; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=g7pRev8d8xqftOZokIk69L3uMsCe9icbzoBaKLUC/8I=; b=H1GdtxOJBxD2t6A4mPy1YKGE9eefeXsg/RB2YOrCMtg67+cS2W3fwLry4s6wKAwyRu ENyvTI8Nge47hEzjmiKWTnl7ZhlvDzwEH2AlyMZgl6BCIvebZKjJLJoD1vCqtxIG+cHb Kf1QjHSQ8xsk7A9LybquTWS9lojAUuPB5YXcD+QWPKMnaJCWn98K/23x13Jcy7ZyPP08 lTbOYCztbPT9q+gi7tI7vtMwFpNGt6CnxYpxCIcJTeVL8UzoECe1C4kUTFODTHb/lCI4 SGY/OXxq1IoBvGjQpND+Vwlqdyp9zcZqDUXB2mYPi6w/uzhakWxqspzAvOqDeHGTZWLJ Jl+Q== X-Gm-Message-State: AOJu0Yzx++47l0xhHNrHCDX2XkE0o0jMOTB5PEvvLwNiFbjsunQOm6nc fHZYgBGzXNsbUAwpmdo1zV810Wh/OHqtcw== X-Received: by 2002:a05:622a:346:b0:423:ea2f:d604 with SMTP id r6-20020a05622a034600b00423ea2fd604mr10813977qtw.46.1703723694313; Wed, 27 Dec 2023 16:34:54 -0800 (PST) Received: from eagle.lan (24-246-30-234.cable.teksavvy.com. [24.246.30.234]) by smtp.gmail.com with ESMTPSA id fb9-20020a05622a480900b004279315b3besm7710684qtb.0.2023.12.27.16.34.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 16:34:53 -0800 (PST) From: Ivor Wanders To: Jean Delvare , Guenter Roeck , Jonathan Corbet , Maximilian Luz , Ivor Wanders , Hans de Goede , Mark Gross Cc: linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org Subject: [PATCH v2 0/2] Surface fan monitoring driver Date: Wed, 27 Dec 2023 19:34:42 -0500 Message-Id: <20231228003444.5580-1-ivor@iwanders.net> X-Mailer: git-send-email 2.17.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Second version of a hwmon driver to monitor the fan's rpm on Microsoft Surface devices, originally submitted in [1]. Changes in v2: - Removed all unsupported sysfs attributes from the hwmon driver, leaving the fan input as the only supported attribute. [1] https://lore.kernel.org/linux-hwmon/20231220234415.5219-1-ivor@iwanders.net/T/ Ivor Wanders (2): hwmon: add fan speed monitoring driver for Surface devices platform/surface: aggregator_registry: add entry for fan speed Documentation/hwmon/index.rst | 1 + Documentation/hwmon/surface_fan.rst | 25 +++++ MAINTAINERS | 8 ++ drivers/hwmon/Kconfig | 13 +++ drivers/hwmon/Makefile | 1 + drivers/hwmon/surface_fan.c | 105 ++++++++++++++++++ .../surface/surface_aggregator_registry.c | 7 ++ 7 files changed, 160 insertions(+) create mode 100644 Documentation/hwmon/surface_fan.rst create mode 100644 drivers/hwmon/surface_fan.c -- 2.17.1