sh_eth: check sh_eth_cpu_data::dual_port when dumping registers
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Wed, 8 Jan 2020 20:42:42 +0000 (23:42 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Jan 2020 02:35:41 +0000 (18:35 -0800)
commit3249b1e442a1be1a6b9f1026785b519d1443f807
treeeef975dc80211ac2afd3cfda8ca39652ea18fdbc
parente69ec487b2c7c82ef99b4b15122f58a2a99289a3
sh_eth: check sh_eth_cpu_data::dual_port when dumping registers

When adding the sh_eth_cpu_data::dual_port flag I forgot to add the flag
checks to __sh_eth_get_regs(), causing the non-existing TSU registers to
be dumped by 'ethtool' on the single port Ether controllers having TSU...

Fixes: a94cf2a614f8 ("sh_eth: fix TSU init on SH7734/R8A7740")
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