RDMA/nes: Enable repause timer for port 1
authorChien Tung <chien.tin.tung@intel.com>
Mon, 27 Apr 2009 20:29:42 +0000 (13:29 -0700)
committerRoland Dreier <rolandd@cisco.com>
Mon, 27 Apr 2009 20:29:42 +0000 (13:29 -0700)
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>
drivers/infiniband/hw/nes/nes_hw.c

index b5d9c4bae452d6e1a215c20e314b29db06902d37..2aa021655e33248e2ee1e05e51c6e8d311174faa 100644 (file)
@@ -912,6 +912,12 @@ static void nes_init_csr_ne020(struct nes_device *nesdev, u8 hw_rev, u8 port_cou
                u32temp &= 0x7fffffff;
                u32temp |= 0x7fff0010;
                nes_write_indexed(nesdev, 0x000021f8, u32temp);
+               if (port_count > 1) {
+                       u32temp = nes_read_indexed(nesdev, 0x000023f8);
+                       u32temp &= 0x7fffffff;
+                       u32temp |= 0x7fff0010;
+                       nes_write_indexed(nesdev, 0x000023f8, u32temp);
+               }
        }
 }