[PATCH 0/2] power: supply: qcom_battmgr: Apply the USB host current limit early

From: Venkat Yadlapati via B4 Relay

Date: Sun Nov 15 2026 - 15:22:31 EST


On the Motorola Signature the battery manager firmware keeps the input
current limit of a USB host port at the 100 mA allowed before
enumeration, so the phone discharges while it is connected to a
computer. The dwc3 controller reports the current the host grants
through usb-psy-name, and commit be5e7367bceb made the limit writable.

The controller reports it before the battery manager service is up
though, so the first patch keeps the limit and applies it once the
service comes up. The second one applies it only to SDP, CDP and USB PD
ports, like the downstream driver, so a dedicated charger is never
throttled to what the controller reports.

Tested on a Motorola Signature: connected to a computer it charges after
enumeration instead of discharging.

I used an LLM (Claude) to help write these patches and their commit
messages. I reviewed all of them and tested the result on the device.

---
Venkat Yadlapati (2):
power: supply: qcom_battmgr: Apply a USB input current limit set early
power: supply: qcom_battmgr: Don't limit the input current of chargers

drivers/power/supply/qcom_battmgr.c | 61 ++++++++++++++++++++++++++++++++-----
1 file changed, 53 insertions(+), 8 deletions(-)
---
base-commit: 7071d4750856abbc68dfe431acc58a1d45dd42e8
change-id: 20261116-vantage-battmgr-945e626783c4

Best regards,
--
Venkat Yadlapati <venkat.yadlapati@xxxxxxxxx>