[U-Boot] [PATCH V2 1/5] net: fec_mxc: Fix DM driver issue in recv

From: Ye Li ye.li@nxp.com
When using ethernet DM driver, the recv interface has a change with non-DM interface, that driver needs to set the packet pointer and provide it to upper layer to process.
In fec driver, the fecmxc_recv functions does not handle the packet pointer parameter. This may cause crash in upper layer processing because the packet pointer is not set.
This patch allocates a buffer for the packet pointer and free it through free_pkt interface.
Signed-off-by: Ye Li ye.li@nxp.com Reviewed-by: Peng Fan peng.fan@nxp.com Acked-by: Joe Hershberger joe.hershberger@ni.com ---
V2: Fix build warning for mx28
drivers/net/fec_mxc.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+)
diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index ff7ad91116..617e504293 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -806,7 +806,16 @@ static int fec_recv(struct eth_device *dev) uint16_t bd_status; ulong addr, size, end; int i; + +#ifdef CONFIG_DM_ETH + *packetp = memalign(ARCH_DMA_MINALIGN, FEC_MAX_PKT_SIZE); + if (*packetp == 0) { + printf("%s: error allocating packetp\n", __func__); + return -ENOMEM; + } +#else ALLOC_CACHE_ALIGN_BUFFER(uchar, buff, FEC_MAX_PKT_SIZE); +#endif
/* Check if any critical events have happened */ ievent = readl(&fec->eth->ievent); @@ -882,8 +891,13 @@ static int fec_recv(struct eth_device *dev) #ifdef CONFIG_FEC_MXC_SWAP_PACKET swap_packet((uint32_t *)addr, frame_length); #endif + +#ifdef CONFIG_DM_ETH + memcpy(*packetp, (char *)addr, frame_length); +#else memcpy(buff, (char *)addr, frame_length); net_process_received_packet(buff, frame_length); +#endif len = frame_length; } else { if (bd_status & FEC_RBD_ERR) @@ -1201,10 +1215,19 @@ static int fecmxc_read_rom_hwaddr(struct udevice *dev) return fec_get_hwaddr(priv->dev_id, pdata->enetaddr); }
+static int fecmxc_free_pkt(struct udevice *dev, uchar *packet, int length) +{ + if (packet) + free(packet); + + return 0; +} + static const struct eth_ops fecmxc_ops = { .start = fecmxc_init, .send = fecmxc_send, .recv = fecmxc_recv, + .free_pkt = fecmxc_free_pkt, .stop = fecmxc_halt, .write_hwaddr = fecmxc_set_hwaddr, .read_rom_hwaddr = fecmxc_read_rom_hwaddr,

No need to provide two prototype for this function. Use ulong for the first parameter, then this function could be shared for DM/non DM case.
Signed-off-by: Peng Fan peng.fan@nxp.com Acked-by: Joe Hershberger joe.hershberger@ni.com ---
V2: Drop uneccessary ulong
drivers/net/fec_mxc.c | 15 +++------------ include/netdev.h | 6 +----- 2 files changed, 4 insertions(+), 17 deletions(-)
diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index 617e504293..953252a92e 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -1011,18 +1011,9 @@ static void fec_free_descs(struct fec_priv *fec) free(fec->tbd_base); }
-#ifdef CONFIG_DM_ETH -struct mii_dev *fec_get_miibus(struct udevice *dev, int dev_id) -#else -struct mii_dev *fec_get_miibus(uint32_t base_addr, int dev_id) -#endif +struct mii_dev *fec_get_miibus(ulong base_addr, int dev_id) { -#ifdef CONFIG_DM_ETH - struct fec_priv *priv = dev_get_priv(dev); - struct ethernet_regs *eth = priv->eth; -#else - struct ethernet_regs *eth = (struct ethernet_regs *)(ulong)base_addr; -#endif + struct ethernet_regs *eth = (struct ethernet_regs *)base_addr; struct mii_dev *bus; int ret;
@@ -1282,7 +1273,7 @@ static int fecmxc_probe(struct udevice *dev) fec_reg_setup(priv); priv->dev_id = (dev_id == -1) ? 0 : dev_id;
- bus = fec_get_miibus(dev, dev_id); + bus = fec_get_miibus((ulong)priv->eth, dev_id); if (!bus) { ret = -ENOMEM; goto err_mii; diff --git a/include/netdev.h b/include/netdev.h index 3958a4cd32..c96f851be0 100644 --- a/include/netdev.h +++ b/include/netdev.h @@ -119,11 +119,7 @@ static inline int pci_eth_init(bd_t *bis) return num; }
-#ifdef CONFIG_DM_ETH -struct mii_dev *fec_get_miibus(struct udevice *dev, int dev_id); -#else -struct mii_dev *fec_get_miibus(uint32_t base_addr, int dev_id); -#endif +struct mii_dev *fec_get_miibus(ulong base_addr, int dev_id);
#ifdef CONFIG_PHYLIB struct phy_device;

To platforms has two enet interface, using dev->seq could avoid conflict.
i.MX6UL/ULL evk board net get the wrong MAC address from fuse, eth1 get MAC0 address, eth0 get MAC1 address from fuse. Set the priv->dev_id to device->seq as the real net interface alias id then .fec_get_hwaddr() read the related MAC address from fuse.
Signed-off-by: Peng Fan peng.fan@nxp.com Acked-by: Joe Hershberger joe.hershberger@ni.com --- drivers/net/fec_mxc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index 953252a92e..4f1c906a72 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -1250,7 +1250,6 @@ static int fecmxc_probe(struct udevice *dev) struct eth_pdata *pdata = dev_get_platdata(dev); struct fec_priv *priv = dev_get_priv(dev); struct mii_dev *bus = NULL; - int dev_id = -1; uint32_t start; int ret;
@@ -1271,9 +1270,9 @@ static int fecmxc_probe(struct udevice *dev) }
fec_reg_setup(priv); - priv->dev_id = (dev_id == -1) ? 0 : dev_id;
- bus = fec_get_miibus((ulong)priv->eth, dev_id); + priv->dev_id = dev->seq; + bus = fec_get_miibus((ulong)priv->eth, dev->seq); if (!bus) { ret = -ENOMEM; goto err_mii;

On i.MX6SX, 6UL and 7D, there are two enet controllers each has a MDIO port. But Some boards share one MDIO port for the two enets. So introduce a configuration CONFIG_FEC_MXC_MDIO_BASE to indicate the MDIO port for sharing.
To i.MX28, adapt to use the new config
Signed-off-by: Peng Fan peng.fan@nxp.com Acked-by: Joe Hershberger joe.hershberger@ni.com Cc: Fabio Estevam fabio.estevam@nxp.com ---
V2: adapt mx28 to use FEC_MXC_MDIO_BASE
drivers/net/Kconfig | 9 ++++++++- drivers/net/fec_mxc.c | 8 ++++++-- include/configs/mx28evk.h | 1 + 3 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index de1947ccc1..c5fd6f648a 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -147,9 +147,16 @@ config ETHOC help This MAC is present in OpenRISC and Xtensa XTFPGA boards.
+config FEC_MXC_MDIO_BASE + hex "MDIO base address for the FEC controller" + depends on FEC_MXC + help + This specifies the MDIO registers base address. It is used when + two FEC controllers share MDIO bus. + config FEC_MXC bool "FEC Ethernet controller" - depends on MX5 || MX6 + depends on MX5 || MX6 || MX7 help This driver supports the 10/100 Fast Ethernet controller for NXP i.MX processors. diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index 4f1c906a72..ba66c2f95a 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -1145,12 +1145,12 @@ int fecmxc_initialize_multi(bd_t *bd, int dev_id, int phy_id, uint32_t addr) #endif int ret;
-#ifdef CONFIG_MX28 +#ifdef CONFIG_FEC_MXC_MDIO_BASE /* * The i.MX28 has two ethernet interfaces, but they are not equal. * Only the first one can access the MDIO bus. */ - base_mii = MXS_ENET0_BASE; + base_mii = CONFIG_FEC_MXC_MDIO_BASE; #else base_mii = addr; #endif @@ -1272,7 +1272,11 @@ static int fecmxc_probe(struct udevice *dev) fec_reg_setup(priv);
priv->dev_id = dev->seq; +#ifdef CONFIG_FEC_MXC_MDIO_BASE + bus = fec_get_miibus((ulong)CONFIG_FEC_MXC_MDIO_BASE, dev->seq); +#else bus = fec_get_miibus((ulong)priv->eth, dev->seq); +#endif if (!bus) { ret = -ENOMEM; goto err_mii; diff --git a/include/configs/mx28evk.h b/include/configs/mx28evk.h index bc58ca5c62..79d4c9b2ce 100644 --- a/include/configs/mx28evk.h +++ b/include/configs/mx28evk.h @@ -65,6 +65,7 @@ /* FEC Ethernet on SoC */ #ifdef CONFIG_CMD_NET #define CONFIG_FEC_MXC +#define CONFIG_FEC_MXC_MDIO_BASE MXS_ENET0_BASE #define CONFIG_MX28_FEC_MAC_IN_OCOTP #endif

On Wed, Mar 21, 2018 at 2:31 PM, Peng Fan peng.fan@nxp.com wrote:
On i.MX6SX, 6UL and 7D, there are two enet controllers each has a MDIO port. But Some boards share one MDIO port for the two enets. So introduce a configuration CONFIG_FEC_MXC_MDIO_BASE to indicate the MDIO port for sharing.
To i.MX28, adapt to use the new config
Signed-off-by: Peng Fan peng.fan@nxp.com Acked-by: Joe Hershberger joe.hershberger@ni.com Cc: Fabio Estevam fabio.estevam@nxp.com
V2: adapt mx28 to use FEC_MXC_MDIO_BASE
drivers/net/Kconfig | 9 ++++++++- drivers/net/fec_mxc.c | 8 ++++++-- include/configs/mx28evk.h | 1 + 3 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index de1947ccc1..c5fd6f648a 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -147,9 +147,16 @@ config ETHOC help This MAC is present in OpenRISC and Xtensa XTFPGA boards.
+config FEC_MXC_MDIO_BASE
hex "MDIO base address for the FEC controller"
depends on FEC_MXC
help
This specifies the MDIO registers base address. It is used when
two FEC controllers share MDIO bus.
How about retrieving this from dt? we have board that support dt along with dm supporting.
Jagan.

-----Original Message----- From: Jagan Teki [mailto:jagannadh.teki@gmail.com] Sent: 2018年3月21日 17:19 To: Peng Fan peng.fan@nxp.com Cc: Joe Hershberger joe.hershberger@ni.com; Fabio Estevam fabio.estevam@nxp.com; U-Boot Mailing List u-boot@lists.denx.de Subject: Re: [U-Boot] [PATCH V2 4/5] net: fec: sharing MDIO for two enet controllers
On Wed, Mar 21, 2018 at 2:31 PM, Peng Fan peng.fan@nxp.com wrote:
On i.MX6SX, 6UL and 7D, there are two enet controllers each has a MDIO port. But Some boards share one MDIO port for the two enets. So introduce a configuration CONFIG_FEC_MXC_MDIO_BASE to indicate the MDIO port for sharing.
To i.MX28, adapt to use the new config
Signed-off-by: Peng Fan peng.fan@nxp.com Acked-by: Joe Hershberger joe.hershberger@ni.com Cc: Fabio Estevam fabio.estevam@nxp.com
V2: adapt mx28 to use FEC_MXC_MDIO_BASE
drivers/net/Kconfig | 9 ++++++++- drivers/net/fec_mxc.c | 8 ++++++-- include/configs/mx28evk.h | 1 + 3 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index de1947ccc1..c5fd6f648a 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -147,9 +147,16 @@ config ETHOC help This MAC is present in OpenRISC and Xtensa XTFPGA boards.
+config FEC_MXC_MDIO_BASE
hex "MDIO base address for the FEC controller"
depends on FEC_MXC
help
This specifies the MDIO registers base address. It is used when
two FEC controllers share MDIO bus.
How about retrieving this from dt? we have board that support dt along with dm supporting.
It's ok to retrieve the info from dt, but we are not only support dt, we also need to support non-dt case. Define FEC_MXC_MDIO_BASE is the simplest method to achieve that I think.
Thanks, Peng.
Jagan.
Jagan Teki Free Software Engineer | https://emea01.safelinks.protection.outlook.com/?url=www.openedev.com&da ta=02%7C01%7Cpeng.fan%40nxp.com%7Ca54a1113dc41442592e108d58f0cce cf%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C6365722075248105 65&sdata=tos3ch1hdzrdQcoiAlB3l1dOCQ6%2Ff4ahk3RptQNjLcA%3D&reserved =0 U-Boot, Linux | Upstream Maintainer Hyderabad, India.

On Wed, Mar 21, 2018 at 2:54 PM, Peng Fan peng.fan@nxp.com wrote:
-----Original Message----- From: Jagan Teki [mailto:jagannadh.teki@gmail.com] Sent: 2018年3月21日 17:19 To: Peng Fan peng.fan@nxp.com Cc: Joe Hershberger joe.hershberger@ni.com; Fabio Estevam fabio.estevam@nxp.com; U-Boot Mailing List u-boot@lists.denx.de Subject: Re: [U-Boot] [PATCH V2 4/5] net: fec: sharing MDIO for two enet controllers
On Wed, Mar 21, 2018 at 2:31 PM, Peng Fan peng.fan@nxp.com wrote:
On i.MX6SX, 6UL and 7D, there are two enet controllers each has a MDIO port. But Some boards share one MDIO port for the two enets. So introduce a configuration CONFIG_FEC_MXC_MDIO_BASE to indicate the MDIO port for sharing.
To i.MX28, adapt to use the new config
Signed-off-by: Peng Fan peng.fan@nxp.com Acked-by: Joe Hershberger joe.hershberger@ni.com Cc: Fabio Estevam fabio.estevam@nxp.com
V2: adapt mx28 to use FEC_MXC_MDIO_BASE
drivers/net/Kconfig | 9 ++++++++- drivers/net/fec_mxc.c | 8 ++++++-- include/configs/mx28evk.h | 1 + 3 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index de1947ccc1..c5fd6f648a 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -147,9 +147,16 @@ config ETHOC help This MAC is present in OpenRISC and Xtensa XTFPGA boards.
+config FEC_MXC_MDIO_BASE
hex "MDIO base address for the FEC controller"
depends on FEC_MXC
help
This specifies the MDIO registers base address. It is used when
two FEC controllers share MDIO bus.
How about retrieving this from dt? we have board that support dt along with dm supporting.
It's ok to retrieve the info from dt, but we are not only support dt, we also need to support non-dt case. Define FEC_MXC_MDIO_BASE is the simplest method to achieve that I think.
But patch adds the same for DM case which usually retrieve the info from dt, point here is to get rid of ifdef and new CONFIG_ ie where DM and dts play smart atleast.

-----Original Message----- From: Jagan Teki [mailto:jagannadh.teki@gmail.com] Sent: 2018年3月21日 17:31 To: Peng Fan peng.fan@nxp.com Cc: Joe Hershberger joe.hershberger@ni.com; Fabio Estevam fabio.estevam@nxp.com; U-Boot Mailing List u-boot@lists.denx.de Subject: Re: [U-Boot] [PATCH V2 4/5] net: fec: sharing MDIO for two enet controllers
On Wed, Mar 21, 2018 at 2:54 PM, Peng Fan peng.fan@nxp.com wrote:
-----Original Message----- From: Jagan Teki [mailto:jagannadh.teki@gmail.com] Sent: 2018年3月21日 17:19 To: Peng Fan peng.fan@nxp.com Cc: Joe Hershberger joe.hershberger@ni.com; Fabio Estevam fabio.estevam@nxp.com; U-Boot Mailing List u-boot@lists.denx.de Subject: Re: [U-Boot] [PATCH V2 4/5] net: fec: sharing MDIO for two enet controllers
On Wed, Mar 21, 2018 at 2:31 PM, Peng Fan peng.fan@nxp.com wrote:
On i.MX6SX, 6UL and 7D, there are two enet controllers each has a MDIO port. But Some boards share one MDIO port for the two enets. So introduce a configuration CONFIG_FEC_MXC_MDIO_BASE to indicate the MDIO port for sharing.
To i.MX28, adapt to use the new config
Signed-off-by: Peng Fan peng.fan@nxp.com Acked-by: Joe Hershberger joe.hershberger@ni.com Cc: Fabio Estevam fabio.estevam@nxp.com
V2: adapt mx28 to use FEC_MXC_MDIO_BASE
drivers/net/Kconfig | 9 ++++++++- drivers/net/fec_mxc.c | 8 ++++++-- include/configs/mx28evk.h | 1 + 3 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index de1947ccc1..c5fd6f648a 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -147,9 +147,16 @@ config ETHOC help This MAC is present in OpenRISC and Xtensa XTFPGA boards.
+config FEC_MXC_MDIO_BASE
hex "MDIO base address for the FEC controller"
depends on FEC_MXC
help
This specifies the MDIO registers base address. It is used when
two FEC controllers share MDIO bus.
How about retrieving this from dt? we have board that support dt along with dm supporting.
It's ok to retrieve the info from dt, but we are not only support dt, we also need to support non-dt case. Define FEC_MXC_MDIO_BASE is the simplest method to achieve that I think.
But patch adds the same for DM case which usually retrieve the info from dt, point here is to get rid of ifdef and new CONFIG_ ie where DM and dts play smart atleast.
The uboot fec_mxc driver or net driver is not that sync with linux code, Using dt here, need to parse phy-handle = <ðphy0>;, then parse ethphy0 parent to get reg, I just think this like hack.
Regards, Peng.

On Wed, Mar 21, 2018 at 3:12 PM, Peng Fan peng.fan@nxp.com wrote:
-----Original Message----- From: Jagan Teki [mailto:jagannadh.teki@gmail.com] Sent: 2018年3月21日 17:31 To: Peng Fan peng.fan@nxp.com Cc: Joe Hershberger joe.hershberger@ni.com; Fabio Estevam fabio.estevam@nxp.com; U-Boot Mailing List u-boot@lists.denx.de Subject: Re: [U-Boot] [PATCH V2 4/5] net: fec: sharing MDIO for two enet controllers
On Wed, Mar 21, 2018 at 2:54 PM, Peng Fan peng.fan@nxp.com wrote:
-----Original Message----- From: Jagan Teki [mailto:jagannadh.teki@gmail.com] Sent: 2018年3月21日 17:19 To: Peng Fan peng.fan@nxp.com Cc: Joe Hershberger joe.hershberger@ni.com; Fabio Estevam fabio.estevam@nxp.com; U-Boot Mailing List u-boot@lists.denx.de Subject: Re: [U-Boot] [PATCH V2 4/5] net: fec: sharing MDIO for two enet controllers
On Wed, Mar 21, 2018 at 2:31 PM, Peng Fan peng.fan@nxp.com wrote:
On i.MX6SX, 6UL and 7D, there are two enet controllers each has a MDIO port. But Some boards share one MDIO port for the two enets. So introduce a configuration CONFIG_FEC_MXC_MDIO_BASE to indicate the MDIO port for sharing.
To i.MX28, adapt to use the new config
Signed-off-by: Peng Fan peng.fan@nxp.com Acked-by: Joe Hershberger joe.hershberger@ni.com Cc: Fabio Estevam fabio.estevam@nxp.com
V2: adapt mx28 to use FEC_MXC_MDIO_BASE
drivers/net/Kconfig | 9 ++++++++- drivers/net/fec_mxc.c | 8 ++++++-- include/configs/mx28evk.h | 1 + 3 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index de1947ccc1..c5fd6f648a 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -147,9 +147,16 @@ config ETHOC help This MAC is present in OpenRISC and Xtensa XTFPGA boards.
+config FEC_MXC_MDIO_BASE
hex "MDIO base address for the FEC controller"
depends on FEC_MXC
help
This specifies the MDIO registers base address. It is used when
two FEC controllers share MDIO bus.
How about retrieving this from dt? we have board that support dt along with dm supporting.
It's ok to retrieve the info from dt, but we are not only support dt, we also need to support non-dt case. Define FEC_MXC_MDIO_BASE is the simplest method to achieve that I think.
But patch adds the same for DM case which usually retrieve the info from dt, point here is to get rid of ifdef and new CONFIG_ ie where DM and dts play smart atleast.
The uboot fec_mxc driver or net driver is not that sync with linux code, Using dt here, need to parse phy-handle = <ðphy0>;, then parse ethphy0 parent to get reg, I just think this like hack.
No, I think we can do this with adding new DM MDIO similar to DM PHY which recently done. May be some sort of efforts but it is permanent.

-----Original Message----- From: Jagan Teki [mailto:jagannadh.teki@gmail.com] Sent: 2018年3月21日 17:19 To: Peng Fan peng.fan@nxp.com Cc: Joe Hershberger joe.hershberger@ni.com; Fabio Estevam fabio.estevam@nxp.com; U-Boot Mailing List u-boot@lists.denx.de Subject: Re: [U-Boot] [PATCH V2 4/5] net: fec: sharing MDIO for two enet controllers
On Wed, Mar 21, 2018 at 2:31 PM, Peng Fan peng.fan@nxp.com
wrote:
On i.MX6SX, 6UL and 7D, there are two enet controllers each has a MDIO port. But Some boards share one MDIO port for the two enets. So introduce a configuration CONFIG_FEC_MXC_MDIO_BASE to indicate the MDIO port for sharing.
To i.MX28, adapt to use the new config
Signed-off-by: Peng Fan peng.fan@nxp.com Acked-by: Joe Hershberger joe.hershberger@ni.com Cc: Fabio Estevam fabio.estevam@nxp.com
V2: adapt mx28 to use FEC_MXC_MDIO_BASE
drivers/net/Kconfig | 9 ++++++++- drivers/net/fec_mxc.c | 8 ++++++-- include/configs/mx28evk.h | 1 + 3 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index de1947ccc1..c5fd6f648a 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -147,9 +147,16 @@ config ETHOC help This MAC is present in OpenRISC and Xtensa XTFPGA
boards.
+config FEC_MXC_MDIO_BASE
hex "MDIO base address for the FEC controller"
depends on FEC_MXC
help
This specifies the MDIO registers base address. It is used
when
two FEC controllers share MDIO bus.
How about retrieving this from dt? we have board that support dt along with dm supporting.
It's ok to retrieve the info from dt, but we are not only support dt, we also need to support non-dt case. Define FEC_MXC_MDIO_BASE is the simplest method to achieve that I think.
But patch adds the same for DM case which usually retrieve the info from dt, point here is to get rid of ifdef and new CONFIG_ ie where DM and dts play smart atleast.
The uboot fec_mxc driver or net driver is not that sync with linux code, Using dt here, need to parse phy-handle = <ðphy0>;, then parse ethphy0 parent to get reg, I just think this like hack.
No, I think we can do this with adding new DM MDIO similar to DM PHY which recently done. May be some sort of efforts but it is permanent.
We do not have that driver now, so could we first have this patch? When DM MDIO ready, this piece code could be removed then?
Thanks, Peng.

On Wed, Mar 21, 2018 at 6:54 PM, Peng Fan peng.fan@nxp.com wrote:
-----Original Message----- From: Jagan Teki [mailto:jagannadh.teki@gmail.com] Sent: 2018年3月21日 17:19 To: Peng Fan peng.fan@nxp.com Cc: Joe Hershberger joe.hershberger@ni.com; Fabio Estevam fabio.estevam@nxp.com; U-Boot Mailing List u-boot@lists.denx.de Subject: Re: [U-Boot] [PATCH V2 4/5] net: fec: sharing MDIO for two enet controllers
On Wed, Mar 21, 2018 at 2:31 PM, Peng Fan peng.fan@nxp.com
wrote:
> On i.MX6SX, 6UL and 7D, there are two enet controllers each has > a MDIO port. But Some boards share one MDIO port for the two enets. > So introduce a configuration CONFIG_FEC_MXC_MDIO_BASE to > indicate the MDIO port for sharing. > > To i.MX28, adapt to use the new config > > Signed-off-by: Peng Fan peng.fan@nxp.com > Acked-by: Joe Hershberger joe.hershberger@ni.com > Cc: Fabio Estevam fabio.estevam@nxp.com > --- > > V2: > adapt mx28 to use FEC_MXC_MDIO_BASE > > drivers/net/Kconfig | 9 ++++++++- > drivers/net/fec_mxc.c | 8 ++++++-- > include/configs/mx28evk.h | 1 + > 3 files changed, 15 insertions(+), 3 deletions(-) > > diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index > de1947ccc1..c5fd6f648a 100644 > --- a/drivers/net/Kconfig > +++ b/drivers/net/Kconfig > @@ -147,9 +147,16 @@ config ETHOC > help > This MAC is present in OpenRISC and Xtensa XTFPGA
boards.
> > +config FEC_MXC_MDIO_BASE > + hex "MDIO base address for the FEC controller" > + depends on FEC_MXC > + help > + This specifies the MDIO registers base address. It is used
when
> + two FEC controllers share MDIO bus.
How about retrieving this from dt? we have board that support dt along with dm supporting.
It's ok to retrieve the info from dt, but we are not only support dt, we also need to support non-dt case. Define FEC_MXC_MDIO_BASE is the simplest method to achieve that I think.
But patch adds the same for DM case which usually retrieve the info from dt, point here is to get rid of ifdef and new CONFIG_ ie where DM and dts play smart atleast.
The uboot fec_mxc driver or net driver is not that sync with linux code, Using dt here, need to parse phy-handle = <ðphy0>;, then parse ethphy0 parent to get reg, I just think this like hack.
No, I think we can do this with adding new DM MDIO similar to DM PHY which recently done. May be some sort of efforts but it is permanent.
We do not have that driver now, so could we first have this patch? When DM MDIO ready, this piece code could be removed then?
ie. up to Joe. Honestly this macro become removed in future, my point here is why we need to maintain dead macro instead of adding proper maintainable stuff. I'm pretty sure adding DM_MDIO is straight forward and as of now just add what we need and rest will implement future. You may become victim to others to move DM_ETH as soon as possible :)

On Wed, Mar 21, 2018 at 1:29 PM, Jagan Teki jagannadh.teki@gmail.com wrote:
On Wed, Mar 21, 2018 at 6:54 PM, Peng Fan peng.fan@nxp.com wrote:
> -----Original Message----- > From: Jagan Teki [mailto:jagannadh.teki@gmail.com] > Sent: 2018年3月21日 17:19 > To: Peng Fan peng.fan@nxp.com > Cc: Joe Hershberger joe.hershberger@ni.com; Fabio Estevam > fabio.estevam@nxp.com; U-Boot Mailing List > u-boot@lists.denx.de > Subject: Re: [U-Boot] [PATCH V2 4/5] net: fec: sharing MDIO for > two enet controllers > > On Wed, Mar 21, 2018 at 2:31 PM, Peng Fan peng.fan@nxp.com
wrote:
> > On i.MX6SX, 6UL and 7D, there are two enet controllers each has > > a MDIO port. But Some boards share one MDIO port for the two enets. > > So introduce a configuration CONFIG_FEC_MXC_MDIO_BASE to > > indicate the MDIO port for sharing. > > > > To i.MX28, adapt to use the new config > > > > Signed-off-by: Peng Fan peng.fan@nxp.com > > Acked-by: Joe Hershberger joe.hershberger@ni.com > > Cc: Fabio Estevam fabio.estevam@nxp.com > > --- > > > > V2: > > adapt mx28 to use FEC_MXC_MDIO_BASE > > > > drivers/net/Kconfig | 9 ++++++++- > > drivers/net/fec_mxc.c | 8 ++++++-- > > include/configs/mx28evk.h | 1 + > > 3 files changed, 15 insertions(+), 3 deletions(-) > > > > diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index > > de1947ccc1..c5fd6f648a 100644 > > --- a/drivers/net/Kconfig > > +++ b/drivers/net/Kconfig > > @@ -147,9 +147,16 @@ config ETHOC > > help > > This MAC is present in OpenRISC and Xtensa XTFPGA
boards.
> > > > +config FEC_MXC_MDIO_BASE > > + hex "MDIO base address for the FEC controller" > > + depends on FEC_MXC > > + help > > + This specifies the MDIO registers base address. It is used
when
> > + two FEC controllers share MDIO bus. > > How about retrieving this from dt? we have board that support dt > along with dm supporting.
It's ok to retrieve the info from dt, but we are not only support dt, we also need to support non-dt case. Define FEC_MXC_MDIO_BASE is the simplest method to achieve that I think.
But patch adds the same for DM case which usually retrieve the info from dt, point here is to get rid of ifdef and new CONFIG_ ie where DM and dts play smart atleast.
The uboot fec_mxc driver or net driver is not that sync with linux code, Using dt here, need to parse phy-handle = <ðphy0>;, then parse ethphy0 parent to get reg, I just think this like hack.
No, I think we can do this with adding new DM MDIO similar to DM PHY which recently done. May be some sort of efforts but it is permanent.
We do not have that driver now, so could we first have this patch? When DM MDIO ready, this piece code could be removed then?
ie. up to Joe. Honestly this macro become removed in future, my point here is why we need to maintain dead macro instead of adding proper maintainable stuff. I'm pretty sure adding DM_MDIO is straight forward and as of now just add what we need and rest will implement future. You may become victim to others to move DM_ETH as soon as possible :)
It would be ideal if you wanted to implement DM MDIO, but I can also appreciate that this is not already there for you to use. As I commented when I acked this, the I'm OK with this approach at this time due to the state of the DM support in eth.
As a side note, maybe moving other boards that use this NIC to DM_ETH and removing non-DM support would be a better cleanup to start with.
Cheers, -Joe

On Thu, Mar 22, 2018 at 12:09 AM, Joe Hershberger joe.hershberger@ni.com wrote:
On Wed, Mar 21, 2018 at 1:29 PM, Jagan Teki jagannadh.teki@gmail.com wrote:
On Wed, Mar 21, 2018 at 6:54 PM, Peng Fan peng.fan@nxp.com wrote:
> > >> -----Original Message----- >> From: Jagan Teki [mailto:jagannadh.teki@gmail.com] >> Sent: 2018年3月21日 17:19 >> To: Peng Fan peng.fan@nxp.com >> Cc: Joe Hershberger joe.hershberger@ni.com; Fabio Estevam >> fabio.estevam@nxp.com; U-Boot Mailing List >> u-boot@lists.denx.de >> Subject: Re: [U-Boot] [PATCH V2 4/5] net: fec: sharing MDIO for >> two enet controllers >> >> On Wed, Mar 21, 2018 at 2:31 PM, Peng Fan peng.fan@nxp.com
wrote:
>> > On i.MX6SX, 6UL and 7D, there are two enet controllers each has >> > a MDIO port. But Some boards share one MDIO port for the two enets. >> > So introduce a configuration CONFIG_FEC_MXC_MDIO_BASE to >> > indicate the MDIO port for sharing. >> > >> > To i.MX28, adapt to use the new config >> > >> > Signed-off-by: Peng Fan peng.fan@nxp.com >> > Acked-by: Joe Hershberger joe.hershberger@ni.com >> > Cc: Fabio Estevam fabio.estevam@nxp.com >> > --- >> > >> > V2: >> > adapt mx28 to use FEC_MXC_MDIO_BASE >> > >> > drivers/net/Kconfig | 9 ++++++++- >> > drivers/net/fec_mxc.c | 8 ++++++-- >> > include/configs/mx28evk.h | 1 + >> > 3 files changed, 15 insertions(+), 3 deletions(-) >> > >> > diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index >> > de1947ccc1..c5fd6f648a 100644 >> > --- a/drivers/net/Kconfig >> > +++ b/drivers/net/Kconfig >> > @@ -147,9 +147,16 @@ config ETHOC >> > help >> > This MAC is present in OpenRISC and Xtensa XTFPGA
boards.
>> > >> > +config FEC_MXC_MDIO_BASE >> > + hex "MDIO base address for the FEC controller" >> > + depends on FEC_MXC >> > + help >> > + This specifies the MDIO registers base address. It is used
when
>> > + two FEC controllers share MDIO bus. >> >> How about retrieving this from dt? we have board that support dt >> along with dm supporting. > > It's ok to retrieve the info from dt, but we are not only support > dt, we also need to support non-dt case. Define FEC_MXC_MDIO_BASE > is the simplest method to achieve that I think.
But patch adds the same for DM case which usually retrieve the info from dt, point here is to get rid of ifdef and new CONFIG_ ie where DM and dts play smart atleast.
The uboot fec_mxc driver or net driver is not that sync with linux code, Using dt here, need to parse phy-handle = <ðphy0>;, then parse ethphy0 parent to get reg, I just think this like hack.
No, I think we can do this with adding new DM MDIO similar to DM PHY which recently done. May be some sort of efforts but it is permanent.
We do not have that driver now, so could we first have this patch? When DM MDIO ready, this piece code could be removed then?
ie. up to Joe. Honestly this macro become removed in future, my point here is why we need to maintain dead macro instead of adding proper maintainable stuff. I'm pretty sure adding DM_MDIO is straight forward and as of now just add what we need and rest will implement future. You may become victim to others to move DM_ETH as soon as possible :)
It would be ideal if you wanted to implement DM MDIO, but I can also appreciate that this is not already there for you to use. As I commented when I acked this, the I'm OK with this approach at this time due to the state of the DM support in eth.
As I said before, its your decision.
As a side note, maybe moving other boards that use this NIC to DM_ETH and removing non-DM support would be a better cleanup to start with.
To be honest this can't be predictable (until you make a note on MIGRATION deadline), I still see new boards from i.MX still can't use dt.

On Wed, Mar 21, 2018 at 1:59 PM, Jagan Teki jagannadh.teki@gmail.com wrote:
On Thu, Mar 22, 2018 at 12:09 AM, Joe Hershberger joe.hershberger@ni.com wrote:
On Wed, Mar 21, 2018 at 1:29 PM, Jagan Teki jagannadh.teki@gmail.com wrote:
On Wed, Mar 21, 2018 at 6:54 PM, Peng Fan peng.fan@nxp.com wrote:
> > > > > >> -----Original Message----- > >> From: Jagan Teki [mailto:jagannadh.teki@gmail.com] > >> Sent: 2018年3月21日 17:19 > >> To: Peng Fan peng.fan@nxp.com > >> Cc: Joe Hershberger joe.hershberger@ni.com; Fabio Estevam > >> fabio.estevam@nxp.com; U-Boot Mailing List > >> u-boot@lists.denx.de > >> Subject: Re: [U-Boot] [PATCH V2 4/5] net: fec: sharing MDIO for > >> two enet controllers > >> > >> On Wed, Mar 21, 2018 at 2:31 PM, Peng Fan peng.fan@nxp.com
wrote:
> >> > On i.MX6SX, 6UL and 7D, there are two enet controllers each has > >> > a MDIO port. But Some boards share one MDIO port for the two enets. > >> > So introduce a configuration CONFIG_FEC_MXC_MDIO_BASE to > >> > indicate the MDIO port for sharing. > >> > > >> > To i.MX28, adapt to use the new config > >> > > >> > Signed-off-by: Peng Fan peng.fan@nxp.com > >> > Acked-by: Joe Hershberger joe.hershberger@ni.com > >> > Cc: Fabio Estevam fabio.estevam@nxp.com > >> > --- > >> > > >> > V2: > >> > adapt mx28 to use FEC_MXC_MDIO_BASE > >> > > >> > drivers/net/Kconfig | 9 ++++++++- > >> > drivers/net/fec_mxc.c | 8 ++++++-- > >> > include/configs/mx28evk.h | 1 + > >> > 3 files changed, 15 insertions(+), 3 deletions(-) > >> > > >> > diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index > >> > de1947ccc1..c5fd6f648a 100644 > >> > --- a/drivers/net/Kconfig > >> > +++ b/drivers/net/Kconfig > >> > @@ -147,9 +147,16 @@ config ETHOC > >> > help > >> > This MAC is present in OpenRISC and Xtensa XTFPGA
boards.
> >> > > >> > +config FEC_MXC_MDIO_BASE > >> > + hex "MDIO base address for the FEC controller" > >> > + depends on FEC_MXC > >> > + help > >> > + This specifies the MDIO registers base address. It is used
when
> >> > + two FEC controllers share MDIO bus. > >> > >> How about retrieving this from dt? we have board that support dt > >> along with dm supporting. > > > > It's ok to retrieve the info from dt, but we are not only support > > dt, we also need to support non-dt case. Define FEC_MXC_MDIO_BASE > > is the simplest method to achieve that I think. > > But patch adds the same for DM case which usually retrieve the info > from dt, point here is to get rid of ifdef and new CONFIG_ ie where > DM and dts play smart atleast.
The uboot fec_mxc driver or net driver is not that sync with linux code, Using dt here, need to parse phy-handle = <ðphy0>;, then parse ethphy0 parent to get reg, I just think this like hack.
No, I think we can do this with adding new DM MDIO similar to DM PHY which recently done. May be some sort of efforts but it is permanent.
We do not have that driver now, so could we first have this patch? When DM MDIO ready, this piece code could be removed then?
ie. up to Joe. Honestly this macro become removed in future, my point here is why we need to maintain dead macro instead of adding proper maintainable stuff. I'm pretty sure adding DM_MDIO is straight forward and as of now just add what we need and rest will implement future. You may become victim to others to move DM_ETH as soon as possible :)
It would be ideal if you wanted to implement DM MDIO, but I can also appreciate that this is not already there for you to use. As I commented when I acked this, the I'm OK with this approach at this time due to the state of the DM support in eth.
As I said before, its your decision.
As a side note, maybe moving other boards that use this NIC to DM_ETH and removing non-DM support would be a better cleanup to start with.
To be honest this can't be predictable (until you make a note on MIGRATION deadline), I still see new boards from i.MX still can't use dt.
That's not good. Simon and I (and I thought everyone else) have been operating under the declaration that no new driver or board can be added using legacy. I hope whoever is acking this board support will stop.
-Joe

-----Original Message----- From: Jagan Teki [mailto:jagannadh.teki@gmail.com] Sent: 2018年3月22日 3:00 To: Joe Hershberger joe.hershberger@ni.com Cc: Peng Fan peng.fan@nxp.com; Fabio Estevam fabio.estevam@nxp.com; U-Boot Mailing List u-boot@lists.denx.de Subject: Re: [U-Boot] [PATCH V2 4/5] net: fec: sharing MDIO for two enet controllers
On Thu, Mar 22, 2018 at 12:09 AM, Joe Hershberger joe.hershberger@ni.com wrote:
On Wed, Mar 21, 2018 at 1:29 PM, Jagan Teki jagannadh.teki@gmail.com
wrote:
On Wed, Mar 21, 2018 at 6:54 PM, Peng Fan peng.fan@nxp.com wrote:
> > > > > >> -----Original Message----- > >> From: Jagan Teki [mailto:jagannadh.teki@gmail.com] > >> Sent: 2018年3月21日 17:19 > >> To: Peng Fan peng.fan@nxp.com > >> Cc: Joe Hershberger joe.hershberger@ni.com; Fabio Estevam > >> fabio.estevam@nxp.com; U-Boot Mailing List > >> u-boot@lists.denx.de > >> Subject: Re: [U-Boot] [PATCH V2 4/5] net: fec: sharing MDIO > >> for two enet controllers > >> > >> On Wed, Mar 21, 2018 at 2:31 PM, Peng Fan peng.fan@nxp.com
wrote:
> >> > On i.MX6SX, 6UL and 7D, there are two enet controllers each > >> > has a MDIO port. But Some boards share one MDIO port for the
two enets.
> >> > So introduce a configuration CONFIG_FEC_MXC_MDIO_BASE to > >> > indicate the MDIO port for sharing. > >> > > >> > To i.MX28, adapt to use the new config > >> > > >> > Signed-off-by: Peng Fan peng.fan@nxp.com > >> > Acked-by: Joe Hershberger joe.hershberger@ni.com > >> > Cc: Fabio Estevam fabio.estevam@nxp.com > >> > --- > >> > > >> > V2: > >> > adapt mx28 to use FEC_MXC_MDIO_BASE > >> > > >> > drivers/net/Kconfig | 9 ++++++++- > >> > drivers/net/fec_mxc.c | 8 ++++++-- > >> > include/configs/mx28evk.h | 1 + > >> > 3 files changed, 15 insertions(+), 3 deletions(-) > >> > > >> > diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig > >> > index de1947ccc1..c5fd6f648a 100644 > >> > --- a/drivers/net/Kconfig > >> > +++ b/drivers/net/Kconfig > >> > @@ -147,9 +147,16 @@ config ETHOC > >> > help > >> > This MAC is present in OpenRISC and Xtensa XTFPGA
boards.
> >> > > >> > +config FEC_MXC_MDIO_BASE > >> > + hex "MDIO base address for the FEC controller" > >> > + depends on FEC_MXC > >> > + help > >> > + This specifies the MDIO registers base address. > >> > +It is used
when
> >> > + two FEC controllers share MDIO bus. > >> > >> How about retrieving this from dt? we have board that support > >> dt along with dm supporting. > > > > It's ok to retrieve the info from dt, but we are not only > > support dt, we also need to support non-dt case. Define > > FEC_MXC_MDIO_BASE is the simplest method to achieve that I think. > > But patch adds the same for DM case which usually retrieve the > info from dt, point here is to get rid of ifdef and new CONFIG_ > ie where DM and dts play smart atleast.
The uboot fec_mxc driver or net driver is not that sync with linux code, Using dt here, need to parse phy-handle = <ðphy0>;, then parse ethphy0 parent to get reg, I just think this like
hack.
No, I think we can do this with adding new DM MDIO similar to DM PHY which recently done. May be some sort of efforts but it is permanent.
We do not have that driver now, so could we first have this patch? When DM MDIO ready, this piece code could be removed then?
ie. up to Joe. Honestly this macro become removed in future, my point here is why we need to maintain dead macro instead of adding proper maintainable stuff. I'm pretty sure adding DM_MDIO is straight forward and as of now just add what we need and rest will implement future. You may become victim to others to move DM_ETH as soon as possible :)
It would be ideal if you wanted to implement DM MDIO, but I can also appreciate that this is not already there for you to use. As I commented when I acked this, the I'm OK with this approach at this time due to the state of the DM support in eth.
As I said before, its your decision.
As a side note, maybe moving other boards that use this NIC to DM_ETH and removing non-DM support would be a better cleanup to start with.
To be honest this can't be predictable (until you make a note on MIGRATION deadline), I still see new boards from i.MX still can't use dt.
For NXP vendor boards, Most boards already migrated to use dt, except the 6sabresd Or 6sabreauto which use SPL + non-DM U-boot. This will be moved to use SPL + u-boot FIT DM, but sometimes I bother with nand/spinor/norflash spl + fit uboot.
Thanks, Peng.

Hi Joe,
No, I think we can do this with adding new DM MDIO similar to DM PHY
which
recently done. May be some sort of efforts but it is permanent.
We do not have that driver now, so could we first have this patch? When DM MDIO ready, this piece code could be removed then?
ie. up to Joe. Honestly this macro become removed in future, my point here is why we need to maintain dead macro instead of adding proper maintainable stuff. I'm pretty sure adding DM_MDIO is straight forward and as of now just add what we need and rest will implement future. You may become victim to others to move DM_ETH as soon as possible :)
It would be ideal if you wanted to implement DM MDIO, but I can also appreciate that this is not already there for you to use. As I commented when I acked this, the I'm OK with this approach at this time due to the state of the DM support in eth.
As a side note, maybe moving other boards that use this NIC to DM_ETH and removing non-DM support would be a better cleanup to start with.
Is someone already working on DM MDIO? Are there any patches already submitted for this? I couldn't find any.
Thanks Calvin

On Thu, Mar 22, 2018 at 5:49 AM, Calvin Johnson calvin.johnson@nxp.com wrote:
Hi Joe,
No, I think we can do this with adding new DM MDIO similar to DM PHY
which
recently done. May be some sort of efforts but it is permanent.
We do not have that driver now, so could we first have this patch? When DM MDIO ready, this piece code could be removed then?
ie. up to Joe. Honestly this macro become removed in future, my point here is why we need to maintain dead macro instead of adding proper maintainable stuff. I'm pretty sure adding DM_MDIO is straight forward and as of now just add what we need and rest will implement future. You may become victim to others to move DM_ETH as soon as possible :)
It would be ideal if you wanted to implement DM MDIO, but I can also appreciate that this is not already there for you to use. As I commented when I acked this, the I'm OK with this approach at this time due to the state of the DM support in eth.
As a side note, maybe moving other boards that use this NIC to DM_ETH and removing non-DM support would be a better cleanup to start with.
Is someone already working on DM MDIO? Are there any patches already submitted for this? I couldn't find any.
I have a rough start on it, but I'm not happy with it so far.
-Joe

Add i.MX6UL/SX/SL compatible.
Signed-off-by: Peng Fan peng.fan@nxp.com Acked-by: Joe Hershberger joe.hershberger@ni.com --- drivers/net/fec_mxc.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index ba66c2f95a..765226e3ab 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -1342,6 +1342,9 @@ static int fecmxc_ofdata_to_platdata(struct udevice *dev)
static const struct udevice_id fecmxc_ids[] = { { .compatible = "fsl,imx6q-fec" }, + { .compatible = "fsl,imx6sl-fec" }, + { .compatible = "fsl,imx6sx-fec" }, + { .compatible = "fsl,imx6ul-fec" }, { } };

Joe,
On Wed, Mar 21, 2018 at 2:31 PM, Peng Fan peng.fan@nxp.com wrote:
Add i.MX6UL/SX/SL compatible.
Please wait few days about pushing this series, I need to test it on my imx6ul board.
Jagan.

On Wed, Mar 21, 2018 at 2:19 PM, Jagan Teki jagannadh.teki@gmail.com wrote:
Joe,
On Wed, Mar 21, 2018 at 2:31 PM, Peng Fan peng.fan@nxp.com wrote:
Add i.MX6UL/SX/SL compatible.
Please wait few days about pushing this series, I need to test it on my imx6ul board.
Will do.
-Joe

Hi Peng,
On Wed, Mar 21, 2018 at 4:01 AM, Peng Fan peng.fan@nxp.com wrote:
Add i.MX6UL/SX/SL compatible.
In case you didn't notice and it is still an issue in v2 (I just kicked off a build of it) there are a number of failures as a result of this series... https://travis-ci.org/jhershbe/u-boot/builds/356027749
Cheers, -Joe

-----Original Message----- From: Joe Hershberger [mailto:joe.hershberger@ni.com] Sent: 2018年3月22日 3:54 To: Peng Fan peng.fan@nxp.com; Jagan Teki jagannadh.teki@gmail.com Cc: Joe Hershberger joe.hershberger@ni.com; u-boot u-boot@lists.denx.de Subject: Re: [U-Boot] [PATCH V2 5/5] net: fex_mxc: add i.MX6UL/SX/SL compatible
Hi Peng,
On Wed, Mar 21, 2018 at 4:01 AM, Peng Fan peng.fan@nxp.com wrote:
Add i.MX6UL/SX/SL compatible.
In case you didn't notice and it is still an issue in v2 (I just kicked off a build of it) there are a number of failures as a result of this series... https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftravis-c i.org%2Fjhershbe%2Fu-boot%2Fbuilds%2F356027749&data=02%7C01%7Cpeng. fan%40nxp.com%7C6cf39da22b8d40e068fe08d58f65838d%7C686ea1d3bc2b4c 6fa92cd99c5c301635%7C0%7C0%7C636572588531154502&sdata=BMZiLVVhe 1By6MXjTkW19RgTK171D8%2BYaEWRjuCmvx8%3D&reserved=0
Sorry for this. I should run buildman before send patchset out. I'll fix them.
Thanks, Peng.
Cheers, -Joe

On Wed, Mar 21, 2018 at 8:23 PM, Peng Fan peng.fan@nxp.com wrote:
-----Original Message----- From: Joe Hershberger [mailto:joe.hershberger@ni.com] Sent: 2018年3月22日 3:54 To: Peng Fan peng.fan@nxp.com; Jagan Teki jagannadh.teki@gmail.com Cc: Joe Hershberger joe.hershberger@ni.com; u-boot u-boot@lists.denx.de Subject: Re: [U-Boot] [PATCH V2 5/5] net: fex_mxc: add i.MX6UL/SX/SL compatible
Hi Peng,
On Wed, Mar 21, 2018 at 4:01 AM, Peng Fan peng.fan@nxp.com wrote:
Add i.MX6UL/SX/SL compatible.
In case you didn't notice and it is still an issue in v2 (I just kicked off a build of it) there are a number of failures as a result of this series... https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftravis-c i.org%2Fjhershbe%2Fu-boot%2Fbuilds%2F356027749&data=02%7C01%7Cpeng. fan%40nxp.com%7C6cf39da22b8d40e068fe08d58f65838d%7C686ea1d3bc2b4c 6fa92cd99c5c301635%7C0%7C0%7C636572588531154502&sdata=BMZiLVVhe 1By6MXjTkW19RgTK171D8%2BYaEWRjuCmvx8%3D&reserved=0
Sorry for this. I should run buildman before send patchset out. I'll fix them.
FYI, v2 still has an issue: https://travis-ci.org/jhershbe/u-boot/builds/356535940
participants (4)
-
Calvin Johnson
-
Jagan Teki
-
Joe Hershberger
-
Peng Fan