Skip to contentSkip to conversation

powerpc/t1040rdb: added a break in switch case

PATCH New shh.xie at gmail.com 2 participants 2 messages Apr 11, 2014 – Apr 23, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/t1040rdb: added a break in switch case

From: Shaohui Xie <[email protected]>

There should be a break for case PHY_INTERFACE_MODE_SGMII, otherwise it will fall into case PHY_INTERFACE_MODE_RGMII.

---
 board/freescale/t104xrdb/eth.c | 1 +
 1 file changed, 1 insertion(+)
board/freescale/t104xrdb/eth.c +1 -0
index 0188fd4..63e5f90 100644
@@ -41,6 +41,7 @@ int board_eth_init(bd_t *bis)
 			/* T1040RDB only supports SGMII on DTSEC3 */
 			fm_info_set_phy_address(FM1_DTSEC3,
 						CONFIG_SYS_SGMII1_PHY_ADDR);
+			break;
 #endif
 		case PHY_INTERFACE_MODE_RGMII:
 			if (FM1_DTSEC4 == i)
Signature · 1 line
1.8.0
#1 lore raw

PATCH 1/1 powerpc/t1040rdb: added a break in switch case

Quoted 7 lines · shh.xie at gmail.com

From: Shaohui Xie <[email protected]>

There should be a break for case PHY_INTERFACE_MODE_SGMII, otherwise it will fall into case PHY_INTERFACE_MODE_RGMII.

---

Applied to u-boot-mpc85xx/master, thanks.

York