1. 05 11月, 2019 1 次提交
    • A
      net: of_get_phy_mode: Change API to solve int/unit warnings · 0c65b2b9
      Andrew Lunn 提交于
      Before this change of_get_phy_mode() returned an enum,
      phy_interface_t. On error, -ENODEV etc, is returned. If the result of
      the function is stored in a variable of type phy_interface_t, and the
      compiler has decided to represent this as an unsigned int, comparision
      with -ENODEV etc, is a signed vs unsigned comparision.
      
      Fix this problem by changing the API. Make the function return an
      error, or 0 on success, and pass a pointer, of type phy_interface_t,
      where the phy mode should be stored.
      
      v2:
      Return with *interface set to PHY_INTERFACE_MODE_NA on error.
      Add error checks to all users of of_get_phy_mode()
      Fixup a few reverse christmas tree errors
      Fixup a few slightly malformed reverse christmas trees
      
      v3:
      Fix 0-day reported errors.
      Reported-by: NDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0c65b2b9
  2. 04 10月, 2019 1 次提交
  3. 11 9月, 2019 1 次提交
    • A
      net: stmmac: implement support for passive mode converters via dt · 0060c878
      Alexandru Ardelean 提交于
      In-between the MAC & PHY there can be a mode converter, which converts one
      mode to another (e.g. GMII-to-RGMII).
      
      The converter, can be passive (i.e. no driver or OS/SW information
      required), so the MAC & PHY need to be configured differently.
      
      For the `stmmac` driver, this is implemented via a `mac-mode` property in
      the device-tree, which configures the MAC into a certain mode, and for the
      PHY a `phy_interface` field will hold the mode of the PHY. The mode of the
      PHY will be passed to the PHY and from there-on it work in a different
      mode. If unspecified, the default `phy-mode` will be used for both.
      Signed-off-by: NAlexandru Ardelean <alexandru.ardelean@analog.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0060c878
  4. 28 8月, 2019 1 次提交
  5. 09 8月, 2019 1 次提交
  6. 28 7月, 2019 1 次提交
    • T
      net: stmmac: Make MDIO bus reset optional · 1a981c05
      Thierry Reding 提交于
      The Tegra EQOS driver already resets the MDIO bus at probe time via the
      reset GPIO specified in the phy-reset-gpios device tree property. There
      is no need to reset the bus again later on.
      
      This avoids the need to query the device tree for the snps,reset GPIO,
      which is not part of the Tegra EQOS device tree bindings. This quiesces
      an error message from the generic bus reset code if it doesn't find the
      snps,reset related delays.
      Signed-off-by: NThierry Reding <treding@nvidia.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1a981c05
  7. 17 6月, 2019 3 次提交
  8. 16 6月, 2019 1 次提交
  9. 15 6月, 2019 1 次提交
  10. 05 6月, 2019 1 次提交
  11. 31 1月, 2019 1 次提交
  12. 19 9月, 2018 1 次提交
    • J
      net: stmmac: Rework coalesce timer and fix multi-queue races · 8fce3331
      Jose Abreu 提交于
      This follows David Miller advice and tries to fix coalesce timer in
      multi-queue scenarios.
      
      We are now using per-queue coalesce values and per-queue TX timer.
      
      Coalesce timer default values was changed to 1ms and the coalesce frames
      to 25.
      
      Tested in B2B setup between XGMAC2 and GMAC5.
      Signed-off-by: NJose Abreu <joabreu@synopsys.com>
      Fixes: 	ce736788 ("net: stmmac: adding multiple buffers for TX")
      Cc: Florian Fainelli <f.fainelli@gmail.com>
      Cc: Neil Armstrong <narmstrong@baylibre.com>
      Cc: Jerome Brunet <jbrunet@baylibre.com>
      Cc: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
      Cc: David S. Miller <davem@davemloft.net>
      Cc: Joao Pinto <jpinto@synopsys.com>
      Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
      Cc: Alexandre Torgue <alexandre.torgue@st.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8fce3331
  13. 10 8月, 2018 1 次提交
  14. 03 11月, 2017 1 次提交
  15. 02 6月, 2017 2 次提交
  16. 23 3月, 2017 1 次提交
  17. 22 3月, 2017 2 次提交
  18. 13 3月, 2017 2 次提交
  19. 09 2月, 2017 1 次提交
  20. 10 1月, 2017 2 次提交
  21. 03 1月, 2017 1 次提交
  22. 09 12月, 2016 2 次提交
  23. 10 11月, 2016 1 次提交
  24. 28 6月, 2016 1 次提交
  25. 17 6月, 2016 1 次提交
  26. 03 4月, 2016 1 次提交
  27. 02 4月, 2016 2 次提交
  28. 04 3月, 2016 1 次提交
  29. 03 3月, 2016 1 次提交
    • G
      stmmac: rework DMA bus setting and introduce new platform AXI structure · afea0365
      Giuseppe Cavallaro 提交于
      This patch restructures the DMA bus settings and this is done
      by introducing a new platform structure used for programming
      the AXI Bus Mode Register inside the DMA module.
      This structure can be populated from device-tree as documented in the
      binding txt file.
      
      After initializing the DMA, the AXI register can be optionally tuned
      for platform drivers based.
      This patch also reworks some parameters to make coherent the DMA
      configuration now that AXI register is introduced.
      For example, the burst_len is managed by using the mentioned axi
      support above; so the snps,burst-len parameter has been removed.
      It makes sense to provide the AAL parameter from DT to Address-Aligned
      Beats inside the Register0 and review the PBL settings when initialize
      the engine.
      
      For PCI glue, rebuilding the story of this setting, it
      was added to align a configuration so not for fixing some
      known problem. No issue raised after this patch.
      It is safe to use the default burst length instead of
      tuning it to the maximum value
      Signed-off-by: NGiuseppe Cavallaro <peppe.cavallaro@st.com>
      Signed-off-by: NAlexandre TORGUE <alexandre.torgue@st.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      afea0365
  30. 29 7月, 2015 2 次提交
  31. 21 7月, 2015 1 次提交