Skip to content

Commit

Permalink
ibm_newemac: Fix EMACx_TRTR[TRT] bit shifts
Browse files Browse the repository at this point in the history
The TRT bit shifts were reversed for EMAC4 and non-EMAC4 during the
port from ibm_emac to ibm_newemac. This patch corrects that error.

Signed-off-by: Dave Mitchell <dmitchell@appliedmicro.com>
Acked-by: Feng Kan <fkan@appliedmicro.com>
Acked-by: Prodyut Hazarika <phazarika@appliedmicro.com>
Acked-by: Stefan Roese <sr@denx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Dave Mitchell authored and davem330 committed Nov 18, 2009
1 parent 6b863d1 commit 4acc5a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ibm_newemac/emac.h
Expand Up @@ -263,8 +263,8 @@ struct emac_regs {


/* EMACx_TRTR */
#define EMAC_TRTR_SHIFT_EMAC4 27
#define EMAC_TRTR_SHIFT 24
#define EMAC_TRTR_SHIFT_EMAC4 24
#define EMAC_TRTR_SHIFT 27

/* EMAC specific TX descriptor control fields (write access) */
#define EMAC_TX_CTRL_GFCS 0x0200
Expand Down

0 comments on commit 4acc5a8

Please sign in to comment.