sh_eth: add sh_eth_cpu_data::no_xdfar flag
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sat, 31 Mar 2018 21:22:08 +0000 (00:22 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Apr 2018 18:09:53 +0000 (14:09 -0400)
commit6e80e55bd37a90b412f168b1667ffa7d2debd46b
treea6a8423964703c9d4f9a94223f4b086b0e2bbe77
parent16c3c91346961fdd733ad232311772795599be7f
sh_eth: add sh_eth_cpu_data::no_xdfar flag

The commit 6ded286555c2 ("sh_eth: Fix RX recovery on R-Car in case of RX
ring underrun") added a check for an bad RDFAR offset in sh_eth_rx(), so
that the code could work on the R-Car Ether controllers which don't have
this register (and TDFAR), then the commit 3365711df02 ("sh_eth: WARN on
access to a register not implemented in a particular chip") replaced
offset 0 with 0xffff. Adding/checking the 'no_xdfar' bit field in the
'struct sh_eth_cpu_data' instead results in less object code...

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
drivers/net/ethernet/renesas/sh_eth.h