ravb: TROCR register is only present on R-Car Gen3
authorSimon Horman <horms+renesas@verge.net.au>
Thu, 5 Sep 2019 15:10:59 +0000 (17:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Sep 2019 14:46:10 +0000 (16:46 +0200)
commitfd8ab76a85625abc5946ffc571e736cee9033262
tree826682bb41b106cd2fae5520b3fdf9264b3a8916
parent2d957a7e2a9b74eaa3243e1254724878825f95d2
ravb: TROCR register is only present on R-Car Gen3

Only use the TROCR register on R-Car Gen3 as it is not present on other
SoCs.

Offsets used for the undocumented registers are considered reserved and
should not be written to. After some internal investigation with Renesas it
remains unclear why this driver accesses these fields on R-Car Gen2 but
regardless of what the historical reasons are the current code is
considered incorrect.

Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Acked-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/ravb.h
drivers/net/ethernet/renesas/ravb_main.c