sh_eth: enable RX descriptor word 0 shift on SH7734
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Wed, 4 Jan 2017 20:10:23 +0000 (23:10 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Jan 2017 21:12:14 +0000 (16:12 -0500)
The RX descriptor word 0 on SH7734 has the RFS[9:0] field in bits 16-25
(bits  0-15 usually used for that are occupied by the packet checksum).
Thus  we need to set the 'shift_rd0'  field in the SH7734 SoC data...

Fixes: f0e81fecd4f8 ("net: sh_eth: Add support SH7734")
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

index 0af7fc279c8560d130642e65a5e87a702699ee34..00fafabab1d08ed505130ceab5306255c9910087 100644 (file)
@@ -819,6 +819,7 @@ static struct sh_eth_cpu_data sh7734_data = {
        .tsu            = 1,
        .hw_crc         = 1,
        .select_mii     = 1,
+       .shift_rd0      = 1,
 };
 
 /* SH7763 */