OSDN Git Service

sh_eth: WARN_ON() access to unimplemented TSU register
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Wed, 2 May 2018 19:55:52 +0000 (22:55 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 May 2018 13:11:45 +0000 (09:11 -0400)
commit627a0d20fa7b9e05ea4f42f47ea84d450dbbc96f
tree276cf099969dd7bc85f86ebaeeeff93cccd1a48a
parent77cb065fde0a179f252caabfad5466cf9c522572
sh_eth: WARN_ON() access to unimplemented TSU register

Commit 3365711df024 ("sh_eth: WARN on access to a register not implemented
in a particular chip") added  WARN_ON() to sh_eth_{read|write}() but not
to sh_eth_tsu_{read|write}(). Now that we've routed almost all TSU register
accesses  (except TSU_ADR{H|L}<n> -- which are special) thru the latter
pair of accessors, it makes sense to check for the unimplemented TSU
registers as well...

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c