Commit bf68066f authored by Ivan Mikhaylov's avatar Ivan Mikhaylov Committed by David S. Miller

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: 45d6e545 ("net/ibm/emac: add 8192 rx/tx fifo size")
Signed-off-by: default avatarIvan Mikhaylov <ivan@de.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c10bbfae
...@@ -494,9 +494,6 @@ static u32 __emac_calc_base_mr1(struct emac_instance *dev, int tx_size, int rx_s ...@@ -494,9 +494,6 @@ static u32 __emac_calc_base_mr1(struct emac_instance *dev, int tx_size, int rx_s
case 16384: case 16384:
ret |= EMAC_MR1_RFS_16K; ret |= EMAC_MR1_RFS_16K;
break; break;
case 8192:
ret |= EMAC4_MR1_RFS_8K;
break;
case 4096: case 4096:
ret |= EMAC_MR1_RFS_4K; ret |= EMAC_MR1_RFS_4K;
break; break;
...@@ -537,6 +534,9 @@ static u32 __emac4_calc_base_mr1(struct emac_instance *dev, int tx_size, int rx_ ...@@ -537,6 +534,9 @@ static u32 __emac4_calc_base_mr1(struct emac_instance *dev, int tx_size, int rx_
case 16384: case 16384:
ret |= EMAC4_MR1_RFS_16K; ret |= EMAC4_MR1_RFS_16K;
break; break;
case 8192:
ret |= EMAC4_MR1_RFS_8K;
break;
case 4096: case 4096:
ret |= EMAC4_MR1_RFS_4K; ret |= EMAC4_MR1_RFS_4K;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment