From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796388229; b=EnqA5ztnEwTMKwcp2P/9KKgLY1QCZFtnja8ibFX6kAwWk/NoHt0Brm5EG0hQgBUrR8H8 F4T+eVZjJa6bJFG+PsM2VoVzhi1kh6lnIKO+4n8VAntPrXq3U9t7UIlYrhmuMtxGOf4rs A8rYphyqKEZUhL1fZAHaJ2m0eI6mEIpapkWehr8koIMB6YOLxEKlDsYILaxu6l5qBmm7/ rY6t8ZQrChY1hrSy7tMbBsdoVf/N6eAx/aDx2L3kSlbjwwtbzh2Q558bgiKqYB9b2tuEQ PERGQ6Z2BBL1e4CIMvterAEBNPceJy6cIjSXb3Uwe3cnD1iaQpJDC7X5KkoE8v6LLVg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796388229; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=jHVjYYip/Lnovq0zPXYzGmQMstR4jV94XUDY56lO3w0=; b=patLJ6gyTdXsSaqRJ+X0I1lu4BGJ8frN4XqpV/yRS/ViOs8wZAvr2tXI2P3Vb4QpiiQl cZTgQdo/3XoxhvqURJKCjVaPbfQKJCBZ/WKguQrDvpzsiPgEpbLdwxC0w3Kqifls/VWkI Mj+vCyjE0eiCUcg/bLZ5ga/EgnK3h4HE8U0AhrQi287zfyMRM7/kqJrmDgM4SNm5PsKBj Qr+WzfAyKCIlpRm4X8AMQsCLQB66VLapjXnAezF16WoICCONs63m4qzJPpa4HvK8z036m l8omz7qc57nf2mKWpviBJvEvxCJpiZSY66n/7/O/Sf/i0amYFZDDTRjJanjB8jWPVjQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=hd56fTvS; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C1D56606A322; Fri, 4 Dec 2026 12:43:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=hd56fTvS Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B4EF1F000C2; Fri, 4 Dec 2026 12:43:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796388229; bh=jHVjYYip/Lnovq0zPXYzGmQMstR4jV94XUDY56lO3w0=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=hd56fTvSCS4m8Y5vqevtgeOHxuEhSO7SvE2hdzYuSNrtnWYyYOBc/666wpaFGP7+8 oUXbotQT6r65eOdi6uJeVGAtW35koO1VtY8lWk5BcYG2dZrPgQP2yUSlrdqEcqaHUY g9WmOGQwMYbd5Iip0ax1RWrG/yzi8ypzZFlKpV94= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Stanislav Aleksandrov , Guenter Roeck Subject: [PATCH 6.1 0532/1059] hwmon: (max31760) Leave standby mode at probe Date: Fri, 4 Dec 2026 19:01:03 +0900 Message-ID: <20261204100657.995292594@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100643.980430235@linuxfoundation.org> References: <20261204100643.980430235@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Stanislav Aleksandrov commit 95bddc5252a4c0a2ed9d62e7e53a3461265d9603 upstream. The driver never clears the standby bit (CR2_STBY) during probe. While max31760_resume() clears this bit on resume, probe only configured CR2_ALERTS. If the chip was left in standby (for example, by boot firmware or a previously running OS before a warm reboot), it remains in standby: temperature sensing, fan speed counting, and PWM output are halted. This occurs on the Samsung Galaxy XR, where the bootloader places the chip in standby during boot. Clear CR2_STBY alongside setting CR2_ALERTS in probe. Fixes: 38b04ad02d0d ("drivers: hwmon: Add max31760 fan speed controller driver") Cc: stable@vger.kernel.org Signed-off-by: Stanislav Aleksandrov Link: https://patch.msgid.link/20261108-max31760-fixes-v1-2-a61450463059@gmail.com Signed-off-by: Guenter Roeck Signed-off-by: Greg Kroah-Hartman --- drivers/hwmon/max31760.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/hwmon/max31760.c b/drivers/hwmon/max31760.c index c16066f72c86..ff55f7fc0f1b 100644 --- a/drivers/hwmon/max31760.c +++ b/drivers/hwmon/max31760.c @@ -533,8 +533,9 @@ static int max31760_probe(struct i2c_client *client) dev_set_drvdata(dev, state); - /* Set alert output to comparator mode */ - ret = regmap_set_bits(state->regmap, REG_CR2, CR2_ALERTS); + /* Leave standby mode, set alert output to comparator mode */ + ret = regmap_update_bits(state->regmap, REG_CR2, CR2_STBY | CR2_ALERTS, + CR2_ALERTS); if (ret) return dev_err_probe(dev, ret, "cannot write register\n"); -- 2.56.1