]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'cpsw-fixed-phy-dt-bugs'
authorDavid S. Miller <davem@davemloft.net>
Fri, 18 Dec 2015 19:46:06 +0000 (14:46 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Dec 2015 19:46:06 +0000 (14:46 -0500)
commit1ccf7cf7b69353e8380002b163cb3fd9d44a6006
tree6916c78eb7de8ff5831450daefc66c0b532510ee
parentee9ad12882c842bbcac7c3ef8ce5964570a14d02
parent2f40020ef6f2381c7ac25bed9107f8c7b5a4a5ce
Merge branch 'cpsw-fixed-phy-dt-bugs'

David Rivshin says:

====================
drivers: net: cpsw: Fix bugs in fixed-link PHY DT parsing

Commit ed0a34c16efb839d21b914b1576a1e927fcf9804 ("drivers: net: cpsw:
Add support for fixed-link PHY") added initial fixed-link PHY support
for CPSW, but missed a few considerations.

This series is based on the tip of the net tree. The first two patches
fix user-visible errors in different hardware configurations. The third
patch is for an internal reference counting issue. They are logically
independent changes, but in the same function, so must be applied in
order to apply cleanly.

The first patch was originally submitted by Pascal Speck on December 4,
but was not picked up by patchwork. I suspect that is because the patch
was mangled by the mailer. I fixed the mangling and am including it in
this series, as I believe it is the correct change.

I have tested on the following hardware configurations:
 - (EVMSK) dual emac with two real MDIO-connected phys using RGMII-TXID
 - single emac with fixed-link using RGMII
Testing of other CPSW emac configurations that folks may have would
be appreciated.

Changes from v1 [1]:
 - Split into 3 smaller patches.
 - Maintain ed0a34c16efb's preference for fixed-link over phy_id if
   they are both (incorrectly) specified in the slave node.
 - Update binding documentation to no longer say that phy_mode is also
   mutually exclusive with fixed-link.
 - Dropped unnecessary include of phy_fixed.h.

[1] https://patchwork.ozlabs.org/patch/554989/
====================

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