Skip to content

Conversation

@zstas
Copy link

@zstas zstas commented Dec 15, 2025

intoduce taoyao battery that has an additional property between BATT_CHG_CTRL_LIM_MAX and BATT_TEMP and add a hack to adjust properties in runtime to match the battery's properties values

intoduce taoyao battery that has an additional property between
BATT_CHG_CTRL_LIM_MAX and BATT_TEMP and add a hack to adjust properties
in runtime to match the battery's properties values

Signed-off-by: Stanislav Zaikin <zstaseg@gmail.com>
@zstas
Copy link
Author

zstas commented Dec 15, 2025

Hello Luca,

this is a weird one. unfortunately, xiaomi likes to come up with non-standard things. and they introduces an additional property for a battery[0] in their downstream driver. I tried to apply a patch that is super minimal in terms of LOC.

right now this is just 1 patch not splitted into several different pieces because I wanted to hear your opinion on other potential ways to handle this particular quirk.

PS I also added you to my fork, so you should be able to force-push to branches in my repo
PPS w/o this patch the battery behaves super weird and gnome-mobile just freezes/stucks

[0] - https://github.com/MiCode/Xiaomi_Kernel_OpenSource/blob/taoyao-s-oss/drivers/power/supply/qti_battery_charger.c#L126

@z3ntu
Copy link
Member

z3ntu commented Dec 19, 2025

Hi, could you please send your patch upstream to the mailing lists? I would like to know what the maintainers will say about this approach or if they have an alternative proposal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants