This is a note to let you know that I've just added the patch titled hwmon: (pmbus_core) Fix pmbus_is_enabled() to the 6.4-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: hwmon-pmbus_core-fix-pmbus_is_enabled.patch and it can be found in the queue-6.4 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 55aab08f1856894d7d47d0ee23abbb4bc4854345 Mon Sep 17 00:00:00 2001 From: Patrick Rudolph <patrick.rudolph@xxxxxxxxxxxxx> Date: Tue, 25 Jul 2023 14:54:25 +0200 Subject: hwmon: (pmbus_core) Fix pmbus_is_enabled() From: Patrick Rudolph <patrick.rudolph@xxxxxxxxxxxxx> commit 55aab08f1856894d7d47d0ee23abbb4bc4854345 upstream. Refactor pmbus_is_enabled() to return the status without any additional processing as it is already done in _pmbus_is_enabled(). Fixes: df5f6b6af01c ("hwmon: (pmbus/core) Generalise pmbus get status") Cc: stable@xxxxxxxxxxxxxxx # v6.4 Signed-off-by: Patrick Rudolph <patrick.rudolph@xxxxxxxxxxxxx> Signed-off-by: Naresh Solanki <Naresh.Solanki@xxxxxxxxxxxxx> Link: https://lore.kernel.org/r/20230725125428.3966803-1-Naresh.Solanki@xxxxxxxxxxxxx [groeck: Rephrased commit message] Signed-off-by: Guenter Roeck <linux@xxxxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/hwmon/pmbus/pmbus_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/pmbus/pmbus_core.c b/drivers/hwmon/pmbus/pmbus_core.c index fa06325f5a7c..42fb7286805b 100644 --- a/drivers/hwmon/pmbus/pmbus_core.c +++ b/drivers/hwmon/pmbus/pmbus_core.c @@ -2768,7 +2768,7 @@ static int __maybe_unused pmbus_is_enabled(struct device *dev, u8 page) ret = _pmbus_is_enabled(dev, page); mutex_unlock(&data->update_lock); - return !!(ret & PB_OPERATION_CONTROL_ON); + return ret; } #define to_dev_attr(_dev_attr) \ -- 2.41.0 Patches currently in stable-queue which might be from patrick.rudolph@xxxxxxxxxxxxx are queue-6.4/hwmon-pmbus_core-fix-pmbus_is_enabled.patch queue-6.4/hwmon-pmbus_core-fix-deadlock-in-pmbus_regulator_get_status.patch queue-6.4/hwmon-pmbus_core-fix-null-pointer-dereference.patch