From: Clemens Ladisch Date: Mon, 12 Apr 2010 08:35:44 +0000 (+0200) Subject: firewire: ohci: wait for local CSR lock access to finish X-Git-Tag: v2.6.34-rc6~64^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1393667be574807a13bfaf1bb471f5fd1a5287b;p=pandora-kernel.git firewire: ohci: wait for local CSR lock access to finish Add a loop to wait for the controller to finish a locally-initiated CSR lock operation. Google shows some occurrences of the "swap not done yet" message which might indicate that some OHCI controllers are not fast enough to do the lock/swap in the time needed for one PCI access. This also correctly handles the case where the lock operation did not finish, instead of silently returning an uninitialized value. Signed-off-by: Clemens Ladisch Signed-off-by: Stefan Richter --- Reading git-diff-tree failed