Patch "hwmon: (pmbus_core) Allow to hook PMBUS_SMBALERT_MASK" has been added to the 6.6-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    hwmon: (pmbus_core) Allow to hook PMBUS_SMBALERT_MASK

to the 6.6-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-allow-to-hook-pmbus_smbalert_mask.patch
and it can be found in the queue-6.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 6a1c78b6340c5d67fbd8cdbbab3e31b44f1cd2dc
Author: Patrick Rudolph <patrick.rudolph@xxxxxxxxxxxxx>
Date:   Tue Jan 30 20:59:03 2024 +0530

    hwmon: (pmbus_core) Allow to hook PMBUS_SMBALERT_MASK
    
    [ Upstream commit 9c6df63a66c1fdf99d6e1ad278d140080c724120 ]
    
    Use _pmbus_write_word_data to allow intercepting writes to
    PMBUS_SMBALERT_MASK in the custom chip specific code.
    
    This is required for MP2971/MP2973 which doesn't follow the
    PMBUS specification for PMBUS_SMBALERT_MASK.
    
    Signed-off-by: Patrick Rudolph <patrick.rudolph@xxxxxxxxxxxxx>
    Signed-off-by: Naresh Solanki <naresh.solanki@xxxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20240130152903.3651341-1-naresh.solanki@xxxxxxxxxxxxx
    Signed-off-by: Guenter Roeck <linux@xxxxxxxxxxxx>
    Stable-dep-of: 509c3a362675 ("hwmon: (pmbus/core) clear faults after setting smbalert mask")
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/hwmon/pmbus/pmbus_core.c b/drivers/hwmon/pmbus/pmbus_core.c
index 728c07c42651c..e592446b26653 100644
--- a/drivers/hwmon/pmbus/pmbus_core.c
+++ b/drivers/hwmon/pmbus/pmbus_core.c
@@ -3199,7 +3199,7 @@ static int pmbus_regulator_notify(struct pmbus_data *data, int page, int event)
 
 static int pmbus_write_smbalert_mask(struct i2c_client *client, u8 page, u8 reg, u8 val)
 {
-	return pmbus_write_word_data(client, page, PMBUS_SMBALERT_MASK, reg | (val << 8));
+	return _pmbus_write_word_data(client, page, PMBUS_SMBALERT_MASK, reg | (val << 8));
 }
 
 static irqreturn_t pmbus_fault_handler(int irq, void *pdata)




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux