Skip to content

Commit

Permalink
sh_eth: fix *enum* RPADIR_BIT
Browse files Browse the repository at this point in the history
The *enum*  RPADIR_BIT  was declared in the commit 86a74ff ("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>
  • Loading branch information
Sergei Shtylyov authored and David S. Miller committed Jun 26, 2018
1 parent 2f533f6 commit b13ca09
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/ethernet/renesas/sh_eth.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit b13ca09

Please sign in to comment.