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 5614B5158AE; Wed, 30 Sep 2026 18:18:25 +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=1790792306; cv=none; b=hBGR14KowQvZGquBlKLYB6c2043/Y4sy9x3uDxL7ItsdfqBgzl6hQdxgyf5AFHbiIgKSsbyyx1IK+3BG+AJGwHLxS/036TD0/wUnkaqy2B8W5cbtZQ3HgDWmZ+g+vznckK9xSgivZNEddh4ziJbc742LX6c7ys8myFvTjLDuDhg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790792306; c=relaxed/simple; bh=xMcQU4ckBuXrPbNcRdqPiVY6eDbpS/8mG3GdgZhBDro=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FP70L2WukvmnhKlnRwnQov78NQr+fNmWGWBZ+vqopg71zXAlSDXI+zKqv/0v3jeXqHZgFRcjNPYXqcJYyWdivW3Opyf/MZjLACr2T/AePnAOzTKDlifxldOM1StkiV6Q5lQABO24q7qcSPG/8DheizzhmhARmsR/RGMPCazCkoE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Nuz5CKQP; 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="Nuz5CKQP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AFCC11F000FF; Wed, 30 Sep 2026 18:18:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790792305; bh=RH+6HedBIlRfWX6bPBNNGlztJ1AoxbFmJUXJxFi5Buo=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Nuz5CKQPTB/iljnX2NukpEhdIps0Da2n2/+AJ/3vxEENJfwbpeNwEgWobvMoYL7Bt roJQaJ+8BE+8BW6uynkfW5TSuRJ3wbAz0RYfKmW3ArkQC/5Z0DXJfJJJUBKjtLscv0 eHePLMalKW5JlTv+MbqzqtOB4uCVUWC/ZuBFUYnM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Sanman Pradhan , Guenter Roeck Subject: [PATCH 5.15 563/752] hwmon: (pmbus/tps53679) Fix TPS53676 phase page decoding Date: Wed, 30 Sep 2026 17:27:13 +0200 Message-ID: <20260930152410.420968762@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260930152358.131179731@linuxfoundation.org> References: <20260930152358.131179731@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 5.15-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++;