diff options
author | Ivan Mikhaylov <ivan@de.ibm.com> | 2018-09-03 10:26:28 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-03 21:50:52 -0700 |
commit | bf68066fccb10fce6bbffdda24ee2ae314c9c5b2 (patch) | |
tree | 28d24e36c726353e7a8bb4a4452ee85234e2a89c /drivers/net/ethernet/ibm/emac | |
parent | c10bbfae3ae43fae1d77e16f05a73474acf514ff (diff) | |
download | linux-stable-bf68066fccb10fce6bbffdda24ee2ae314c9c5b2.tar.gz linux-stable-bf68066fccb10fce6bbffdda24ee2ae314c9c5b2.tar.bz2 linux-stable-bf68066fccb10fce6bbffdda24ee2ae314c9c5b2.zip |
net/ibm/emac: wrong emac_calc_base call was used by typo
__emac_calc_base_mr1 was used instead of __emac4_calc_base_mr1
by copy-paste mistake for emac4syn.
Fixes: 45d6e545505fd32edb812f085be7de45b6a5c0af ("net/ibm/emac: add 8192 rx/tx fifo size")
Signed-off-by: Ivan Mikhaylov <ivan@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ibm/emac')
-rw-r--r-- | drivers/net/ethernet/ibm/emac/core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/ibm/emac/core.c b/drivers/net/ethernet/ibm/emac/core.c index 354c0982847b..372664686309 100644 --- a/drivers/net/ethernet/ibm/emac/core.c +++ b/drivers/net/ethernet/ibm/emac/core.c @@ -494,9 +494,6 @@ static u32 __emac_calc_base_mr1(struct emac_instance *dev, int tx_size, int rx_s case 16384: ret |= EMAC_MR1_RFS_16K; break; - case 8192: - ret |= EMAC4_MR1_RFS_8K; - break; case 4096: ret |= EMAC_MR1_RFS_4K; break; @@ -537,6 +534,9 @@ static u32 __emac4_calc_base_mr1(struct emac_instance *dev, int tx_size, int rx_ case 16384: ret |= EMAC4_MR1_RFS_16K; break; + case 8192: + ret |= EMAC4_MR1_RFS_8K; + break; case 4096: ret |= EMAC4_MR1_RFS_4K; break; |