sh_eth: gather all TSU init code in one place
commit3e14c969a4ecdb4b4a05fb5c806d4f525fe56cff
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sun, 14 Jan 2018 17:47:43 +0000 (14 20:47 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Jan 2018 20:09:45 +0000 (15 15:09 -0500)
tree9b4319dd46174b9f05868cb5aeab5caab74460bf
parentd9631c7a5decd657265627cec2d27dd8ed972985
sh_eth: gather all TSU init code in one place

The  sh_eth_cpu_data::chip_reset() method  always resets using ARSTR and
this register is always located at the start of the  TSU register region.
Therefore, we can  only call  this method if we know TSU is there and thus
simplify  the probing code a  bit...

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c