Skip to content

Commit ed3f245

Browse files
Sarah Sharpgregkh
authored andcommitted
USB: xhci: Don't flush doorbell writes.
To tell the host controller that there are transfers on the endpoint rings, we need to ring the endpoint doorbell. This is a PCI MMIO write, which can be delayed until another register read is queued. The previous code would flush the doorbell write by reading the doorbell register after the write. This may take time, and it's not necessary to force the host controller to know about the transfers right away. Don't flush the doorbell register writes. Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent c21599a commit ed3f245

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

‎drivers/usb/host/xhci-ring.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -337,11 +337,6 @@ static void ring_ep_doorbell(struct xhci_hcd *xhci,
337337
field = xhci_readl(xhci, db_addr) & DB_MASK;
338338
field |= EPI_TO_DB(ep_index) | STREAM_ID_TO_DB(stream_id);
339339
xhci_writel(xhci, field, db_addr);
340-
/* Flush PCI posted writes - FIXME Matthew Wilcox says this
341-
* isn't time-critical and we shouldn't make the CPU wait for
342-
* the flush.
343-
*/
344-
xhci_readl(xhci, db_addr);
345340
}
346341
}
347342

0 commit comments

Comments
 (0)