File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -764,6 +764,7 @@ struct dwc2_hsotg {
764
764
u16 frame_usecs [8 ];
765
765
u16 frame_number ;
766
766
u16 periodic_qh_count ;
767
+ bool bus_suspended ;
767
768
768
769
#ifdef CONFIG_USB_DWC2_TRACK_MISSED_SOFS
769
770
#define FRAME_NUM_ARRAY_SIZE 1000
Original file line number Diff line number Diff line change @@ -1425,6 +1425,7 @@ static void dwc2_wakeup_detected(unsigned long data)
1425
1425
dev_dbg (hsotg -> dev , "Clear Resume: HPRT0=%0x\n" ,
1426
1426
dwc2_readl (hsotg -> regs + HPRT0 ));
1427
1427
1428
+ hsotg -> bus_suspended = 0 ;
1428
1429
dwc2_hcd_rem_wakeup (hsotg );
1429
1430
1430
1431
/* Change to L0 state */
@@ -1461,8 +1462,7 @@ static void dwc2_port_suspend(struct dwc2_hsotg *hsotg, u16 windex)
1461
1462
hprt0 |= HPRT0_SUSP ;
1462
1463
dwc2_writel (hprt0 , hsotg -> regs + HPRT0 );
1463
1464
1464
- /* Update lx_state */
1465
- hsotg -> lx_state = DWC2_L2 ;
1465
+ hsotg -> bus_suspended = 1 ;
1466
1466
1467
1467
/* Suspend the Phy Clock */
1468
1468
pcgctl = dwc2_readl (hsotg -> regs + PCGCTL );
@@ -1510,6 +1510,7 @@ static void dwc2_port_resume(struct dwc2_hsotg *hsotg)
1510
1510
hprt0 = dwc2_read_hprt0 (hsotg );
1511
1511
hprt0 &= ~(HPRT0_RES | HPRT0_SUSP );
1512
1512
dwc2_writel (hprt0 , hsotg -> regs + HPRT0 );
1513
+ hsotg -> bus_suspended = 0 ;
1513
1514
spin_unlock_irqrestore (& hsotg -> lock , flags );
1514
1515
}
1515
1516
You can’t perform that action at this time.
0 commit comments