cxgb4: fix to bring link down after adapter crash
authorRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Thu, 8 Jun 2017 05:22:11 +0000 (10:52 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Jun 2017 18:40:15 +0000 (14:40 -0400)
commitb3fd82207e2723247aac478e8756451fe85b1ac2
tree3d580e335965cac871337859ff99a7fc72b460ea
parent772c344dbb23b2ce4568ac30afae92a842fa6d8f
cxgb4: fix to bring link down after adapter crash

Use PORT_REG for T4 and T5_PORT_REG for > T4 to write to correct
register to bring down link during shutdown after adapter crash.

Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c