Commit a3703fb3 authored by Dmitri Epshtein's avatar Dmitri Epshtein Committed by David S. Miller

net: mvneta: replace magic numbers by existing macros

Some literal values are actually already defined by macros, so let's use
them.

[gregory.clement@free-electrons.com: split intial commit in two
individual changes]
Signed-off-by: default avatarDmitri Epshtein <dima@marvell.com>
Signed-off-by: default avatarGregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0838abb3
...@@ -1114,7 +1114,7 @@ static void mvneta_port_down(struct mvneta_port *pp) ...@@ -1114,7 +1114,7 @@ static void mvneta_port_down(struct mvneta_port *pp)
mdelay(1); mdelay(1);
val = mvreg_read(pp, MVNETA_RXQ_CMD); val = mvreg_read(pp, MVNETA_RXQ_CMD);
} while (val & 0xff); } while (val & MVNETA_RXQ_ENABLE_MASK);
/* Stop Tx port activity. Check port Tx activity. Issue stop /* Stop Tx port activity. Check port Tx activity. Issue stop
* command for active channels only * command for active channels only
...@@ -1139,7 +1139,7 @@ static void mvneta_port_down(struct mvneta_port *pp) ...@@ -1139,7 +1139,7 @@ static void mvneta_port_down(struct mvneta_port *pp)
/* Check TX Command reg that all Txqs are stopped */ /* Check TX Command reg that all Txqs are stopped */
val = mvreg_read(pp, MVNETA_TXQ_CMD); val = mvreg_read(pp, MVNETA_TXQ_CMD);
} while (val & 0xff); } while (val & MVNETA_TXQ_ENABLE_MASK);
/* Double check to verify that TX FIFO is empty */ /* Double check to verify that TX FIFO is empty */
count = 0; count = 0;
......
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