]> git.baikalelectronics.ru Git - kernel.git/commit
firewire: fw-ohci: make sure HCControl register LPS bit is set
authorJarod Wilson <jwilson@redhat.com>
Fri, 28 Mar 2008 14:02:50 +0000 (10:02 -0400)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Fri, 18 Apr 2008 15:55:34 +0000 (17:55 +0200)
commit611ed30116d1fc27559c67081a25e993decd1c71
treea59646ee968d029550fcb5d99ab2a9885a0f9377
parenta80f5ce11f12e5895b6419dbb7ab0cabee8683cc
firewire: fw-ohci: make sure HCControl register LPS bit is set

I've now witnessed multiple occasions where one of my controllers (a very
poorly working JMicron PCIe card) fails to get its registers properly set
up in ohci_enable(), apparently due to an occasionally very slow to
initiate SClk. The easy fix for this problem is to add a tiny while loop
to try again a time or three after initially enabling LPS before we
move on (or give up).

Of course, the card still isn't fully functional yet, but this gets it at
least one tiny step closer...

Signed-off-by: Jarod Wilson <jwilson@redhat.com>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/fw-ohci.c