From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (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 22E9D39CCE2 for ; Sun, 19 Jul 2026 14:35:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784471749; cv=none; b=kWDU9FyKVG3OVEh8TO5r05rYgX7mNrs9JMnb5XYcDCFqP9gAQnlgOFU3erKHOIdNJohLPbdnJaG8zy1T2Za9O5bAiPSGzyQhSzgfwOjp+Ax9+/+yTca+89yjiDsmTZekNiyM4ROhU8iSxCA2uNYbw3h9cYDBZj8npA7u5BlWj1w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784471749; c=relaxed/simple; bh=rK2PtXjn3jqhV6HCZZs3u4lbX1egUIpYzYwhCEti/C8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=n1UyWaAHIpOvHFBOthh14ZSppXk3teK4uTQ1lvx8og8/o68KzsmOhecXV1CPRlLAGgYGnlOfV7yfoUs+4JbIw7rh5X48GP9UMBn715cXEOt0OG2YOneDxN7O9HVO8pLdDErsyVemtIcokXI77cwsFNbtnHqdUGSENUVmXawC6Cg= 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=Hjb6vKGm; arc=none smtp.client-ip=209.85.214.178 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Hjb6vKGm" Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-2ce98cb8165so31149175ad.1 for ; Sun, 19 Jul 2026 07:35:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784471747; x=1785076547; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :content-type:mime-version:references:message-id:subject:cc:to:from :date:sender:from:to:cc:subject:date:message-id:reply-to :content-type; bh=HGxQpu6DbEFbZMC8BTbqJAHmxCtesQu+mVg153D593Q=; b=Hjb6vKGmnj3NZnEJQLhO6brSTVo82CyJ+7F4cc0zt1n8Kjkb1ahNgO/c5jn64kWRri Gex+DPzFgujDhf9kHex54XM2w8U+Cc9HhutQCR2NB5yY0tY+IfHUIuHp7t0sBc7gwevX FdLDlvS2N8r3Y1HA0q/4hFnV6U1zltWa/L8IW6DLWvK6V03TXDOiian6YUG9+sHpmAvA 23FB+WIEax/Z2Yr+Lr7TSDDQane8HhWaMDcvJke2deTckcKEuT13mI61P+8BCig9FOm6 smbg2GnvS4KV7v1Xig5ahBiKgAVBgY37SZSg9RgKB8ZCvf64tvdwG3znQ1tymFacX0pM 8HBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784471747; x=1785076547; h=in-reply-to:content-transfer-encoding:content-disposition :content-type:mime-version:references:message-id:subject:cc:to:from :date:sender:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=HGxQpu6DbEFbZMC8BTbqJAHmxCtesQu+mVg153D593Q=; b=suz0DRrbhV9vtwyJrui0H8bk12IruFyi2zseXF8VMdKOpWrxtOTTzsY5arFe/IMHRs VLhShSC2g9ys29XTTietRyqQMku3pkh04cAEOOO039Kl4OWH+KrRwjBl3o78K9Sa677c 44y4xDQVh9hY8Dh+LNFdLHMONo0Mf7cOItdpRaYSjiyYCJu/tv/LCp+fFzDJwlznUsqY fHh2t0Y2v2IXksqTLE7VQvv3t4FTAeMzTyavnFwrF6z1rY/OYZAajtkduKiVtx7sE6xi g0N/8bSNrTEibXAiD61wyZTK91CYuaKy509BZ/ZlIDP18fC8bCxbcRc96UlCuGauvtpu 9MFg== X-Forwarded-Encrypted: i=1; AHgh+Rp54S98mqkw68WKNq6flCrgmj2jmLF8cqgw5wbQxbe+A1RmojQ+LsRNyOnGufcpKs9JjtQLO4V7+ibO8uY=@vger.kernel.org X-Gm-Message-State: AOJu0Ywy462wFJDl0EN3Zj7kBO8M3GmPPRqzn3htTUx51ImqwNIz2u4Q 1NYi9I7zEzNUW/xFyJ5sZSAjAV4CLrwuisCXM5o8AV3+NkLr+IqaNa9f X-Gm-Gg: AfdE7cm35gOTU2vDlTAif/M4ED+nFlx9ZdQ0EnNSF1YGAxPoYOz8kRH/vF+7EErH5Q0 EN/xn07YlO4khla6m0sJXNsMj6PZEpuOBNc+CDYuofGqW+fK6KTueiSLtdiQFlo0IVtYg8PT0wG Nk9ayqWYkdTnKKLNohQMnzj/XRYiqPaYTjoDAJ0eiSrap+ZzCtkKAst3EMeNuqE9BwMm6XgXlcR d1OxGA+2bqoaSo2qN9Ew54TYO/H3zGqo3vhO7kA5eL8iaMAtyvnrfZ5Xk6wFly048PMkbsF9+8R /ixDySJgYSKpCNaqT8J4rrrMMI3QChXHdfK4/HCDv8jgWsMBsGp44MNFOEWrTQOCPdaBEK7tgUa 3OO0I6tHqgkvs0bvxUBpUeK+I7XlDEpy9qdGmStr21OJjp5ahUpf1x9ldqQFa6fHEjbUAPSY5L3 z5FtdjWBBtT/YwD9k= X-Received: by 2002:a17:903:32ce:b0:2bd:2c3a:2a36 with SMTP id d9443c01a7336-2cf1f028edbmr160307485ad.0.1784471747422; Sun, 19 Jul 2026 07:35:47 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:da43:aeff:fecc:bfd5]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2cf344b1353sm41322405ad.19.2026.07.19.07.35.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Jul 2026 07:35:46 -0700 (PDT) Sender: Guenter Roeck Date: Sun, 19 Jul 2026 07:35:45 -0700 From: Guenter Roeck To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: Benson Leung , Sung-Chi Li , Guenter Roeck , chrome-platform@lists.linux.dev, linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] hwmon: (cros_ec) Synchronize EC access from the thermal device callbacks Message-ID: References: <20260711-cros_ec-hwmon-locking-v1-0-cb6d0fdbb2d3@weissschuh.net> <20260711-cros_ec-hwmon-locking-v1-3-cb6d0fdbb2d3@weissschuh.net> 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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20260711-cros_ec-hwmon-locking-v1-3-cb6d0fdbb2d3@weissschuh.net> On Sat, Jul 11, 2026 at 11:59:07AM +0200, Thomas Weißschuh wrote: > To guarantee consistency for the read-modify-write access in > cros_ec_hwmon_cooling_set_cur_state(), locking is necessary. > > Use the existing hwmon device lock to do so. > > Fixes: 5798b62867b4 ("hwmon: (cros_ec) register fans into thermal framework cooling devices") > Signed-off-by: Thomas Weißschuh Applied. Thanks, Guenter