Patchwork [U-Boot,1/2] Davinci: Fixed wrong EMAC_MDIO_PHY_MASK

login
register
mail settings
Submitter andreas.gaer@baslerweb.com
Date April 21, 2010, 8:27 a.m.
Message ID <1271838423-20183-2-git-send-email-andreas.gaer@baslerweb.com>
Download mbox | patch
Permalink /patch/71773/
State Rejected
Delegated to: Sandeep Paulraj
Headers show

Comments

andreas.gaer@baslerweb.com - April 21, 2010, 8:27 a.m.
From: Andreas Gaeer <Andreas.Gaer@baslerweb.com>

Signed-off-by: Andreas Gaeer <Andreas.Gaer@baslerweb.com>
---
 arch/arm/include/asm/arch-davinci/emac_defs.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/arch/arm/include/asm/arch-davinci/emac_defs.h b/arch/arm/include/asm/arch-davinci/emac_defs.h
index b0ec8f5..baee6aa 100644
--- a/arch/arm/include/asm/arch-davinci/emac_defs.h
+++ b/arch/arm/include/asm/arch-davinci/emac_defs.h
@@ -86,7 +86,7 @@ 
 
 /* PHY mask - set only those phy number bits where phy is/can be connected */
 #define EMAC_MDIO_PHY_NUM           1
-#define EMAC_MDIO_PHY_MASK          (1 << EMAC_MDIO_PHY_NUM)
+#define EMAC_MDIO_PHY_MASK          ((1 << EMAC_MDIO_PHY_NUM)-1)
 
 /* Ethernet Min/Max packet size */
 #define EMAC_MIN_ETHERNET_PKT_SIZE	60