mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
RDMA/nes: Write correct register write to set TX pause param
Setting TX pause param writes to the wrong register location causing the adapter to hang. Correct the define used to write the reigster. Addresses: https://bugs.openfabrics.org/show_bug.cgi?id=2116 Reported-by: Shiri Franchi <[email protected]> Signed-off-by: Chien Tung <[email protected]> Signed-off-by: Roland Dreier <[email protected]>
This commit is contained in:
parent
320b2b8de1
commit
70c9db0fdf
1 changed files with 2 additions and 2 deletions
|
|
@ -1446,14 +1446,14 @@ static int nes_netdev_set_pauseparam(struct net_device *netdev,
|
|||
NES_IDX_MAC_TX_CONFIG + (nesdev->mac_index*0x200));
|
||||
u32temp |= NES_IDX_MAC_TX_CONFIG_ENABLE_PAUSE;
|
||||
nes_write_indexed(nesdev,
|
||||
NES_IDX_MAC_TX_CONFIG_ENABLE_PAUSE + (nesdev->mac_index*0x200), u32temp);
|
||||
NES_IDX_MAC_TX_CONFIG + (nesdev->mac_index*0x200), u32temp);
|
||||
nesdev->disable_tx_flow_control = 0;
|
||||
} else if ((et_pauseparam->tx_pause == 0) && (nesdev->disable_tx_flow_control == 0)) {
|
||||
u32temp = nes_read_indexed(nesdev,
|
||||
NES_IDX_MAC_TX_CONFIG + (nesdev->mac_index*0x200));
|
||||
u32temp &= ~NES_IDX_MAC_TX_CONFIG_ENABLE_PAUSE;
|
||||
nes_write_indexed(nesdev,
|
||||
NES_IDX_MAC_TX_CONFIG_ENABLE_PAUSE + (nesdev->mac_index*0x200), u32temp);
|
||||
NES_IDX_MAC_TX_CONFIG + (nesdev->mac_index*0x200), u32temp);
|
||||
nesdev->disable_tx_flow_control = 1;
|
||||
}
|
||||
if ((et_pauseparam->rx_pause == 1) && (nesdev->disable_rx_flow_control == 1)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue