]> git.baikalelectronics.ru Git - kernel.git/commit
firewire: ohci: skip soft reset retries after card ejection
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Sun, 3 Jul 2011 15:39:26 +0000 (17:39 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Sat, 9 Jul 2011 15:12:09 +0000 (17:12 +0200)
commit564876431d8d319ac255041b60e62cbbbb70213e
treea34fc50c7f562eea8726b60c41744567396aa692
parentfc2c5a52b1bddaeb8ebae9152d44ea2293fe2bc4
firewire: ohci: skip soft reset retries after card ejection

The software reset in firewire-ohci's pci_remove does not have a great
prospect of success if the card was already physically removed at this
point.  So let's skip the 500 ms that were spent in retries here.

Also, replace a defined constant by its open-coded value.  This is not a
constant from a specification but an arbitrarily chosen retry limit.  It
was only used in this single place.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/ohci.c