linux/drivers/rapidio
Alexandre Bounine 8d4630dcf4 rapidio: apply RX/TX enable to active switch ports only
Apply port RX/TX enable operations only to active switch ports.

RapidIO specification (Part 6: LP-Serial Physical Layer) recommends to
keep Output Port Enable (TX) and Input Port Enable (RX) control bits in
disabled state (0b0) after device reset.  It also allows to have
implementation specific reset state for these bits.

This patch ensures that TX/RX enable action is applied only to active
switch's ports while preserving an initial state of inactive ones.

This patch is intended to keep inactive switch ports with inbound and
outbound packet transfers disabled to block unexpected packets during hot
insertion event.  While it does not fix any visible malfunction it is
intended to prevent such events in future.

Signed-off-by: Alexandre Bounine <alexandre.bounine@idt.com>
Cc: Matt Porter <mporter@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-10-06 03:05:22 +09:00
..
devices rapidio/tsi721: add inbound memory mapping callbacks 2012-10-06 03:05:21 +09:00
switches drivers/rapidio: idt_gen2.c is implicitly relying on getting stat.h 2011-10-31 19:31:57 -04:00
Kconfig rapidio: add DMA engine support for RIO data transfers 2012-05-31 17:49:31 -07:00
Makefile RapidIO: add mport driver for Tsi721 bridge 2011-11-02 16:07:01 -07:00
rio-access.c [RAPIDIO] Add RapidIO multi mport support 2008-04-29 19:40:28 +10:00
rio-driver.c rapidio: fix RapidIO sysfs hierarchy 2010-10-27 18:03:15 -07:00
rio-scan.c rapidio: apply RX/TX enable to active switch ports only 2012-10-06 03:05:22 +09:00
rio-sysfs.c rapidio: modify configuration to support PCI-SRIO controller 2011-03-23 19:46:42 -07:00
rio.c rapidio: add inbound memory mapping interface 2012-10-06 03:05:21 +09:00
rio.h rapidio: add handling of redundant routes 2010-10-27 18:03:16 -07:00