Merge 4.8-rc6 into usb-next
We want the USB fixes in here as well. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
@@ -249,7 +249,9 @@ static int dwc3_pci_runtime_resume(struct device *dev)
|
||||
|
||||
return pm_runtime_get(&dwc3->dev);
|
||||
}
|
||||
#endif /* CONFIG_PM */
|
||||
|
||||
#ifdef CONFIG_PM_SLEEP
|
||||
static int dwc3_pci_pm_dummy(struct device *dev)
|
||||
{
|
||||
/*
|
||||
@@ -262,7 +264,7 @@ static int dwc3_pci_pm_dummy(struct device *dev)
|
||||
*/
|
||||
return 0;
|
||||
}
|
||||
#endif /* CONFIG_PM */
|
||||
#endif /* CONFIG_PM_SLEEP */
|
||||
|
||||
static struct dev_pm_ops dwc3_pci_dev_pm_ops = {
|
||||
SET_SYSTEM_SLEEP_PM_OPS(dwc3_pci_pm_dummy, dwc3_pci_pm_dummy)
|
||||
|
@@ -884,9 +884,12 @@ static u32 dwc3_calc_trbs_left(struct dwc3_ep *dep)
|
||||
return DWC3_TRB_NUM - 1;
|
||||
}
|
||||
|
||||
trbs_left = dep->trb_dequeue - dep->trb_enqueue - 1;
|
||||
trbs_left = dep->trb_dequeue - dep->trb_enqueue;
|
||||
trbs_left &= (DWC3_TRB_NUM - 1);
|
||||
|
||||
if (dep->trb_dequeue < dep->trb_enqueue)
|
||||
trbs_left--;
|
||||
|
||||
return trbs_left;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user