Skip to contentSkip to conversation

sh_eth: enable RX descriptor word 0 shift on SH7734

PATCH Applied Sergei Shtylyov 2 participants 2 messages Jan 4, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sh_eth: enable RX descriptor word 0 shift on SH7734

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")

---
The patch is against DaveM's 'net.git' repo.

 drivers/net/ethernet/renesas/sh_eth.c |    1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/renesas/sh_eth.c +1 -0
Index: net/drivers/net/ethernet/renesas/sh_eth.c
===================================================================
@@ -819,6 +819,7 @@ static struct sh_eth_cpu_data sh7734_dat
 	.tsu		= 1,
 	.hw_crc		= 1,
 	.select_mii	= 1,
+	.shift_rd0	= 1,
 };
 
 /* SH7763 */
maintainer Applied
#1 lore raw

From: Sergei Shtylyov <[email protected]>
Date: Wed, 04 Jan 2017 23:10:23 +0300

Quoted 6 lines

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")

Applied, thank you.