From: Sarah Sharp Date: Thu, 24 Feb 2011 02:13:43 +0000 (-0800) Subject: xhci: Clean up cycle bit math used during stalls. X-Git-Tag: v2.6.39-rc1~472^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba0a4d9aaae789a6a632968b27c21d49b858b13a;p=pandora-kernel.git xhci: Clean up cycle bit math used during stalls. Use XOR to invert the cycle bit, instead of a more complicated calculation. Eliminate a check for the link TRB type in find_trb_seg(). We know that there will always be a link TRB at the end of a segment, so xhci_segment->trbs[TRBS_PER_SEGMENT - 1] will always have a link TRB type. Signed-off-by: Sarah Sharp Tested-by: Takashi Iwai --- Reading git-diff-tree failed