Enable poromisc mode by default to allow using multiple MAC address on same FEC interfaces. We already use poromisc mode on designware stmmac, so it will make behavior more consistent on different systems. Signed-off-by: Oleksij Rempel <o.rempel@xxxxxxxxxxxxxx> --- drivers/net/fec_imx.c | 3 +++ drivers/net/fec_imx.h | 1 + 2 files changed, 4 insertions(+) diff --git a/drivers/net/fec_imx.c b/drivers/net/fec_imx.c index 673555a48a..9aa4b4f595 100644 --- a/drivers/net/fec_imx.c +++ b/drivers/net/fec_imx.c @@ -262,6 +262,9 @@ static int fec_init(struct eth_device *dev) */ rcntl = FEC_R_CNTRL_MAX_FL(1518); + /* Set promisc mode to make switches with different ethaddr work */ + rcntl |= FEC_R_CNTRL_PROMISC; + rcntl |= FEC_R_CNTRL_MII_MODE; /* * Set MII_SPEED = (1/(mii_speed * 2)) * System Clock diff --git a/drivers/net/fec_imx.h b/drivers/net/fec_imx.h index 316eefe48f..9bb1c64b55 100644 --- a/drivers/net/fec_imx.h +++ b/drivers/net/fec_imx.h @@ -58,6 +58,7 @@ #define FEC_R_CNTRL_RMII_10T (1 << 9) /* i.MX28 specific */ #define FEC_R_CNTRL_RMII_MODE (1 << 8) /* i.MX28 specific */ #define FEC_R_CNTRL_FCE (1 << 5) +#define FEC_R_CNTRL_PROMISC (1 << 3) #define FEC_R_CNTRL_MII_MODE (1 << 2) #define FEC_IEVENT_HBERR 0x80000000 /* Note: Not on i.MX28 */ -- 2.30.2