USB: xhci: Handle babble errors on transfers.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Wednesday, July 29, 2009 - 12:59 pm

Gitweb:     http://git.kernel.org/linus/4a73143ced467868e92d7914d9f8bf797640927b
Commit:     4a73143ced467868e92d7914d9f8bf797640927b
Parent:     47692d179f7a88794bcd302e53ca7899d7592db9
Author:     Sarah Sharp <sarah.a.sharp@linux.intel.com>
AuthorDate: Mon Jul 27 12:04:32 2009 -0700
Committer:  Greg Kroah-Hartman <gregkh@suse.de>
CommitDate: Tue Jul 28 14:31:12 2009 -0700

    USB: xhci: Handle babble errors on transfers.
    
    Pass back a babble error when this error code is seen in the transfer event TRB.
    
    Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
 drivers/usb/host/xhci-ring.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c
index 1fc0dec..0903e98 100644
--- a/drivers/usb/host/xhci-ring.c
+++ b/drivers/usb/host/xhci-ring.c
@@ -876,6 +876,10 @@ static int handle_tx_event(struct xhci_hcd *xhci,
 		xhci_warn(xhci, "WARN: transfer error on endpoint\n");
 		status = -EPROTO;
 		break;
+	case COMP_BABBLE:
+		xhci_warn(xhci, "WARN: babble error on endpoint\n");
+		status = -EOVERFLOW;
+		break;
 	case COMP_DB_ERR:
 		xhci_warn(xhci, "WARN: HC couldn't access mem fast enough\n");
 		status = -ENOSR;
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
USB: xhci: Handle babble errors on transfers., Linux Kernel Mailing ..., (Wed Jul 29, 12:59 pm)