Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp976403lqj; Mon, 3 Jun 2024 06:50:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU8xdhmiY3w0sRUOcb+/t6PfzWPxbWSEFbXmc2PRU8xKVDyNL+aMwaaI5qRXorFXLLS1vWL3i8F1O6lsf9itgWRjHHFCZdjngFDBeMxeA== X-Google-Smtp-Source: AGHT+IE9aY/3AwGU3q4ZDMGdbxaZ0Pord3ARNBYI8Qs6PPtcOM7Vt71pEqdHIuvsg4+3WCTq/Bzq X-Received: by 2002:a05:620a:379c:b0:790:f2dc:8b73 with SMTP id af79cd13be357-794f5ccc8camr927794185a.55.1717422643444; Mon, 03 Jun 2024 06:50:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717422643; cv=pass; d=google.com; s=arc-20160816; b=uRafw0GJoBldR9Pyzi9BQFWwcOggU+34rGfRZUIGWbZWp/WLtkGnDiD2DvOCe4F+e9 oWvsUspaBX0JUXhN4FBESc8oBnpbzpZaucJ0h44BTMP0fXHcImk3Xhw6sL7HRXRef7RE 1zOpoMlOXU3ttzxCSr9ZqWmLNt5p8bpHEMhJHZE/ZAF1yW6SAcNIGppXDHyir+9CDTRN SMn/nYY6mPhVYPnyJzVTneVddNf026nVALwYPDFIuO/VvZ6YS0a6GgSjUEUCI81NJGx0 Csh9TY87vf25Ke7a9WiAsaE0FFcTFHxcq6u7GV+aBWBKE6tMIhM9he4CoO9xN6R6uvQi 2tHw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :sender:dkim-signature; bh=Vw5HzUSP019YCBVB6sJncB2VAMcHIKn0f7kIhdN9Esw=; fh=8C1mSPGsTXGseWpZrT2ZV4zMFaGebdeaQdNy4D4Rjnc=; b=pP53r8lHe8fyrEUwX36EmY2/BInVGdq85O2aSH4lRJBe4+39MHTH2l0kSc35SUg4Ng 5rPhhgmFtxVqTXNHXJgXccZEc8g82b1oHot/S4WVRwC4EENwEpA0LHb0RShHi5izBX9w Nf1KbMKQVQoFFA4Kap2kpRa+Yr64L+bnLAzCARramQoC3OKFyrP6AE8VPmnWLXUk6nt8 81ynlSmws2F7thgXAaHqHRicB8dMy0Qz5ivEBWIHBECR3EILrzaMQNB88tofSNpTJlPo Hn0GpUbR5+SDsPhQTvhN+o+wVtgcydL8Q/8iq9Mjw1TLGUlt6vGFYD7784kucF8Tv0xw yv5A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LY23QUHX; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-199251-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199251-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-794f32a5547si833727585a.560.2024.06.03.06.50.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 06:50:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199251-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LY23QUHX; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-199251-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199251-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 1DB091C21A2F for ; Mon, 3 Jun 2024 13:50:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0353B12E1C6; Mon, 3 Jun 2024 13:50:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="LY23QUHX" Received: from mail-pg1-f179.google.com (mail-pg1-f179.google.com [209.85.215.179]) (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 63ADF1E4A2; Mon, 3 Jun 2024 13:50:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717422634; cv=none; b=MHwtZ62vtkinJF65iqPj70Apx9xmBHG4PDsummOgQNBCrXS7OkYGlEAVLofR2WtWljcGaPTN9/GOr00gXba5H7QENi4/xkDEhRRvFcdlRjxz5RxRSm0kfCl1MlhSrh1v/pL8/cmg4GJz4hMyAmzyUCRHSYZGPqPo9/hzOnWhkA4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717422634; c=relaxed/simple; bh=LCJNSFqEq3dz62hlfokIOnLsynVSe7kHYefXH0ET6cg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=E1NtxO7f/uWx27EeqORWlZN45ho5UIl4yl3Pui16SC0UTXnr7oivjfFpvvwWrlEAEIYQ5PvPhqUfQFjTR+6wa1Gb0R9kDeoV8kmTS+tT4kVymCCntQ1HJnmnwfgu5qSBtnAGsg0ykA80bL0FOoLtRyi+szzP/r5wwCxolBb7lqo= 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=LY23QUHX; arc=none smtp.client-ip=209.85.215.179 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-pg1-f179.google.com with SMTP id 41be03b00d2f7-6818e31e5baso3506580a12.1; Mon, 03 Jun 2024 06:50:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717422631; x=1718027431; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:sender:from:to:cc:subject:date:message-id:reply-to; bh=Vw5HzUSP019YCBVB6sJncB2VAMcHIKn0f7kIhdN9Esw=; b=LY23QUHXDhnM4sRn9ocmFq9GID66c4Mfv4Zoc0QZ2tYbjlCEkd48E7nOZw049RdvIo iG+ugYtBXsCwLBXuLhYXKU0w7Ge8+WSYhmHXo9CM6imQVKMooYM46ncbKpcY4xmJCsB9 +OiVEYpCvOTEZzMbkRKD3mW94uDkrmTvLOC5FRfrXDLOdydBFxpjddIqPNHpF6aOkxAe bRfLz+5d+KYwS1drqLQ8KE8SDlvBG/e0xmE7QPY0+p+VX/nw3hxWdotlKq6izIlIfI6m wM42TrdrhhHeHBBRIxWJS6YW8bnXiMIP1Y7iQdJewaIr4y04i+YwTd7ppiuVN4i/Pxe+ K7jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717422631; x=1718027431; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Vw5HzUSP019YCBVB6sJncB2VAMcHIKn0f7kIhdN9Esw=; b=tKagfsWJQKqOQGsFczXH1BcSaHZTQS2M1oOPxzvbr8OwCLtqhDBVvBPbtwtHO62IgA 8GUob9SyZC/TbQBbj8Noc05A3rHPnnezBo1b4xlKQ14sd0BX2IVYrEUS02JJeY6SlpTr 78pTrcwSJoJHIUQAyt88+OR5XjJQSeDJV5QaBHs42rajsyNn64bbettV6jYRaywYgYrD 2u7NVQSLk0WgPve9FQZTlucJvkLZ1pRlEs68VRkfl1IOEgTBy+zSNDhnAy0PNUVELgJn GojDN7fGk/IKgCpx6REqaW5Rp4A+rk8HW7pEOltmyH4t0nhgCRTmKrMvWMTcXQ8BCd0t QKew== X-Forwarded-Encrypted: i=1; AJvYcCWT/O9tUuDq1ofK68Pn5CrXM90j6OC/kPAc/mNfIw0+7P+2XDRx+qsbknZxtqEhfqvPbksIPpNM6Mc+ZGXQJiQwk7WQY6aBoMMiavinx1JONM0Ayt7haqKdkdvZhpIi4byJ+3crAc2+tsc= X-Gm-Message-State: AOJu0Yx8nkYV11z8dhnPACJ7HmzFIoJxbzNMmvZBZhnzYYCwivsBWVbt IAqJQlY/pg5xgVDYz7HFBfmROw/0BQ8PDNFPgwvv3FRtN7AHC+QT X-Received: by 2002:a05:6a20:7284:b0:1b2:1de2:7dfa with SMTP id adf61e73a8af0-1b26f1b5be1mr10914111637.22.1717422631415; Mon, 03 Jun 2024 06:50:31 -0700 (PDT) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f63232ddabsm64701325ad.28.2024.06.03.06.50.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 Jun 2024 06:50:30 -0700 (PDT) Sender: Guenter Roeck Message-ID: Date: Mon, 3 Jun 2024 06:50:28 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFT v3 3/4] hwmon: (spd5118) Add suspend/resume support To: Stephen Horvath , linux-hwmon@vger.kernel.org Cc: devicetree@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-kernel@vger.kernel.org, Armin Wolf , =?UTF-8?Q?Thomas_Wei=C3=9Fschuh?= , =?UTF-8?Q?Ren=C3=A9_Rebe?= , Wolfram Sang References: <20240531230556.1409532-1-linux@roeck-us.net> <20240531230556.1409532-4-linux@roeck-us.net> Content-Language: en-US From: Guenter Roeck Autocrypt: addr=linux@roeck-us.net; keydata= xsFNBE6H1WcBEACu6jIcw5kZ5dGeJ7E7B2uweQR/4FGxH10/H1O1+ApmcQ9i87XdZQiB9cpN RYHA7RCEK2dh6dDccykQk3bC90xXMPg+O3R+C/SkwcnUak1UZaeK/SwQbq/t0tkMzYDRxfJ7 nyFiKxUehbNF3r9qlJgPqONwX5vJy4/GvDHdddSCxV41P/ejsZ8PykxyJs98UWhF54tGRWFl 7i1xvaDB9lN5WTLRKSO7wICuLiSz5WZHXMkyF4d+/O5ll7yz/o/JxK5vO/sduYDIlFTvBZDh gzaEtNf5tQjsjG4io8E0Yq0ViobLkS2RTNZT8ICq/Jmvl0SpbHRvYwa2DhNsK0YjHFQBB0FX IdhdUEzNefcNcYvqigJpdICoP2e4yJSyflHFO4dr0OrdnGLe1Zi/8Xo/2+M1dSSEt196rXaC kwu2KgIgmkRBb3cp2vIBBIIowU8W3qC1+w+RdMUrZxKGWJ3juwcgveJlzMpMZNyM1jobSXZ0 VHGMNJ3MwXlrEFPXaYJgibcg6brM6wGfX/LBvc/haWw4yO24lT5eitm4UBdIy9pKkKmHHh7s jfZJkB5fWKVdoCv/omy6UyH6ykLOPFugl+hVL2Prf8xrXuZe1CMS7ID9Lc8FaL1ROIN/W8Vk BIsJMaWOhks//7d92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5DRnBk WkRwrSuCn7UG+qVWZeKEsFKFOkynOs3pVbcbq1pxbhk3TRWCGRU5JolI4ohy/7JV1TVbjiDI HP/aVnm6NC8of26P40Pg8EdAhajZnHHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 6/3/24 05:31, Stephen Horvath wrote: > Hi, > > On 1/6/24 09:05, Guenter Roeck wrote: >> Add suspend/resume support to ensure that limit and configuration >> registers are updated and synchronized after a suspend/resume cycle. >> >> Cc: Armin Wolf >> Signed-off-by: Guenter Roeck >> --- >> v3: No change >> >> v2: New patch >> >> RFT: I tested the patch through a suspend/resume cycle, and it seems >>       to work, but I am not sure if that had any effect because, >>       after all, the memory is still active during suspend/resume. >>       I was unable to test a hibernation cycle with my system. >> > > For me, the driver just reports 0°C after suspend/resume, but works fine beforehand, tested on both my desktop and laptop, with kernel 6.9.3 and 6.10.0-rc2 (on the laptop only). > > Hibernation does seem to work fine though (at least on 6.9.3). > Thanks a lot for the report. I can confirm that this happens if the enable attribute was not touched before the suspend/resume cycle. I'll send another version with the fix. Guenter