Commit 7bf47f60 authored by Sergei Shtylyov's avatar Sergei Shtylyov Committed by David S. Miller

sh_eth: check sh_eth_cpu_data::no_xdfar when dumping registers

When adding the sh_eth_cpu_data::no_xdfar flag I forgot to add the flag
check to  __sh_eth_get_regs(), causing the non-existing RDFAR/TDFAR to be
considered for dumping on the R-Car gen1/2 SoCs (the register offset check
has the final say here)...

Fixes: 4c1d4585 ("sh_eth: add sh_eth_cpu_data::cexcr flag")
Signed-off-by: default avatarSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Tested-by: default avatarChris Brandt <chris.brandt@renesas.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f75ca324
...@@ -2140,11 +2140,13 @@ static size_t __sh_eth_get_regs(struct net_device *ndev, u32 *buf) ...@@ -2140,11 +2140,13 @@ static size_t __sh_eth_get_regs(struct net_device *ndev, u32 *buf)
add_reg(EESR); add_reg(EESR);
add_reg(EESIPR); add_reg(EESIPR);
add_reg(TDLAR); add_reg(TDLAR);
add_reg(TDFAR); if (!cd->no_xdfar)
add_reg(TDFAR);
add_reg(TDFXR); add_reg(TDFXR);
add_reg(TDFFR); add_reg(TDFFR);
add_reg(RDLAR); add_reg(RDLAR);
add_reg(RDFAR); if (!cd->no_xdfar)
add_reg(RDFAR);
add_reg(RDFXR); add_reg(RDFXR);
add_reg(RDFFR); add_reg(RDFFR);
add_reg(TRSCER); add_reg(TRSCER);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment