]> 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)
commitc9f3f165094c08b66f2bbf5932bb3d7575dd1a97
tree6916c78eb7de8ff5831450daefc66c0b532510ee
parentc940c2af004748d5fd35aaf64604eb74f8a560c2
parente063e3bb16b65b1aecfc1d45211f873bb3219af6
Merge branch 'cpsw-fixed-phy-dt-bugs'

David Rivshin says:

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

Commit a484b68f64d3dcdd2127878bb229e4dacf811b1b ("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 a484b68f64d3'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>