diff options
| author | Tony Lindgren <tony@atomide.com> | 2012-11-09 14:58:01 -0800 | 
|---|---|---|
| committer | Tony Lindgren <tony@atomide.com> | 2012-11-09 14:58:01 -0800 | 
| commit | edf8dde393f879fc2d8c22d4bc01ff8d37b80e1a (patch) | |
| tree | 61425adc8b2059a9c12a3ce66ba7361fea1b0bb3 /drivers/usb/host/xhci-ring.c | |
| parent | 6ba54ab4a49bbad736b0254aa6bdf0cb83013815 (diff) | |
| parent | 3d70f8c617a436c7146ecb81df2265b4626dfe89 (diff) | |
| download | olio-linux-3.10-edf8dde393f879fc2d8c22d4bc01ff8d37b80e1a.tar.xz olio-linux-3.10-edf8dde393f879fc2d8c22d4bc01ff8d37b80e1a.zip  | |
Merge branch 'linus' into omap-for-v3.8/cleanup-headers-prepare-multiplatform-v3
Diffstat (limited to 'drivers/usb/host/xhci-ring.c')
| -rw-r--r-- | drivers/usb/host/xhci-ring.c | 11 | 
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c index c6ebb176dc4..4e1a8946b8d 100644 --- a/drivers/usb/host/xhci-ring.c +++ b/drivers/usb/host/xhci-ring.c @@ -1228,6 +1228,17 @@ static void xhci_cmd_to_noop(struct xhci_hcd *xhci, struct xhci_cd *cur_cd)  	cur_seg = find_trb_seg(xhci->cmd_ring->first_seg,  			xhci->cmd_ring->dequeue, &cycle_state); +	if (!cur_seg) { +		xhci_warn(xhci, "Command ring mismatch, dequeue = %p %llx (dma)\n", +				xhci->cmd_ring->dequeue, +				(unsigned long long) +				xhci_trb_virt_to_dma(xhci->cmd_ring->deq_seg, +					xhci->cmd_ring->dequeue)); +		xhci_debug_ring(xhci, xhci->cmd_ring); +		xhci_dbg_ring_ptrs(xhci, xhci->cmd_ring); +		return; +	} +  	/* find the command trb matched by cd from command ring */  	for (cmd_trb = xhci->cmd_ring->dequeue;  			cmd_trb != xhci->cmd_ring->enqueue;  |