]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
rapidio: apply RX/TX enable to active switch ports only
authorAlexandre Bounine <alexandre.bounine@idt.com>
Fri, 28 Sep 2012 00:22:20 +0000 (10:22 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 4 Oct 2012 05:04:05 +0000 (15:04 +1000)
commita74cf50bcd9bd5a60b5c79265bdbfc0860ab44c8
tree553fa72b337934d7c747aaf9a60567bae82eb4d7
parentfeeeb92ed48970f567eba60621479558b9d8f93a
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>
drivers/rapidio/rio-scan.c