]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: DP83822: Add ability to advertise Fiber connection
authorDan Murphy <dmurphy@ti.com>
Thu, 27 Aug 2020 13:45:09 +0000 (08:45 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Aug 2020 13:57:58 +0000 (06:57 -0700)
commit88712048e2f5eb1b526a5ee9808d8152e5806c9a
treeb0bee94644ba35dda3d9a6f7b735c4fe04f78407
parent815b320d8374bb2c1c12bec432a8167fa13783f6
net: phy: DP83822: Add ability to advertise Fiber connection

The DP83822 can be configured to use a Fiber connection.  The strap
register is read to determine if the device has been configured to use
a fiber connection.  With the fiber connection the PHY can be configured
to detect whether the fiber connection is active by either a high signal
or a low signal.

Fiber mode is only applicable to the DP83822 so rework the PHY match
table so that non-fiber PHYs can still use the same driver but not call
or use any of the fiber features.

Signed-off-by: Dan Murphy <dmurphy@ti.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/dp83822.c