1. 29 6月, 2019 7 次提交
  2. 27 6月, 2019 2 次提交
  3. 25 6月, 2019 2 次提交
  4. 23 6月, 2019 2 次提交
  5. 20 6月, 2019 1 次提交
    • M
      net: stmmac: initialize the reset delay array · 84ce4d0f
      Martin Blumenstingl 提交于
      Commit ce4ab73a ("net: stmmac: drop the reset delays from struct
      stmmac_mdio_bus_data") moved the reset delay array from struct
      stmmac_mdio_bus_data to a stack variable.
      The values from the array inside struct stmmac_mdio_bus_data were
      previously initialized to 0 because the struct was allocated using
      devm_kzalloc(). The array on the stack has to be initialized
      explicitly, else we might be reading garbage values.
      
      Initialize all reset delays to 0 to ensure that the values are 0 if the
      "snps,reset-delays-us" property is not defined.
      This fixes booting at least two boards (MIPS pistachio marduk and ARM
      sun8i H2+ Orange Pi Zero). These are hanging during boot when
      initializing the stmmac Ethernet controller (as found by Kernel CI).
      Both have in common that they don't define the "snps,reset-delays-us"
      property.
      
      Fixes: ce4ab73a ("net: stmmac: drop the reset delays from struct stmmac_mdio_bus_data")
      Signed-off-by: NMartin Blumenstingl <martin.blumenstingl@googlemail.com>
      Reported-by: N"kernelci.org bot" <bot@kernelci.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      84ce4d0f
  6. 19 6月, 2019 2 次提交
  7. 18 6月, 2019 1 次提交
    • A
      net: stmmac: fix unused-variable warning · c63d1e5c
      Arnd Bergmann 提交于
      When building without CONFIG_OF, we get a harmless build warning:
      
      drivers/net/ethernet/stmicro/stmmac/stmmac_main.c: In function 'stmmac_phy_setup':
      drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:973:22: error: unused variable 'node' [-Werror=unused-variable]
        struct device_node *node = priv->plat->phy_node;
      
      Reword it so we always use the local variable, by making it the
      fwnode pointer instead of the device_node.
      
      Fixes: 74371272 ("net: stmmac: Convert to phylink and remove phylib logic")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c63d1e5c
  8. 17 6月, 2019 5 次提交
  9. 16 6月, 2019 1 次提交
  10. 15 6月, 2019 1 次提交
  11. 14 6月, 2019 3 次提交
    • J
      net: stmmac: Convert to phylink and remove phylib logic · 74371272
      Jose Abreu 提交于
      Convert everything to phylink.
      Signed-off-by: NJose Abreu <joabreu@synopsys.com>
      Cc: Joao Pinto <jpinto@synopsys.com>
      Cc: David S. Miller <davem@davemloft.net>
      Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
      Cc: Alexandre Torgue <alexandre.torgue@st.com>
      Cc: Russell King <linux@armlinux.org.uk>
      Cc: Andrew Lunn <andrew@lunn.ch>
      Cc: Florian Fainelli <f.fainelli@gmail.com>
      Cc: Heiner Kallweit <hkallweit1@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      74371272
    • J
      net: stmmac: Start adding phylink support · eeef2f6b
      Jose Abreu 提交于
      Start adding the phylink callbacks.
      Signed-off-by: NJose Abreu <joabreu@synopsys.com>
      Cc: Joao Pinto <jpinto@synopsys.com>
      Cc: David S. Miller <davem@davemloft.net>
      Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
      Cc: Alexandre Torgue <alexandre.torgue@st.com>
      Cc: Russell King <linux@armlinux.org.uk>
      Cc: Andrew Lunn <andrew@lunn.ch>
      Cc: Florian Fainelli <f.fainelli@gmail.com>
      Cc: Heiner Kallweit <hkallweit1@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      eeef2f6b
    • J
      net: stmmac: Prepare to convert to phylink · 9ad372fc
      Jose Abreu 提交于
      In preparation for the convertion, split the adjust_link function into
      mac_config and add the mac_link_up and mac_link_down functions.
      Signed-off-by: NJose Abreu <joabreu@synopsys.com>
      Cc: Joao Pinto <jpinto@synopsys.com>
      Cc: David S. Miller <davem@davemloft.net>
      Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
      Cc: Alexandre Torgue <alexandre.torgue@st.com>
      Cc: Russell King <linux@armlinux.org.uk>
      Cc: Andrew Lunn <andrew@lunn.ch>
      Cc: Florian Fainelli <f.fainelli@gmail.com>
      Cc: Heiner Kallweit <hkallweit1@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      9ad372fc
  12. 07 6月, 2019 1 次提交
  13. 06 6月, 2019 4 次提交
  14. 05 6月, 2019 4 次提交
  15. 31 5月, 2019 4 次提交