1. 01 3月, 2015 5 次提交
  2. 23 2月, 2015 4 次提交
  3. 22 2月, 2015 5 次提交
  4. 21 2月, 2015 23 次提交
  5. 20 2月, 2015 3 次提交
    • D
      Merge branch 'mv88e6171_indirect_phy' · 69994d17
      David S. Miller 提交于
      Andrew Lunn says:
      
      ====================
      Indirect phy access for mv88e6171
      
      These two patches allow the mv88e6171 driver to access the port phys
      using indirect addressing. Depending on pin strapping, the switch
      either uses a single address on the host MDIO bus, requiring the port
      phys are accessed indirectly, or the switch uses a number of addresses
      on the host bus and the phys can be directly accessed.
      
      The 370RD, the first supported platform to use the 6171 uses multiple
      addresses, so this indirect mode was not required. However the
      WRT1900AC has the switch configured to use a single address, and so
      indirect access is needed.
      
      The mv88e6352 already has all the needed code. Refactor it into the
      shared mv88e6xxx and then use it in the mv88e6171 driver.
      
      Tested on the 370RD and WRT1900AC.
      
      It would be good if Guenter Roeck could test on his platform to ensure
      i've not broken anything for the mv88e6352.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      69994d17
    • A
      net: dsa: mv88e6171: Enable access to phys via internal mdio bus · 4c732668
      Andrew Lunn 提交于
      When the device is configured to use single chip addressing mode, the
      phy devices of the port are not accessible on the host MDIO
      bus. Instead the switch internal MDIO bus must be used. For this to
      work, the phy polling unit must be enabled.
      Signed-off-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4c732668
    • A
      net: dsa: mv88e6352: Refactor shareable code · f3044683
      Andrew Lunn 提交于
      The mv88e6352 allows access to the port phys via an internal mdio bus
      which is accessed using registers in the GLOBAL 2 range. The mv88e6171
      and probably other devices use the same mechanism. Move this code into
      the shared mv88e6xxx.c library.
      Signed-off-by: NAndrew Lunn <andrew@lunn.ch>
      Tested-by: NGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f3044683