]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'net-phy-Support-managed-Cortina-phys'
authorDavid S. Miller <davem@davemloft.net>
Tue, 30 May 2017 16:42:28 +0000 (12:42 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 May 2017 16:42:28 +0000 (12:42 -0400)
commit555dc7e45d0d1c8c7fb81ed65dda951f34fc0cf7
tree8a67ce9ca2e09db703dc42d293efa1bed0051d28
parent525ec9af4a0e97629c891ad75d5fcca27daf1c4f
parent42204601f763e03c0e719cdcf21e5d1c8cab4a0e
Merge branch 'net-phy-Support-managed-Cortina-phys'

Bogdan Purcareata says:

====================
net: phy: Support managed Cortina phys

So far, the Cortina family phys (CS4340 in this particular case) are only
supported in fixed link mode (via fixed_phy_register). The generic 10G
phy driver does not work well with the phylib state machine, when the phy
is registered via of_phy_connect. This prohibits the user from describing the
phy nodes in the device tree.

In order to support this scenario, and to properly describe the board
device tree, add a minimal Cortina driver that reads the status from the
right register. With the generic 10G C45 driver, the kernel will print
messages like:
[    0.226521] mdio_bus 8b96000: Error while reading PHY16 reg at 1.6
[    0.232780] mdio_bus 8b96000: Error while reading PHY16 reg at 1.5

v3 -> v4:
- Add trademark info.
- Minor documentation entry consistency nit.

v2 -> v3:
- Add documentation entry.

v1 -> v2:
- Change approach for getting the phy_id from hacking get_phy_c45_ids to
  describing the device in the device tree via ethernet-phy-id.

More patch version changes per individual patches.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>