diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2018-01-13 20:22:01 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-15 22:50:46 +0300 |
commit | 17d0fb0caa68f2bfd8aaa8125ff15abebfbfa1d7 (patch) | |
tree | 38ea61391f1e48406a8f255697d461120061740d /drivers | |
parent | 95a332088ecb113c2e8753fa3f1df9b0dda9beec (diff) | |
download | linux-17d0fb0caa68f2bfd8aaa8125ff15abebfbfa1d7.tar.xz |
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: 6b4b4fead342 ("sh_eth: Implement ethtool register dump operations")
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/renesas/sh_eth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/renesas/sh_eth.c b/drivers/net/ethernet/renesas/sh_eth.c index b9e2846589f8..53924a4fc31c 100644 --- a/drivers/net/ethernet/renesas/sh_eth.c +++ b/drivers/net/ethernet/renesas/sh_eth.c @@ -2089,8 +2089,8 @@ static size_t __sh_eth_get_regs(struct net_device *ndev, u32 *buf) add_reg(CSMR); if (cd->select_mii) add_reg(RMII_MII); - add_reg(ARSTR); if (cd->tsu) { + add_tsu_reg(ARSTR); add_tsu_reg(TSU_CTRST); add_tsu_reg(TSU_FWEN0); add_tsu_reg(TSU_FWEN1); |