Patch "power: supply: rt5033: Bring back i2c_set_clientdata" has been added to the 6.10-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

    power: supply: rt5033: Bring back i2c_set_clientdata

to the 6.10-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:
     power-supply-rt5033-bring-back-i2c_set_clientdata.patch
and it can be found in the queue-6.10 subdirectory.

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



commit df8ea4860eda6b9d624193269506702028ff9a33
Author: Nikita Travkin <nikita@xxxxxxx>
Date:   Wed Jun 5 18:53:27 2024 +0500

    power: supply: rt5033: Bring back i2c_set_clientdata
    
    [ Upstream commit d3911f1639e67fc7b12aae0efa5a540976d7443b ]
    
    Commit 3a93da231c12 ("power: supply: rt5033: Use devm_power_supply_register() helper")
    reworked the driver to use devm. While at it, the i2c_set_clientdata
    was dropped along with the remove callback. Unfortunately other parts
    of the driver also rely on i2c clientdata so this causes kernel oops.
    
    Bring the call back to fix the driver.
    
    Fixes: 3a93da231c12 ("power: supply: rt5033: Use devm_power_supply_register() helper")
    Tested-by: Raymond Hackley <raymondhackley@xxxxxxxxxxxxxx>
    Signed-off-by: Nikita Travkin <nikita@xxxxxxx>
    Link: https://lore.kernel.org/r/20240605-rt5033-null-clientdata-v1-1-558d710eeb4d@xxxxxxx
    Signed-off-by: Sebastian Reichel <sebastian.reichel@xxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/power/supply/rt5033_battery.c b/drivers/power/supply/rt5033_battery.c
index 32eafe2c00af5..7a27b262fb84a 100644
--- a/drivers/power/supply/rt5033_battery.c
+++ b/drivers/power/supply/rt5033_battery.c
@@ -159,6 +159,7 @@ static int rt5033_battery_probe(struct i2c_client *client)
 		return -EINVAL;
 	}
 
+	i2c_set_clientdata(client, battery);
 	psy_cfg.of_node = client->dev.of_node;
 	psy_cfg.drv_data = battery;
 




[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