diff options
author | Alexandre Bounine <alexandre.bounine@idt.com> | 2010-10-27 18:34:32 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-27 21:03:16 -0400 |
commit | e274e0ed0a2ac31d5eaf7c891e4e1d99197517b2 (patch) | |
tree | cae2c7911b21f8ddbf52ee4fdef6673997240529 /drivers/rapidio/rio.c | |
parent | 6429cd49f45450cd77a57b70b0dfa98fe2794da0 (diff) |
rapidio: add device access check into the enumeration
Add explicit device access check before performing device enumeration.
This gives a chance to clear possible link error conditions by issuing
safe maintenance read request(s).
Signed-off-by: Alexandre Bounine <alexandre.bounine@idt.com>
Cc: Thomas Moll <thomas.moll@sysgo.com>
Cc: Matt Porter <mporter@kernel.crashing.org>
Cc: Li Yang <leoli@freescale.com>
Cc: Kumar Gala <galak@kernel.crashing.org>
Cc: Micha Nelissen <micha@neli.hopto.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rapidio/rio.c')
-rw-r--r-- | drivers/rapidio/rio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rapidio/rio.c b/drivers/rapidio/rio.c index aefc2a0004d4..fa5e3cbe4c83 100644 --- a/drivers/rapidio/rio.c +++ b/drivers/rapidio/rio.c | |||
@@ -546,7 +546,7 @@ err_out: | |||
546 | * @destid: Device destination ID in network | 546 | * @destid: Device destination ID in network |
547 | * @hopcount: Number of hops into the network | 547 | * @hopcount: Number of hops into the network |
548 | */ | 548 | */ |
549 | static int | 549 | int |
550 | rio_mport_chk_dev_access(struct rio_mport *mport, u16 destid, u8 hopcount) | 550 | rio_mport_chk_dev_access(struct rio_mport *mport, u16 destid, u8 hopcount) |
551 | { | 551 | { |
552 | int i = 0; | 552 | int i = 0; |