]> git.baikalelectronics.ru Git - kernel.git/commit
sh_eth: gather all TSU init code in one place
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sun, 14 Jan 2018 17:47:43 +0000 (20:47 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Jan 2018 20:09:45 +0000 (15:09 -0500)
commite9e3588414fb230d784ddb5cae74985c3a2f8012
tree9b4319dd46174b9f05868cb5aeab5caab74460bf
parent71a0af303854c46a63e87e7846edacd81b390ec3
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