projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9838ef
)
net: netcp: ethss: fix 10gbe host port tx pri map configuration
author
WingMan Kwok
<
[email protected]
>
Mon, 19 Dec 2016 22:55:57 +0000
(17:55 -0500)
committer
David S. Miller
<
[email protected]
>
Tue, 20 Dec 2016 19:07:17 +0000
(14:07 -0500)
This patch adds the missing 10gbe host port tx priority map
configurations.
Signed-off-by: WingMan Kwok <
[email protected]
>
Signed-off-by: Murali Karicheri <
[email protected]
>
Signed-off-by: Sekhar Nori <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/ti/netcp_ethss.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/ti/netcp_ethss.c
b/drivers/net/ethernet/ti/netcp_ethss.c
index a31931cdac53f0205ed30ea71090f9eeeaaf05eb..7d9e36f66735cfd7da35f5df0f17c4d003dc4e0c 100644
(file)
--- a/
drivers/net/ethernet/ti/netcp_ethss.c
+++ b/
drivers/net/ethernet/ti/netcp_ethss.c
@@
-94,6
+94,7
@@
/* offset relative to base of XGBE_SS_REG_INDEX */
#define XGBE10_SGMII_MODULE_OFFSET 0x100
+#define IS_SS_ID_XGBE(d) ((d)->ss_version == XGBE_SS_VERSION_10)
/* offset relative to base of XGBE_SM_REG_INDEX */
#define XGBE10_HOST_PORT_OFFSET 0x34
#define XGBE10_SLAVE_PORT_OFFSET 0x64
@@
-2322,7
+2323,7
@@
static void gbe_init_host_port(struct gbe_priv *priv)
int bypass_en = 1;
/* Host Tx Pri */
- if (IS_SS_ID_NU(priv))
+ if (IS_SS_ID_NU(priv)
|| IS_SS_ID_XGBE(priv)
)
writel(HOST_TX_PRI_MAP_DEFAULT,
GBE_REG_ADDR(priv, host_port_regs, tx_pri_map));