This improves device detection after a reboot with the Wavlink UMD05 Pro
USB-C docking station (Rev. E).
Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
Fall back to the default CHARGER_INPUT_CURRENT in case usbpd
communication failed and we could not determine the actual charger
power.
Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
V540TU is hitting overcurrent protection with Wavlink UMD05 Pro 60W
dock / power supply while booted into Windows. Reduce the input power
again to make sure we don't cross over the OCP threshold.
Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
This restores results in similar behabior to v0.9.0 where it takes a
much longer time for the fans to spin up, resulting in a quieter laptop
during bursty CPU loads.
Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
This prevents suddenly removing power from the PD controller, which does
not like such events if a USB-C device is connected. When that happens,
the PD controller may glitch, causing
https://github.com/Dasharo/dasharo-issues/issues/1505
To avoid this, simply keep the USB power plane on while the system is on
AC power. This has the side effect of enabling Always On USB always
enabled when on AC power, but does not affect the function while on
battery power only.
Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
As noted in issue https://github.com/Dasharo/dasharo-issues/issues/1505,
the PDC may sometimes get into a weird mode from which it can only
recover by issuing a cold reset. Add a watchdog that monitors the PDC
operational mode and kicks it if it has been in an unknown mode for more
than 1 second.
Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
Add support for the S4 power state, and handle it properly, which in
contrast to S5, does not power off the platform. In this state, more
wake sources are available, like rtcwake.
Make sure the power LED is off while in S4, same as in S5.
Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
This reverts commit 7cb1739ce2.
It was not polling that was causing the GPU to throttle, there was
correlation, but not causation
Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
Psys gain determines microamps per watt on the analog Psys signal. It
needs to be programmed correctly depending on Rpsys resistor impedance
and the desired PsysPmax. Therefore program it correctly as per
schematics, page B-40.
Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>