]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit63af80a8cd261a39aac04f3a588e3d506090d1b2
treeeef975dc80211ac2afd3cfda8ca39652ea18fdbc
parenta0623754ed3cb7e41ec8c5143cf03a74f53b9e25
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: 6424b8668927 ("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