[PATCH] ieee1394: skip unnecessary pause when scanning config ROMs

Skip a superfluous pause that occured when the config ROM of a node was
scanned unsuccessfully. This also occurs if a node without link wrongly
enables its "link active" self ID flag. A GWCTech 6-port hub does this.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Jody McIntyre <scjody@steamballoon.com>
Cc: Ben Collins <bcollins@debian.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Jody McIntyre and committed by Linus Torvalds e31a127c 328699bf

+2 -2
+2 -2
drivers/ieee1394/nodemgr.c
··· 64 64 struct nodemgr_csr_info *ci = (struct nodemgr_csr_info*)__ci; 65 65 int i, ret = 0; 66 66 67 - for (i = 0; i < 3; i++) { 67 + for (i = 1; ; i++) { 68 68 ret = hpsb_read(ci->host, ci->nodeid, ci->generation, addr, 69 69 buffer, length); 70 - if (!ret) 70 + if (!ret || i == 3) 71 71 break; 72 72 73 73 if (msleep_interruptible(334))