Machine fails to suspend when charger is attached
When attempting to suspend machine while charger (both barrel and USB-C) is connected, the machine fails to suspend.
Successful suspend dmesg:
PM: suspend entry (s2idle)
Filesystems sync: 0.040 seconds
dwmmc_rockchip fe310000.mmc: pre_suspend failed for non-removable host: -38
Freezing user space processes ... (elapsed 0.004 seconds) done.
OOM killer disabled.
Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
printk: Suspending console(s) (use no_console_suspend to debug)
Failing suspend dmesg when charger is attached:
PM: suspend entry (s2idle)
Filesystems sync: 0.101 seconds
dwmmc_rockchip fe310000.mmc: pre_suspend failed for non-removable host: -38
Freezing user space processes ... (elapsed 0.005 seconds) done.
OOM killer disabled.
Freezing remaining freezable tasks ... (elapsed 0.002 seconds) done.
printk: Suspending console(s) (use no_console_suspend to debug)
PM: dpm_run_callback(): pm_runtime_force_suspend+0x0/0xd8 returns -16
PM: Device ff9a0000.gpu failed to suspend: error -16
PM: Some devices failed to suspend, or early wake event detected
OOM killer enabled.
Restarting tasks ... done.
PM: suspend exit