firewire: fw-sbp2: Use sbp2 device-provided mgt orb timeout for logins
commit384170da9384b7bb3650c0c9b9d17ba0f7bde4ff
authorJarod Wilson <jwilson@redhat.com>
Sat, 26 Jan 2008 04:31:12 +0000 (25 23:31 -0500)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Wed, 30 Jan 2008 21:22:29 +0000 (30 22:22 +0100)
tree93d92b0d68a37a8b7785b0da5f7f477df851f2ef
parenta4c379c1979fbc417099cd22ba16735bc3625bbf
firewire: fw-sbp2: Use sbp2 device-provided mgt orb timeout for logins

To be more compliant with section 7.4.8 of the SBP-2 specification,
use the mgt_ORB_timeout specified in the SBP-2 device's config rom
for login ORB attempts (though with some sanity checks). A happy
side-effect is that certain device and controller combinations that
sometimes take more than 20 seconds to get synced up (like my laptop
with just about any SBP-2 device) now function more reliably.

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