]> git.baikalelectronics.ru Git - kernel.git/commit
sh_eth: Fix access to TRSCER register
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Thu, 8 Jan 2015 06:25:07 +0000 (15:25 +0900)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Jan 2015 04:06:54 +0000 (20:06 -0800)
commit0e76c4baff997fb87c748694d2b458bd7d1204ee
tree205daa34a9d9b98389a24a805396241ddcdb9f5e
parentb76d9e07415e8dc130d1e232b808533c69e56a63
sh_eth: Fix access to TRSCER register

TRSCER register is configured differently by SoCs. TRSCER of R-Car Gen2 is
RINT8 bit only valid, other bits are reserved bits. This removes access to
TRSCER register reserve bit by adding variable trscer_err_mask to
sh_eth_cpu_data structure, set the register information to each SoCs.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c
drivers/net/ethernet/renesas/sh_eth.h