1. 02 Dec, 2021 2 commits
    • Marek Vasut's avatar
      net: dwc_eth_qos: Enable clock in probe · 3fbd17aa
      Marek Vasut authored and Ramon Fried's avatar Ramon Fried committed
      
      
      Enable DWC IP clock in driver probe, so the MII access is possible even
      outside of active network transfers. This is particularly useful when
      using 'mii' or 'mdio' commands to explore PHY state, neither of which
      works with DWMAC currently due to the disabled clock.
      
      Signed-off-by: Marek Vasut's avatarMarek Vasut <marex@denx.de>
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      Cc: Patrice Chotard <patrice.chotard@foss.st.com>
      Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
      Cc: Ramon Fried <rfried.dev@gmail.com>
      Cc: Stephen Warren <swarren@nvidia.com>
      Reviewed-by: Patrice Chotard's avatarPatrice Chotard <patrice.chotard@foss.st.com>
      Reviewed-by: Ramon Fried's avatarRamon Fried <rfried.dev@gmail.com>
      3fbd17aa
    • Marek Vasut's avatar
      net: eth-phy: Handle gpio_request_by_name() return value · 87770337
      Marek Vasut authored and Ramon Fried's avatar Ramon Fried committed
      
      
      The gpio_request_by_name() returns zero in case of success, however the
      conditional return value check in gpio_request_by_name() checks only for
      (ret != -ENOENT) and if the condition is true, returns ret outright.
      
      This leads to a situation where successful gpio_request_by_name() return
      leads to immediate successful eth_phy_of_to_plat() return as well, and
      to skipped parsing of "reset-assert-us" and "reset-deassert-us", so the
      PHY driver operates with valid reset GPIO, but with assert/deassert times
      set to default, which is 0, instead of the values from DT. This breaks
      PHY reset.
      
      Fix this by checking if return value is non-zero and then for this one
      single allowed non-zero return value, -ENOENT.
      
      Signed-off-by: Marek Vasut's avatarMarek Vasut <marex@denx.de>
      Cc: Ramon Fried <rfried.dev@gmail.com>
      Reviewed-by: Ramon Fried's avatarRamon Fried <rfried.dev@gmail.com>
      87770337
  2. 30 Nov, 2021 12 commits
  3. 29 Nov, 2021 5 commits
  4. 26 Nov, 2021 12 commits
  5. 20 Nov, 2021 9 commits