mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-30 15:00:01 +00:00
DM USB: xHCI: refine the PLC bit emulation logic during S3
According to xHCI 5.4.8, the Port Link State Change (PLC) bit should not be set to 1 during suspend process. This patch is used to fix it. Tracked-On: #1893 Signed-off-by: Xiaoguang Wu <xiaoguang.wu@intel.com>
This commit is contained in:
parent
c9d23d2ad7
commit
467ea2129e
@ -1262,8 +1262,9 @@ pci_xhci_portregs_write(struct pci_xhci_vdev *xdev,
|
||||
case 3: /* U3 */
|
||||
if (oldpls != newpls) {
|
||||
p->portsc &= ~XHCI_PS_PLS_MASK;
|
||||
p->portsc |= XHCI_PS_PLS_SET(newpls) |
|
||||
XHCI_PS_PLC;
|
||||
p->portsc |= XHCI_PS_PLS_SET(newpls);
|
||||
if (newpls == 0)
|
||||
p->portsc |= XHCI_PS_PLC;
|
||||
|
||||
if (oldpls != 0 && newpls == 0) {
|
||||
pci_xhci_set_evtrb(&evtrb, port,
|
||||
|
Loading…
Reference in New Issue
Block a user