]> git.baikalelectronics.ru Git - kernel.git/commit
sh_eth: fix TSU init on SH7734/R8A7740
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sat, 24 Feb 2018 19:41:45 +0000 (22:41 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Feb 2018 18:59:15 +0000 (13:59 -0500)
commit36d7550cad6fb9fbec879da724c6aecb99916b93
tree1e07cceb60713990556ffe4a3575916fac71df03
parent9429444a3a5b5d10e4621c9749b6d49d263639ac
sh_eth: fix TSU init on SH7734/R8A7740

It appears that the single port Ether controllers having TSU (like SH7734/
R8A7740) need the same kind of treating in sh_eth_tsu_init() as R7S72100
currently has -- they also don't have the TSU registers related e.g. to
passing the frames between ports. Add the 'sh_eth_cpu_data::dual_port'
flag and use it as a new criterion for taking a "short path" in the TSU
init sequence in order to avoid writing to the non-existent registers...

Fixes: 6a5a918c0bb1 ("net: sh_eth: Add support SH7734")
Fixes: ec0bd3341971 ("net: sh_eth: add support R8A7740")
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c
drivers/net/ethernet/renesas/sh_eth.h