]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfbba851e1f20772ecca2c436f13c61afa7fa999c
tree826682bb41b106cd2fae5520b3fdf9264b3a8916
parent98721e9c22feddcd8057fa976976e4681fae8469
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