aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorChien Tung <chien.tin.tung@intel.com>2009-04-27 16:29:42 -0400
committerRoland Dreier <rolandd@cisco.com>2009-04-27 16:29:42 -0400
commite998c25bc29f2b409b39fa63dad3df499982a887 (patch)
treececd8abc9fc7920d19fe78997ffdfe687c5e8d1f /drivers
parent366835e24977f4590ef353bdc70f0dda278c2a84 (diff)
RDMA/nes: Enable repause timer for port 1
Enable repause timer for port 1. Without this setting, under stress, the chip may misbehave. Signed-off-by: Chien Tung <chien.tin.tung@intel.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/infiniband/hw/nes/nes_hw.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/nes/nes_hw.c b/drivers/infiniband/hw/nes/nes_hw.c
index b5d9c4bae452..2aa021655e33 100644
--- a/drivers/infiniband/hw/nes/nes_hw.c
+++ b/drivers/infiniband/hw/nes/nes_hw.c
@@ -912,6 +912,12 @@ static void nes_init_csr_ne020(struct nes_device *nesdev, u8 hw_rev, u8 port_cou
912 u32temp &= 0x7fffffff; 912 u32temp &= 0x7fffffff;
913 u32temp |= 0x7fff0010; 913 u32temp |= 0x7fff0010;
914 nes_write_indexed(nesdev, 0x000021f8, u32temp); 914 nes_write_indexed(nesdev, 0x000021f8, u32temp);
915 if (port_count > 1) {
916 u32temp = nes_read_indexed(nesdev, 0x000023f8);
917 u32temp &= 0x7fffffff;
918 u32temp |= 0x7fff0010;
919 nes_write_indexed(nesdev, 0x000023f8, u32temp);
920 }
915 } 921 }
916} 922}
917 923