提交 17d0fb0c 编写于 作者: S Sergei Shtylyov 提交者: David S. Miller

sh_eth: fix dumping ARSTR

ARSTR  is always located at the start of the TSU register region, thus
using add_reg()  instead of add_tsu_reg() in __sh_eth_get_regs() to dump it
causes EDMR or EDSR (depending on the register layout) to be dumped instead
of ARSTR.  Use the correct condition/macro there...

Fixes: 6b4b4fea ("sh_eth: Implement ethtool register dump operations")
Signed-off-by: NSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 95a33208
...@@ -2089,8 +2089,8 @@ static size_t __sh_eth_get_regs(struct net_device *ndev, u32 *buf) ...@@ -2089,8 +2089,8 @@ static size_t __sh_eth_get_regs(struct net_device *ndev, u32 *buf)
add_reg(CSMR); add_reg(CSMR);
if (cd->select_mii) if (cd->select_mii)
add_reg(RMII_MII); add_reg(RMII_MII);
add_reg(ARSTR);
if (cd->tsu) { if (cd->tsu) {
add_tsu_reg(ARSTR);
add_tsu_reg(TSU_CTRST); add_tsu_reg(TSU_CTRST);
add_tsu_reg(TSU_FWEN0); add_tsu_reg(TSU_FWEN0);
add_tsu_reg(TSU_FWEN1); add_tsu_reg(TSU_FWEN1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册