Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1191852

Re: xhci_hcd 0000:00:14.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 2 comp_code 1

From Peter Stuge <peter@stuge.se>
Newsgroups linux.kernel
Subject Re: xhci_hcd 0000:00:14.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 2 comp_code 1
Date 2015-07-24 16:00 +0200
Message-ID <pPLG1-7zK-5@gated-at.bofh.it> (permalink)
References (1 earlier) <pOpHA-3fu-13@gated-at.bofh.it> <pOH1M-2PH-27@gated-at.bofh.it> <pP32i-Ny-13@gated-at.bofh.it> <pPJNV-4T4-19@gated-at.bofh.it> <pPLmH-7cG-45@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Mathias Nyman wrote:
> +++ b/drivers/usb/host/xhci-ring.c
> @@ -82,7 +82,7 @@ dma_addr_t xhci_trb_virt_to_dma(struct xhci_segment *seg,
>                 return 0;
>         /* offset in TRBs */
>         segment_offset = trb - seg->trbs;
> -       if (segment_offset > TRBS_PER_SEGMENT)
> +       if (segment_offset > TRBS_PER_SEGMENT - 1)

Maybe change the > comparison to >= rather than add the extra "- 1"?


//Peter
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: xhci_hcd 0000:00:14.0: ERROR Transfer event TRB DMA ptr not part  of current TD ep_index 2 comp_code 1 Mathias Nyman <mathias.nyman@linux.intel.com> - 2015-07-24 14:00 +0200
  Re: xhci_hcd 0000:00:14.0: ERROR Transfer event TRB DMA ptr not part  of current TD ep_index 2 comp_code 1 Mathias Nyman <mathias.nyman@linux.intel.com> - 2015-07-24 15:40 +0200
    Re: xhci_hcd 0000:00:14.0: ERROR Transfer event TRB DMA ptr not  part of current TD ep_index 2 comp_code 1 Peter Stuge <peter@stuge.se> - 2015-07-24 16:00 +0200
    Re: xhci_hcd 0000:00:14.0: ERROR Transfer event TRB DMA ptr not part  of current TD ep_index 2 comp_code 1 Mathias Nyman <mathias.nyman@linux.intel.com> - 2015-08-03 15:10 +0200

csiph-web