]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
sh_eth: fix dumping ARSTR
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sat, 13 Jan 2018 17:22:01 +0000 (20:22 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Jan 2018 19:50:46 +0000 (14:50 -0500)
commit17d0fb0caa68f2bfd8aaa8125ff15abebfbfa1d7
tree38ea61391f1e48406a8f255697d461120061740d
parent95a332088ecb113c2e8753fa3f1df9b0dda9beec
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>
drivers/net/ethernet/renesas/sh_eth.c