]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
power: supply: qcom_smbx: allow disabling charging
authorCasey Connolly <casey.connolly@linaro.org>
Sun, 15 Mar 2026 19:40:16 +0000 (20:40 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Thu, 2 Apr 2026 22:40:54 +0000 (00:40 +0200)
commit98d68b74ebb9d5f145960ff7d96ce8e7a39fb965
treec6e8149f5fb973d2e6c66c1e51f66f63e42e6563
parent0629c33fe1873a48e1e06078409de76c5a159fdb
power: supply: qcom_smbx: allow disabling charging

Hook up USBIN_CMD_IL so that writing "0" to the status register will
disable charging, this is useful to let users limit charging
automatically.

Signed-off-by: Casey Connolly <casey.connolly@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: David Heidelberg <david@ixit.cz>
Link: https://patch.msgid.link/20260315-smb2-cherry-pick-v1-1-b2710e470490@ixit.cz
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/qcom_smbx.c