diff mbox

[v3,1/3] xhci: Log ep-index and comp-code on TRB DMA ptr not part of current TD

Message ID 1405341351-32679-1-git-send-email-hdegoede@redhat.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Hans de Goede July 14, 2014, 12:35 p.m. UTC
These errors should never happen, so lets add some extra info when they happen
to make figuring out what is going on easier.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 drivers/usb/host/xhci-ring.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Comments

Hans de Goede July 14, 2014, 12:36 p.m. UTC | #1
I did not intend to send this patch to you all, sorry, please ignore.

On 07/14/2014 02:35 PM, Hans de Goede wrote:
> These errors should never happen, so lets add some extra info when they happen
> to make figuring out what is going on easier.
> 
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
> ---
>  drivers/usb/host/xhci-ring.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c
> index 749fc68..5542dfe 100644
> --- a/drivers/usb/host/xhci-ring.c
> +++ b/drivers/usb/host/xhci-ring.c
> @@ -2504,7 +2504,9 @@ static int handle_tx_event(struct xhci_hcd *xhci,
>  				/* HC is busted, give up! */
>  				xhci_err(xhci,
>  					"ERROR Transfer event TRB DMA ptr not "
> -					"part of current TD\n");
> +					"part of current TD ep_index %d "
> +					"comp_code %u\n", ep_index,
> +					trb_comp_code);
>  				return -ESHUTDOWN;
>  			}
>  
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c
index 749fc68..5542dfe 100644
--- a/drivers/usb/host/xhci-ring.c
+++ b/drivers/usb/host/xhci-ring.c
@@ -2504,7 +2504,9 @@  static int handle_tx_event(struct xhci_hcd *xhci,
 				/* HC is busted, give up! */
 				xhci_err(xhci,
 					"ERROR Transfer event TRB DMA ptr not "
-					"part of current TD\n");
+					"part of current TD ep_index %d "
+					"comp_code %u\n", ep_index,
+					trb_comp_code);
 				return -ESHUTDOWN;
 			}