Thread (20 messages) 20 messages, 4 authors, 2021-06-21

Re: [PATCH v3] net: phy: add Maxlinear GPY115/21x/24x driver

flat view

From: Andrew Lunn <andrew@lunn.ch>
Date: 2021-06-21 02:30:45

On Fri, Jun 18, 2021 at 03:36:35PM +0000, Liang Xu wrote:
On 18/6/2021 10:01 pm, Andrew Lunn wrote:
quoted
This email was sent from outside of MaxLinear.

quoted
Net-next:

int genphy_loopback(struct phy_device *phydev, bool enable)
{
      if (enable) {
          u16 val, ctl = BMCR_LOOPBACK;
          int ret;

          if (phydev->speed == SPEED_1000)
              ctl |= BMCR_SPEED1000;
          else if (phydev->speed == SPEED_100)
              ctl |= BMCR_SPEED100;
 
The problem happens in the speed change no matter it's forced or 
auto-neg in our device.
You say speed change. So do you just need to add support for 10Mbps,
so there is no speed change? Or are you saying phydev->speed does not
match the actual speed?

      Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help