diff options
author | Alexandre Bounine | 2010-10-28 00:34:30 +0200 |
---|---|---|
committer | Linus Torvalds | 2010-10-28 03:03:15 +0200 |
commit | dd5648c9f53b5cbd9f948d752624400545f979fb (patch) | |
tree | 9092a86701a6b4fa5cd722d4f3fc8b803d08b94c /drivers/rapidio/switches/tsi57x.c | |
parent | rapidio: add relation links between RIO device structures (diff) | |
download | kernel-qcow2-linux-dd5648c9f53b5cbd9f948d752624400545f979fb.tar.gz kernel-qcow2-linux-dd5648c9f53b5cbd9f948d752624400545f979fb.tar.xz kernel-qcow2-linux-dd5648c9f53b5cbd9f948d752624400545f979fb.zip |
rapidio: add default handler for error-stopped state
The default error-stopped state handler provides recovery mechanism as
defined by RIO specification.
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/switches/tsi57x.c')
-rw-r--r-- | drivers/rapidio/switches/tsi57x.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/rapidio/switches/tsi57x.c b/drivers/rapidio/switches/tsi57x.c index d34df722d95f..d9e94920e8b0 100644 --- a/drivers/rapidio/switches/tsi57x.c +++ b/drivers/rapidio/switches/tsi57x.c @@ -205,6 +205,10 @@ tsi57x_em_init(struct rio_dev *rdev) portnum++; } + /* set TVAL = ~50us */ + rio_mport_write_config_32(mport, destid, hopcount, + rdev->phys_efptr + RIO_PORT_LINKTO_CTL_CSR, 0x9a << 8); + return 0; } |