AnsweredAssumed Answered

How to disable rx tx flow control of FEC driver?

Question asked by Coiln Park on Feb 15, 2017
Latest reply on Feb 15, 2017 by igorpadykov

Could you let me know how to disable flow control rx/tx of FEC driver?

 

fec 2188000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx

 

Also, I could know I had to modify fec_main.c source to get rx packets in ping test as below.

But, ping is not working until now...

 

 

fec_main.c

 

/* Enable flow control and length check */

                //rcntl |= 0x40000000 | 0x00000020; // colin  -  Yocto

                rcntl = readl(fep->hwp + FEC_R_CNTRL);  //colin  - LTIB

 

                /* RGMII, RMII or MII */

                if (fep->phy_interface == PHY_INTERFACE_MODE_RGMII ||

                    fep->phy_interface == PHY_INTERFACE_MODE_RGMII_ID ||

                    fep->phy_interface == PHY_INTERFACE_MODE_RGMII_RXID ||

                    fep->phy_interface == PHY_INTERFACE_MODE_RGMII_TXID)

                        rcntl |= (1 << 6);

                else if (fep->phy_interface == PHY_INTERFACE_MODE_RMII)

                        rcntl |= (1 << 8);

                else

                        rcntl &= ~(1 << 8);

 

                /* 1G, 100M or 10M */

                if (fep->phy_dev) {

                        if (fep->phy_dev->speed == SPEED_1000)

                                ecntl |= (1 << 5);

                        else if (fep->phy_dev->speed == SPEED_100)

                                rcntl &= ~(1 << 9);

                        else

                                rcntl |= (1 << 9);

                }

Outcomes