]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
sh_eth: fix *enum* RPADIR_BIT
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Mon, 25 Jun 2018 20:36:21 +0000 (23:36 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Jun 2018 14:15:43 +0000 (23:15 +0900)
The *enum*  RPADIR_BIT  was declared in the commit 86a74ff21a7a ("net:
sh_eth: add support for Renesas SuperH Ethernet") adding SH771x support,
however the SH771x manual doesn't have the RPADIR register described and,
moreover, tells why the padding insertion must not be used. The newer SoC
manuals do have RPADIR documented, though with somewhat different layout --
update the *enum* according to these manuals...

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.h

index 726c55a82dd7b76e1d90a836cddcd66bcbf96a24..ae3ef5d75e40dd379ca4599cdb270e30fec157a8 100644 (file)
@@ -403,8 +403,7 @@ enum DESC_I_BIT {
 
 /* RPADIR */
 enum RPADIR_BIT {
-       RPADIR_PADS1 = 0x20000, RPADIR_PADS0 = 0x10000,
-       RPADIR_PADR = 0x0003f,
+       RPADIR_PADS = 0x1f0000, RPADIR_PADR = 0xffff,
 };
 
 /* FDR */