]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ibm_newemac: Fix EMACx_TRTR[TRT] bit shifts
authorDave Mitchell <dmitchell@appliedmicro.com>
Tue, 17 Nov 2009 14:56:55 +0000 (14:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Nov 2009 13:11:09 +0000 (05:11 -0800)
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>
drivers/net/ibm_newemac/emac.h

index d34adf99fc6a45c87d5294f05b675251131b52dd..8a61b597a169e78a3a6035e274cc919bfa13b301 100644 (file)
@@ -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