]> rtime.felk.cvut.cz Git - linux-imx.git/commit
firewire: core: wait for inaccessible devices after bus reset
authorClemens Ladisch <clemens@ladisch.de>
Wed, 11 Apr 2012 15:36:39 +0000 (17:36 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Tue, 17 Apr 2012 20:27:37 +0000 (22:27 +0200)
commitd33ec3b55e91f1c285099fee731b79a722d10fe6
tree3bd2da84d19b852381d10bc5961b5e6b3731ba01
parent8a8c47364eef8595e05b5bf53352aa6f16784356
firewire: core: wait for inaccessible devices after bus reset

When reread_config_rom() encountered a config rom that was marked as not
yet accessible, that device would be treated as "gone".  This would mean
that that device would effectively vanish until the next bus reset.

The correct way to handle this situation is the same as in
read_config_rom(), to treat this like other errors and to retry the read
later, when the (possibly changed) config rom is available.  The device
is marked "gone" only if it continues to return zero values after these
retries.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/core-device.c