rapidio/tsi721: modify PCIe capability settings
authorAlexandre Bounine <alexandre.bounine@idt.com>
Thu, 8 Dec 2011 22:34:42 +0000 (14:34 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 9 Dec 2011 15:50:29 +0000 (07:50 -0800)
commit1cee22b7f385b6c4f716846203a96e1f302132aa
tree44ac23d3a52c80c6b1e462b7b9502a0fe61a17e4
parentb439e66f04bff6476c5d4bae6a52ab93fbb9a8f4
rapidio/tsi721: modify PCIe capability settings

Modify initialization of PCIe capability registers in Tsi721 mport driver:
 - change Completion Timeout value to avoid unexpected data transfer
   aborts during intensive traffic.
 - replace hardcoded offset of PCIe capability block by making it use the
   common function.

This patch is applicable to kernel versions starting from 3.2-rc1.

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>
drivers/rapidio/devices/tsi721.c
drivers/rapidio/devices/tsi721.h