Commits

Jun Li committed 2ae3845821d
MLK-17108-2 staging: typec: support dead battery charging If the vbus is aready on and remote cc state is Rp while typec init, we think it's a dead battery case, this needs the PD session already setup by bootloader, so kernel can negotiate a new power session by soft reset, this patch use the exsiting flag vbus_never_low as boot from dead battery flag, but update the condition of setting it: not only check vbus, also the cc status to make sure remote is a power source, if yes, bypass the vbus sink disable. If the vbus is from local, we will still disable vbus charge so original code intention is kept. Acked-by: Peter Chen <peter.chen@nxp.com> Signed-off-by: Li Jun <jun.li@nxp.com> (cherry picked from commit ae26359518a0d224aca1f047ba17bb27a920da86)