From: Andiry Xu Date: Mon, 20 Dec 2010 07:09:34 +0000 (+0800) Subject: xHCI: fix cycle bit set in giveback_first_trb() X-Git-Tag: v2.6.38-rc3~7^2^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50f7b52a83a893929edf87a89ebc081ff26a7b91;p=pandora-kernel.git xHCI: fix cycle bit set in giveback_first_trb() giveback_first_trb() controls the cycle bit set of the start_trb, to ensure that the start_trb is written last and the host controller will receive a whole td at a time. However, if the ring is wrapped and cycle bit is toggled to zero, then giveback_first_trb() will be of no effect. In this case, set the cycle bit of start_trb to 1 at the beginning and clear it in giveback_first_trb(). Signed-off-by: Andiry Xu Signed-off-by: Sarah Sharp --- Reading git-diff-tree failed