From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C1EEB3E315C; Wed, 30 Sep 2026 19:29:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790796546; cv=none; b=WOZw1mEXkuVYZIuNqiiNyOerqDgYEf5UwJkamOelmWw7xptwqRnls16/M1JiqPyr2WHRaAZ1Zha2RRQgWJVkm2e8tredW4/1r0n2WIGTHyo9wJ2Dp4SDHkdM7QegFXMgXj9tF8wlLC/iHli36aZKesab3jOdJr3vnOBt+/dLURs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790796546; c=relaxed/simple; bh=y1RUk0LyJ6LMGgbeRnT33LkcaNA5LSv2kYjbRiPcnNE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=oN2xH3ww7qyLux+em9FkbQBMo/dJt8ACm5Pp2xIYcNjOLk/njck8/xviUs4FVYE4a5xTCoeJL7zt6u2lH6AuD14aeJNQheaIqyI5XxfDOnSnho/vnjwW2kzsfBQhqQhfxvrM2xciIlxeFYSoNEx1VgqtKswwnx/+NOzx81+WnZs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0yszgQpD; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="0yszgQpD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 282E01F000FF; Wed, 30 Sep 2026 19:29:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790796544; bh=w0z25/eUiKrZGNhzJpyl9AxO1CMurV8iUwfLKbBdB/A=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=0yszgQpDjQbISbyXDjYiIP2IWaMwQnp5gDhA5yNkICHx+YPqB9KMT1B97Mt+gtG1X IdnyDMcuvh7bcWfaVC3ddvCn3b+Uh0SYBN20TAQ/s6bNAA0E/V392wR5hORDrrkyjU 77pZoqwWmMW6ThjO7mcg1fqUlJ2ZxzLccTTys61w= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Sanman Pradhan , Guenter Roeck Subject: [PATCH 6.6 0906/1193] hwmon: (pmbus/tps53679) Fix TPS53676 phase page decoding Date: Wed, 30 Sep 2026 17:26:30 +0200 Message-ID: <20260930152454.371848223@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260930152434.301151190@linuxfoundation.org> References: <20260930152434.301151190@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Sanman Pradhan commit 1d12fb94ac0975566545871dda100df34df5f845 upstream. tps53676_identify() reads the USER_DATA_03 phase configuration to count the phases assigned to each channel and derive the number of PMBus pages. In each 16-bit phase descriptor the channel (PAGE) is encoded in bit 4 and the firing order in bits 3:0, but the code tested bit 3 (0x08), which is part of the firing-order field. TPS53676 supports up to seven phases, so firing-order bit 3 is never set. As a result the existing test classifies every enabled phase as channel A. On a dual-channel configuration the phases assigned to channel B are therefore miscounted as channel A and page 1 is not exposed. Test the PAGE field (bit 4) instead. Fixes: cb3d37b59012 ("hwmon: (pmbus/tps53679) Add support for TI TPS53676") Cc: stable@vger.kernel.org Signed-off-by: Sanman Pradhan Link: https://patch.msgid.link/20260915164823.160977-2-sanman.pradhan@hpe.com Signed-off-by: Guenter Roeck Signed-off-by: Greg Kroah-Hartman --- drivers/hwmon/pmbus/tps53679.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/hwmon/pmbus/tps53679.c +++ b/drivers/hwmon/pmbus/tps53679.c @@ -168,7 +168,7 @@ static int tps53676_identify(struct i2c_ return -EIO; for (i = 0; i < 2 * TPS53676_MAX_PHASES; i += 2) { if (buf[i + 1] & 0x80) { - if (buf[i] & 0x08) + if (buf[i] & BIT(4)) phases_b++; else phases_a++;