Re: [PATCH v2] power: supply: qcom_battmgr: report the USB type from USB_ADAP_TYPE

From: Konrad Dybcio

Date: Mon Oct 12 2026 - 09:33:50 EST


On 10/12/26 3:00 PM, Joonhoe Kim wrote:
> On SM8350 and SM8550 class firmware the USB power supply reads its
> usb_type from the USB_TYPE property. On a Kaanapali (SM8850) tablet that
> property is 1 (SDP) whatever is plugged in, while USB_ADAP_TYPE reports
> the adapter, using the same numbering as POWER_SUPPLY_USB_TYPE_*:
>
> PC port USB_TYPE 1 USB_ADAP_TYPE 1 (SDP)
> USB-C dock, 5 V PD USB_TYPE 1 USB_ADAP_TYPE 6 (PD)
> 65 W PPS charger USB_TYPE 1 USB_ADAP_TYPE 8 (PD_PPS)
>
> Qualcomm's downstream qti_battery_charger driver also maps
> USB_ADAP_TYPE to POWER_SUPPLY_PROP_USB_TYPE.
>
> Request USB_ADAP_TYPE for POWER_SUPPLY_PROP_USB_TYPE instead.
>
> Tested on a Lenovo Legion Tab Y700 gen 5 (qcom,kaanapali-pmic-glink,
> which uses the SM8550 path). Only tested on this device; the SM8350
> variant shares the property map and was not tested.
>
> Fixes: 29e8142b5623 ("power: supply: Introduce Qualcomm PMIC GLINK power supply")
> Reviewed-by: Kamal Wadhwa <kamal.wadhwa@xxxxxxxxxxxxxxxx>
> Assisted-by: LLM
> Signed-off-by: Joonhoe Kim <26rote@xxxxxxxxx>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx>

Konrad