FAILED: patch "[PATCH] hwmon: (pmbus/core) increase number of phases and add new" failed to apply to 5.10-stable tree
Subsystems (2)
[email protected]
maintainerThe patch below does not apply to the 5.10-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-5.10.y
git checkout FETCH_HEAD
git cherry-pick -x 06bd6794b5fd2163880ac3bfe973d4cc61f359f3
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2026092214-quotation-winter-5dc8@gregkh' --subject-prefix 'PATCH 5.10.y' 'HEAD^..'
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 06bd6794b5fd2163880ac3bfe973d4cc61f359f3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nuno=20S=C3=A1?= <[email protected]>
Date: Fri, 11 Sep 2026 14:53:37 +0100
Subject: [PATCH] hwmon: (pmbus/core) increase number of phases and add new
mask
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Increase the number of phases to 16 as a new upcoming device supports such a number.
While at it, add a new mask for controlling the source of the output voltage.
Note (groeck):
This patch was meant to prepare for support of MAX20826 and compatible devices, which support more than 10 phases per page. However, Sashiko reports that the mp2975 driver already supports up to 14 phases, and the mp2856 driver supports up to 12 phases. This already has the potential for out-of-bounds writes when probing the affected chips, making this patch a bug fix.
drivers/hwmon/pmbus/pmbus.h +2 -1
@@ -242,6 +242,7 @@ enum pmbus_regs {/* * OPERATION */ +#define PB_OPERATION_CONTROL_V_SRC GENMASK(5, 4)#define PB_OPERATION_CONTROL_ON BIT(7)/*
@@ -386,7 +387,7 @@ enum pmbus_sensor_classes { };#define PMBUS_PAGES 32/* Per PMBus specification */ -#define PMBUS_PHASES 10/* Maximum number of phases per page */ +#define PMBUS_PHASES 16/* Maximum number of phases per page */ /* Functionality bit mask */ #define PMBUS_HAVE_VIN BIT(0)
Sasha Levin
maintainerPATCH 1/1 hwmon: (pmbus/core) increase number of phases and add new mask
From: Nuno Sá <[email protected]>
[ Upstream commit 06bd6794b5fd2163880ac3bfe973d4cc61f359f3 ]
Increase the number of phases to 16 as a new upcoming device supports such a number.
While at it, add a new mask for controlling the source of the output voltage.
Note (groeck):
This patch was meant to prepare for support of MAX20826 and compatible devices, which support more than 10 phases per page. However, Sashiko reports that the mp2975 driver already supports up to 14 phases, and the mp2856 driver supports up to 12 phases. This already has the potential for out-of-bounds writes when probing the affected chips, making this patch a bug fix.
--- drivers/hwmon/pmbus/pmbus.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/hwmon/pmbus/pmbus.h +2 -1
@@ -241,6 +241,7 @@ enum pmbus_regs {/* * OPERATION */ +#define PB_OPERATION_CONTROL_V_SRC GENMASK(5, 4)#define PB_OPERATION_CONTROL_ON BIT(7)/*
@@ -376,7 +377,7 @@ enum pmbus_sensor_classes { };#define PMBUS_PAGES 32/* Per PMBus specification */ -#define PMBUS_PHASES 8/* Maximum number of phases per page */ +#define PMBUS_PHASES 16/* Maximum number of phases per page */ /* Functionality bit mask */ #define PMBUS_HAVE_VIN BIT(0)
Signature · 1 line
2.53.0