1. 13 Mar, 2015 16 commits
  2. 12 Mar, 2015 21 commits
  3. 11 Mar, 2015 3 commits
    • David S. Miller's avatar
      Merge branch 'dsa_phy_divert' · 388a8357
      David S. Miller authored
      Florian Fainelli says:
      
      ====================
      net: dsa: support PHY reads/writes diversion
      
      This patch series completes the PHY reads/writes diversion when we need to use
      the slave MII bus provided by DSA and the underlying switch drivers to
      implement the real PHY reads and writes. This is particularly useful when they
      are conflicting MDIO bus addresses as in the case of multiple Broadcom switches
      connected to each other (internal and external, or just external).
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      388a8357
    • Florian Fainelli's avatar
      net: dsa: fully divert PHY reads/writes if requested · cd28a1a9
      Florian Fainelli authored
      In case a PHY is found via Device Tree, and is also flagged by the
      switch driver as needing indirect reads/writes using the switch driver
      implemented MDIO bus, make sure that we bind this PHY to the slave MII
      bus in order for this to happen.
      
      Without this, we would succeed in having the PHY driver probe()'s
      function to use slave MII bus read/write functions, because this is done
      during dsa_slave_mii_init(), but past that point, the PHY driver would
      not go through these diverted reads and writes.
      
      Fixes: 0d8bcdd3 ("net: dsa: allow for more complex PHY setups")
      Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      cd28a1a9
    • Florian Fainelli's avatar
      net: dsa: move PHY setup on DSA MII bus to its own function · c305c165
      Florian Fainelli authored
      In preparation for dealing with indirect reads and writes towards
      certain PHY devices, move the code which deals with binding the PHY
      device to the slave MII bus created by DSA to its own function:
      dsa_slave_phy_connect().
      Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      c305c165