Re: [RFT PATCH] xhci: rework cycle bit checking for new dequeue pointers

2014-07-28 Thread Mathias Nyman
>> + do { >> + if (cycle_found) { >> + if (new_seg->trbs > cur_td->last_trb || >> + &new_seg->trbs[TRBS_PER_SEGMENT - 1] < >> cur_td->last_trb) >> + new_deq = &new_seg->trbs[TRBS_PER_SEGMENT - >> 1];

Re: [RFT PATCH] xhci: rework cycle bit checking for new dequeue pointers

2014-07-25 Thread Julius Werner
On Fri, Jul 25, 2014 at 8:47 AM, Mathias Nyman wrote: > Signed-off-by: Mathias Nyman > --- > drivers/usb/host/xhci-ring.c | 95 > +++- > 1 file changed, 31 insertions(+), 64 deletions(-) > > diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhc

[RFT PATCH] xhci: rework cycle bit checking for new dequeue pointers

2014-07-25 Thread Mathias Nyman
Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-ring.c | 95 +++- 1 file changed, 31 insertions(+), 64 deletions(-) diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c index 749fc68..35da18c 100644 --- a/drivers/usb/host/xhci-ri