> It's starting to get a bit too complicated. > xhci find_new_dequeue_state() now has four places where it can toggle the > cycle bit > in addition to the cycle toggle in find_trb_seg(). > > In the end we really just want to do it max once. > > I'll see if I can simplify the whole cycle bit code somehow.
Have a look at the patches I submitted last year. I remember simplifying a lot of that code. David