aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2012-01-04 20:59:19 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2012-01-04 20:59:25 -0500
commit435c724232457f32e66d6460d036c5f64f67b0a7 (patch)
treec8448eaee30e46627ab89bb481fd88017a8d3ff5 /drivers/usb
parentd8cae98cddd286e38db1724dda1b0e7b467f9237 (diff)
parente910b440da9f766f2623479be721032fecff98c3 (diff)
Merge branch 'for-usb-next' of git://git.kernel.org/pub/scm/linux/kernel/git/sarah/xhci into usb-next
* 'for-usb-next' of git://git.kernel.org/pub/scm/linux/kernel/git/sarah/xhci: xhci: Clean up 32-bit build warnings. xhci: Properly handle COMP_2ND_BW_ERR
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/host/xhci-ring.c6
-rw-r--r--drivers/usb/host/xhci.c1
-rw-r--r--drivers/usb/host/xhci.h1
3 files changed, 5 insertions, 3 deletions
diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c
index b0a85459652e..b90e1386418b 100644
--- a/drivers/usb/host/xhci-ring.c
+++ b/drivers/usb/host/xhci-ring.c
@@ -1934,7 +1934,8 @@ static int handle_tx_event(struct xhci_hcd *xhci,
1934 if (!xdev) { 1934 if (!xdev) {
1935 xhci_err(xhci, "ERROR Transfer event pointed to bad slot\n"); 1935 xhci_err(xhci, "ERROR Transfer event pointed to bad slot\n");
1936 xhci_err(xhci, "@%016llx %08x %08x %08x %08x\n", 1936 xhci_err(xhci, "@%016llx %08x %08x %08x %08x\n",
1937 xhci_trb_virt_to_dma(xhci->event_ring->deq_seg, 1937 (unsigned long long) xhci_trb_virt_to_dma(
1938 xhci->event_ring->deq_seg,
1938 xhci->event_ring->dequeue), 1939 xhci->event_ring->dequeue),
1939 lower_32_bits(le64_to_cpu(event->buffer)), 1940 lower_32_bits(le64_to_cpu(event->buffer)),
1940 upper_32_bits(le64_to_cpu(event->buffer)), 1941 upper_32_bits(le64_to_cpu(event->buffer)),
@@ -1956,7 +1957,8 @@ static int handle_tx_event(struct xhci_hcd *xhci,
1956 xhci_err(xhci, "ERROR Transfer event for disabled endpoint " 1957 xhci_err(xhci, "ERROR Transfer event for disabled endpoint "
1957 "or incorrect stream ring\n"); 1958 "or incorrect stream ring\n");
1958 xhci_err(xhci, "@%016llx %08x %08x %08x %08x\n", 1959 xhci_err(xhci, "@%016llx %08x %08x %08x %08x\n",
1959 xhci_trb_virt_to_dma(xhci->event_ring->deq_seg, 1960 (unsigned long long) xhci_trb_virt_to_dma(
1961 xhci->event_ring->deq_seg,
1960 xhci->event_ring->dequeue), 1962 xhci->event_ring->dequeue),
1961 lower_32_bits(le64_to_cpu(event->buffer)), 1963 lower_32_bits(le64_to_cpu(event->buffer)),
1962 upper_32_bits(le64_to_cpu(event->buffer)), 1964 upper_32_bits(le64_to_cpu(event->buffer)),
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c
index dda84756c465..6bbe3c3a7111 100644
--- a/drivers/usb/host/xhci.c
+++ b/drivers/usb/host/xhci.c
@@ -1623,6 +1623,7 @@ static int xhci_configure_endpoint_result(struct xhci_hcd *xhci,
1623 /* FIXME: can we allocate more resources for the HC? */ 1623 /* FIXME: can we allocate more resources for the HC? */
1624 break; 1624 break;
1625 case COMP_BW_ERR: 1625 case COMP_BW_ERR:
1626 case COMP_2ND_BW_ERR:
1626 dev_warn(&udev->dev, "Not enough bandwidth " 1627 dev_warn(&udev->dev, "Not enough bandwidth "
1627 "for new device state.\n"); 1628 "for new device state.\n");
1628 ret = -ENOSPC; 1629 ret = -ENOSPC;
diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h
index ecd2ad5d226d..fb99c8379142 100644
--- a/drivers/usb/host/xhci.h
+++ b/drivers/usb/host/xhci.h
@@ -1033,7 +1033,6 @@ struct xhci_transfer_event {
1033/* Invalid Stream ID Error */ 1033/* Invalid Stream ID Error */
1034#define COMP_STRID_ERR 34 1034#define COMP_STRID_ERR 34
1035/* Secondary Bandwidth Error - may be returned by a Configure Endpoint cmd */ 1035/* Secondary Bandwidth Error - may be returned by a Configure Endpoint cmd */
1036/* FIXME - check for this */
1037#define COMP_2ND_BW_ERR 35 1036#define COMP_2ND_BW_ERR 35
1038/* Split Transaction Error */ 1037/* Split Transaction Error */
1039#define COMP_SPLIT_ERR 36 1038#define COMP_SPLIT_ERR 36