]> git.karo-electronics.de Git - linux-beck.git/commit
firewire: ohci: speed up PHY register accesses
authorClemens Ladisch <clemens@ladisch.de>
Thu, 10 Jun 2010 06:22:07 +0000 (08:22 +0200)
committerClemens Ladisch <clemens@ladisch.de>
Thu, 10 Jun 2010 06:22:07 +0000 (08:22 +0200)
commit153e3979201b76dbd5788f032fb683e95121e159
treeaae0a3a5dcbc0eb815e7030176b03c84da8792b9
parentf9c70f9129f2d88645c3a26711302a7f6ba9afd0
firewire: ohci: speed up PHY register accesses

Most PHY chips, when idle, can complete a register access in the time
needed for two or three PCI read transactions; bigger delays occur only
when data is currently being moved over the link/PHY interface.  So if
we busy-wait a few times when waiting for the register access to finish,
it is likely that we can finish without having to sleep.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
drivers/firewire/ohci.c