1. 18 10月, 2015 1 次提交
  2. 25 9月, 2015 1 次提交
    • R
      of_mdio: fix MDIO phy device refcounting · f018ae7a
      Russell King 提交于
      bus_find_device() is defined as:
      
       * This is similar to the bus_for_each_dev() function above, but it
       * returns a reference to a device that is 'found' for later use, as
       * determined by the @match callback.
      
      and it does indeed return a reference-counted pointer to the device:
      
              while ((dev = next_device(&i)))
                      if (match(dev, data) && get_device(dev))
                                              ^^^^^^^^^^^^^^^
                              break;
              klist_iter_exit(&i);
              return dev;
      
      What that means is that when we're done with the struct device, we must
      drop that reference.  Neither of_phy_connect() nor of_phy_attach() did
      this when phy_connect_direct() or phy_attach_direct() failed.
      
      With our previous patch, phy_connect_direct() and phy_attach_direct()
      take a new refcount on the phy device when successful, so we can drop
      our local reference immediatley after these functions, whether or not
      they succeeded.
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Acked-by: NRob Herring <robh@kernel.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f018ae7a
  3. 18 9月, 2015 1 次提交
  4. 01 9月, 2015 1 次提交
  5. 27 8月, 2015 1 次提交
  6. 26 8月, 2015 2 次提交
  7. 24 8月, 2015 1 次提交
  8. 30 7月, 2015 1 次提交
  9. 27 7月, 2015 2 次提交
  10. 22 7月, 2015 1 次提交
    • S
      of_mdio: add new DT property 'managed' to specify the PHY management type · 4cba5c21
      Stas Sergeev 提交于
      Currently the PHY management type is selected by the MAC driver arbitrary.
      The decision is based on the presence of the "fixed-link" node and on a
      will of the driver's authors.
      This caused a regression recently, when mvneta driver suddenly started
      to use the in-band status for auto-negotiation on fixed links.
      It appears the auto-negotiation may not work when expected by the MAC driver.
      Sebastien Rannou explains:
      << Yes, I confirm that my HW does not generate an in-band status. AFAIK, it's
      a PHY that aggregates 4xSGMIIs to 1xQSGMII ; the MAC side of the PHY (with
      inband status) is connected to the switch through QSGMII, and in this context
      we are on the media side of the PHY. >>
      https://lkml.org/lkml/2015/7/10/206
      
      This patch introduces the new string property 'managed' that allows
      the user to set the management type explicitly.
      The supported values are:
      "auto" - default. Uses either MDIO or nothing, depending on the presence
      of the fixed-link node
      "in-band-status" - use in-band status
      Signed-off-by: NStas Sergeev <stsp@users.sourceforge.net>
      
      CC: Rob Herring <robh+dt@kernel.org>
      CC: Pawel Moll <pawel.moll@arm.com>
      CC: Mark Rutland <mark.rutland@arm.com>
      CC: Ian Campbell <ijc+devicetree@hellion.org.uk>
      CC: Kumar Gala <galak@codeaurora.org>
      CC: Florian Fainelli <f.fainelli@gmail.com>
      CC: Grant Likely <grant.likely@linaro.org>
      CC: devicetree@vger.kernel.org
      CC: linux-kernel@vger.kernel.org
      CC: netdev@vger.kernel.org
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4cba5c21
  11. 01 7月, 2015 1 次提交
  12. 30 6月, 2015 1 次提交
  13. 23 6月, 2015 2 次提交
  14. 22 6月, 2015 1 次提交
  15. 19 6月, 2015 1 次提交
    • R
      dt/fdt: add empty versions of early_init_dt_*_memory_arch · aefc7ec2
      Rob Herring 提交于
      With the addition of commit 0166dc11 (of: make CONFIG_OF user
      selectable), architectures which don't enable memblock and don't
      have their own early_init_dt_*_memory_arch implementations will break
      when CONFIG_OF is enabled.
      
      Really, we should have better separation of CONFIG_OF and
      CONFIG_OF_EARLY_FLATTREE, but doing that will require quite a bit of
      shuffling of architecture code. That will have to wait for another day.
      Signed-off-by: NRob Herring <robh@kernel.org>
      Cc: Grant Likely <grant.likely@linaro.org>
      aefc7ec2
  16. 10 6月, 2015 1 次提交
  17. 05 6月, 2015 4 次提交
  18. 04 6月, 2015 2 次提交
  19. 02 6月, 2015 1 次提交
  20. 01 6月, 2015 1 次提交
  21. 29 5月, 2015 3 次提交
  22. 27 5月, 2015 1 次提交
  23. 25 5月, 2015 1 次提交
  24. 16 5月, 2015 1 次提交
  25. 15 5月, 2015 1 次提交
    • F
      of: mdio: Add a "broken-turn-around" property · ab6016e0
      Florian Fainelli 提交于
      Some Ethernet PHY devices/switches may not properly release the MDIO bus
      during turn-around time, and fail to drive it low, which can be seen by
      some controllers as a read failure, while the data clocked in is still
      correct.
      
      Add a boolean property "broken-turn-around" which is parsed by the
      generic MDIO bus probing code and will set the corresponding bit in the
      MDIO bus phy_ignore_ta_mask bitmask for MDIO bus drivers to utilize that
      information.
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ab6016e0
  26. 11 5月, 2015 1 次提交
  27. 17 4月, 2015 1 次提交
  28. 15 4月, 2015 4 次提交