rapidio: fix default routing initialization
commit1f3696ee34df25a119a6efc225a90af5864a982f
authorAlexandre Bounine <alexandre.bounine@idt.com>
Tue, 17 May 2011 22:44:08 +0000 (17 15:44 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 21 May 2011 22:13:27 +0000 (21 15:13 -0700)
tree5b8fb31559e653a34c5fef4041e1b9fc2ff724fa
parentba0bb0c9b289b919dc7b106a26ee05e1516171a8
rapidio: fix default routing initialization

commit 0bf2461fdd9008290cf429e50e4f362dafab4249 upstream.

Fix switch initialization to ensure that all switches have default routing
disabled.  This guarantees that no unexpected RapidIO packets arrive to
the default port set by reset and there is no default routing destination
until it is properly configured by software.

This update also unifies handling of unmapped destinations by tsi57x, IDT
Gen1 and IDT Gen2 switches.

Signed-off-by: Alexandre Bounine <alexandre.bounine@idt.com>
Cc: Kumar Gala <galak@kernel.crashing.org>
Cc: Matt Porter <mporter@kernel.crashing.org>
Cc: Li Yang <leoli@freescale.com>
Cc: Thomas Moll <thomas.moll@sysgo.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/rapidio/switches/idt_gen2.c
drivers/rapidio/switches/idtcps.c
drivers/rapidio/switches/tsi57x.c