5.17 only negotiates 500mA with PD
With 5.17 when plugging the charger after boot, it only negotiates
tail -n+0 /sys/class/power_supply/*/uevent
POWER_SUPPLY_USB_TYPE=C [PD] POWER_SUPPLY_ONLINE=1 POWER_SUPPLY_PRESENT=1 POWER_SUPPLY_CURRENT_MAX=500000 POWER_SUPPLY_VOLTAGE_MAX=5000000
Powering down and waiting 15 seconds before booting again and then connecting the charger has no effect.
sudo cat /sys/kernel/debug/tracing/trace
Which according to Angus is odd.
A workaround was to connect the charger with the phone powered down.
Reverting to 5.16 solved the issue. And now the device does 3000mA when connecting the charger after boot.
==> /sys/class/power_supply/tps6598x-source-psy-0-003f/uevent <== POWER_SUPPLY_NAME=tps6598x-source-psy-0-003f POWER_SUPPLY_TYPE=USB POWER_SUPPLY_USB_TYPE=C [PD] POWER_SUPPLY_ONLINE=1 POWER_SUPPLY_PRESENT=1 POWER_SUPPLY_CURRENT_MAX=3000000 POWER_SUPPLY_VOLTAGE_MAX=5000000 purism@pureos:~$ uname -a Linux pureos 5.16.0-1-librem5 #1 SMP PREEMPT Sat Feb 26 21:25:54 UTC 2022 aarch64 GNU/Linux