]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 27 Aug 2018 14:40:05 +0000 (16:40 +0200)
commit2c4ab4b59eba287d35f24f1523efad4b5c2358c2
treeca94977f4594a6f55d4c5fafb32f4b1d85212648
parent30c0929760b7bffca8835d06ebf6f48b26cb2f30
sh_eth: fix TSU init on SH7734/R8A7740

BugLink: http://bugs.launchpad.net/bugs/1786352
[ Upstream commit a94cf2a614f8bc5b2b33c708626ce695bf71e424 ]

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: f0e81fecd4f8 ("net: sh_eth: Add support SH7734")
Fixes: 73a0d907301e ("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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/renesas/sh_eth.c
drivers/net/ethernet/renesas/sh_eth.h