1. 09 8月, 2016 1 次提交
  2. 01 8月, 2016 1 次提交
  3. 31 7月, 2016 1 次提交
  4. 26 7月, 2016 1 次提交
  5. 20 7月, 2016 4 次提交
  6. 17 7月, 2016 1 次提交
  7. 16 7月, 2016 1 次提交
  8. 03 7月, 2016 1 次提交
  9. 29 6月, 2016 2 次提交
  10. 27 6月, 2016 5 次提交
  11. 16 6月, 2016 1 次提交
    • A
      mdio: mux: avoid 'maybe-uninitialized' warning · a78c16e1
      Arnd Bergmann 提交于
      The latest changes to the MDIO code introduced a false-positive
      warning with gcc-6 (possibly others):
      
      drivers/net/phy/mdio-mux.c: In function 'mdio_mux_init':
      drivers/net/phy/mdio-mux.c:188:3: error: 'parent_bus_node' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      
      It's easy to avoid the warning by making sure the parent_bus_node
      is initialized in both cases at the start of the function, since
      the later 'of_node_put()' call is also valid for a NULL pointer
      argument.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Fixes: f20e6657 ("mdio: mux: Enhanced MDIO mux framework for integrated multiplexers")
      Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a78c16e1
  12. 15 6月, 2016 1 次提交
  13. 11 6月, 2016 4 次提交
  14. 21 5月, 2016 2 次提交
  15. 18 5月, 2016 4 次提交
  16. 17 5月, 2016 3 次提交
  17. 13 5月, 2016 1 次提交
  18. 11 5月, 2016 2 次提交
  19. 05 5月, 2016 1 次提交
  20. 02 5月, 2016 1 次提交
    • M
      mdio_bus: Fix MDIO bus scanning in __mdiobus_register() · 70e927b9
      Marek Vasut 提交于
      Since commit b74766a0 ("phylib: don't return NULL
      from get_phy_device()") in linux-next, phy_get_device() will return
      ERR_PTR(-ENODEV) instead of NULL if the PHY device ID is all ones.
      
      This causes problem with stmmac driver and likely some other drivers
      which call mdiobus_register(). I triggered this bug on SoCFPGA MCVEVK
      board with linux-next 20160427 and 20160428. In case of the stmmac, if
      there is no PHY node specified in the DT for the stmmac block, the stmmac
      driver ( drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c function
      stmmac_mdio_register() ) will call mdiobus_register() , which will
      register the MDIO bus and probe for the PHY.
      
      The mdiobus_register() resp. __mdiobus_register() iterates over all of
      the addresses on the MDIO bus and calls mdiobus_scan() for each of them,
      which invokes get_phy_device(). Before the aforementioned patch, the
      mdiobus_scan() would return NULL if no PHY was found on a given address
      and mdiobus_register() would continue and try the next PHY address. Now,
      mdiobus_scan() returns ERR_PTR(-ENODEV), which is caught by the
      'if (IS_ERR(phydev))' condition and the loop exits immediately if the
      PHY address does not contain PHY.
      
      Repair this by explicitly checking for the ERR_PTR(-ENODEV) and if this
      error comes around, continue with the next PHY address.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: David S. Miller <davem@davemloft.net>
      Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
      Cc: Florian Fainelli <f.fainelli@gmail.com>
      Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
      Acked-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      70e927b9
  21. 29 4月, 2016 1 次提交
  22. 27 4月, 2016 1 次提交