mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-07 01:30:13 +00:00
In the old implementation, function vm_get_suspend_mode is used as the interface to check whether the UOS is in the S3, That is not saft way. This patch use Port Link State (PLS) to substitute the old logic. According to xHCI spec 5.4.8, the PLS should be U3 during the UOS is in the S3 state. Tracked-On: #1893 Signed-off-by: Xiaoguang Wu <xiaoguang.wu@intel.com> Reviewed-by: Liang Yang <liang3.yang@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>