Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp2061019lqp; Tue, 16 Apr 2024 06:27:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXOKZjKrK0I9Cog33fwvhb0PwnY4nr/qdmhHPImCIU7FZD82Rnok0SnImiHeh9LSyxs3s0YXzgnkNiofVUHzvcxJQEScoicso/IFVS7OA== X-Google-Smtp-Source: AGHT+IGOtkN/Udw+sPCdLJDZrEMOlXA7mvDKi1VQR4qOzWr1h/Z6q9Hw3gcoFAPG5qMsBP2OJOUS X-Received: by 2002:a17:90b:f0e:b0:2a6:ff2e:dcdd with SMTP id br14-20020a17090b0f0e00b002a6ff2edcddmr12457666pjb.34.1713274055351; Tue, 16 Apr 2024 06:27:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713274055; cv=pass; d=google.com; s=arc-20160816; b=p6JjSKrUJsdYRF+l8f9nkeIXVktaxRmpYJahuh7mNQflPwTfzSrKaMw4kT3UEqC24S hXP+1hNzZHVIPEWO5DIO7jH+vESgC9SzKcXa2/fHIvD36Bsv12Q82QdPRWsxujjsGc4x u8o+JKsJCvL6CToXKRD+vtbDX9rj9GBe210rpYmh9zug0XTi/4xR8sBfQi6YmAtsCsHy 5tAOAiSZukddJCc9A7LFbHLSrL6DtbJWDj1SKA7OCXBj8kHZRDEMCXkNjt5eIupgkfWS Kj3Vvwsk0JMoKkhISNCf+F84nzK7dRzWtOmvfM4XJ/74fYkbCNOexcBx7xWTi64YjX8H zuxg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:sender:dkim-signature; bh=p9NsG/h7I1qAatxqJoqHkekmP7IXYPTVQrQqbrESwUc=; fh=niC0a/jpm/ou4i0Xm5PmnG7ESn1zBn5GGbdDrtIiv4Q=; b=uvOg+dF+mu39deVY3DW6FlI9xUe+fRm8aU/HkV3pt9ecykTQ9+H7eSrXVooI4xo+JK vEoHnXrDHbLnmDmmVPGaKiE7QYqN8SDLT8N88GJlg1mjWsehrqDVxY5+BgVJKJ3NADEP nPAllTKO7zDQFaeJ/M8kZyk5vL6rGCMA7XlbUc5G9OHzS1DiKSJkCINGcPXQBzGX565U g75NKJ2BS01hNOaC7ZLSSlX2HCZQ/ZejUvsE8jaOl5B5tK3+LzGvLSk1sdAXOUkkOhcr jW5LJyZyTUbRol8pjuscX9S3UaIhkDXUZeYZ5DqXtXNSxe8AhPwRsbE2wMiudzhSpWwu bUWA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=OCvVQ16L; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-146876-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146876-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id i21-20020a17090acf9500b002a2a6fe41a5si9527458pju.125.2024.04.16.06.27.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 06:27:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146876-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=OCvVQ16L; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-146876-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146876-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 0C67F282479 for ; Tue, 16 Apr 2024 13:27:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BABFB12C498; Tue, 16 Apr 2024 13:27:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="OCvVQ16L" Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (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 7413E12A177; Tue, 16 Apr 2024 13:27:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713274047; cv=none; b=jiitbg4UC9/fWO51Wpc7sHQ0IESaAPRPtelsdZTOdzfzsn3v6l+TzW+Mnhzd+B2j3ddAMPnNUPKps/v2D8xAC5eBbXA9B8IkDIPv4juWpB/liHRrNx8nWvSNn2kO192O2uClBSyne6EvSk7T0BeN/VoCo2uQQm9DCzeUlH8VStA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713274047; c=relaxed/simple; bh=ow2JBt0MMuxqLvHc9QBerHjRnLSOo+VKZ+by8z8sXuc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=nuBHT3nSPQmuVFbMab8oErnWkMbBxjKhuxQ5B9u3V0obdTvnc3BPAga1cRCxCcabCX5qbXuavYuiUVKRr5C9uTl4aHsxwax2iR2QXfM04e/wQ3eM3ncMMe9myO+25skcnnKsSIUFQHUYFKwuko7P8VwMl5qgW6jMTTGrVf60QUY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=OCvVQ16L; arc=none smtp.client-ip=209.85.214.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-1e2178b2cf2so40407375ad.0; Tue, 16 Apr 2024 06:27:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713274045; x=1713878845; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=p9NsG/h7I1qAatxqJoqHkekmP7IXYPTVQrQqbrESwUc=; b=OCvVQ16LfVPBWUYTts4c0VO32t9tEzoH8PzrWX/VwShm6IyicfHBtXJVVCchvqL5EK /zmliJ6GJpquXYOt3DDQx5BWUZCekRnLpC/bhWDVpc9h78Lp1s0j7gv+91HNt+uRhho7 CEnY6Yk50+40edxHwBNr1y+IwNGF1vutwfGYwD/6pi+d7DuOVAY5NIrh9ZqvUMLZ60bX l/VMI9XJen+ZtOB8/Hs+wgETrPyu6k5IfjNNXTKlUssFjQO5MagcLccrHpS2ni7RVNKo N1bwMwPhcFyFxtMr5TTgl793nFh7IqicKO78YX48wtLsOuWMHqiQ2kbTzoYtQ6H6l+4Y qtzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713274045; x=1713878845; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=p9NsG/h7I1qAatxqJoqHkekmP7IXYPTVQrQqbrESwUc=; b=BO2+ke+1a3FNtdS+ICpuRQb5PDFXqdau78Au0Vw35lA7B7gc+vFH8KvcZW3Tjr8Ypv Ui3Fuytng05fSKv61TiKyx9go7y0cKl5ye5MyMZPaSzf4PlfkGAmfrtlx3bw20x8l8D/ Nrp7sY/Kj0jlWiIzK0RH9uM2rxSbx4r5SEcDqPDBaPmgiW5TSAbRST39yW2PQZ6FUfgn lHUlVZarcejH8zZKqhVlFQIkOU281sAT44vetMYXnDYKqsQPkiHIRU0+QBXd6/949oGR p1gfLtkdJwguIkqJXfWXxZX75sL3rs1jNlFQ0K1tdAXqYtWVD7sZnbx3hslk16/JxJpq i1lw== X-Forwarded-Encrypted: i=1; AJvYcCUY8Uf0ckGUpnzo6lgcPLBFYy6WMrDJTSp4AQdxTtrbEkDa4TMJ7WOd+FO6hilemTZcWfnil5sOjRqxDl7zRfoYrgYvBTgBzqd3mMhjm+n/lCf/LsFlW8HYp5YHzvCgqcgbQdrKsBX3CC7JLbfV+0GhkK/BP3CS9yfWM5qWp6UzamNK79te9AXwcOZqEpFX X-Gm-Message-State: AOJu0YyJLaJpbqsUOsrRrXJqUCswO8LGGl8OH1NIlCAGKssJ00qzetOC hF/jENRnBAJBvlDub7lIUN5WFU23qyZDxXn/UncCGwCUfQxcOt4S X-Received: by 2002:a17:902:d481:b0:1e3:cfc5:589c with SMTP id c1-20020a170902d48100b001e3cfc5589cmr17085328plg.28.1713274044687; Tue, 16 Apr 2024 06:27:24 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id b10-20020a170902d50a00b001e0f5034e95sm9680933plg.288.2024.04.16.06.27.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 06:27:24 -0700 (PDT) Sender: Guenter Roeck Date: Tue, 16 Apr 2024 06:27:23 -0700 From: Guenter Roeck To: Maximilian Luz Cc: Jean Delvare , Ilpo =?iso-8859-1?Q?J=E4rvinen?= , Hans de Goede , Ivor Wanders , linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-hwmon@vger.kernel.org Subject: Re: [PATCH 1/3] hwmon: Add thermal sensor driver for Surface Aggregator Module Message-ID: <7ba2554a-4f71-4ca0-ab49-59dbd03e1968@roeck-us.net> References: <20240330112409.3402943-1-luzmaximilian@gmail.com> <20240330112409.3402943-2-luzmaximilian@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240330112409.3402943-2-luzmaximilian@gmail.com> On Sat, Mar 30, 2024 at 12:24:00PM +0100, Maximilian Luz wrote: > Some of the newer Microsoft Surface devices (such as the Surface Book > 3 and Pro 9) have thermal sensors connected via the Surface Aggregator > Module (the embedded controller on those devices). Add a basic driver > to read out the temperature values of those sensors. > > Link: https://github.com/linux-surface/surface-aggregator-module/issues/59 > Signed-off-by: Maximilian Luz > Reviewed-by: Hans de Goede > --- [ ... ] > + hwmon_dev = devm_hwmon_device_register_with_info(&sdev->dev, > + "surface_thermal", ssam_temp, &ssam_temp_hwmon_chip_info, > + NULL); > + if (IS_ERR(hwmon_dev)) > + return PTR_ERR(hwmon_dev); > + > + return 0; return PTR_ERR_OR_ZERO(hwmon_dev);