1. 07 8月, 2017 8 次提交
  2. 05 8月, 2017 1 次提交
  3. 01 8月, 2017 13 次提交
  4. 28 7月, 2017 2 次提交
  5. 25 7月, 2017 1 次提交
  6. 18 7月, 2017 1 次提交
  7. 14 7月, 2017 1 次提交
    • M
      mdio: mux: fix parsing mux registers outside of the PHY address range · 457839ed
      Martin Blumenstingl 提交于
      mdio_mux_init parses the child nodes of the MDIO mux. When using
      "mdio-mux-mmioreg" the child nodes are describing the register value
      that is written to switch between the MDIO busses.
      
      The change which makes the error messages more verbose changed the
      parsing of the "reg" property from a simple of_property_read_u32 call
      to of_mdio_parse_addr. On a Khadas VIM (based on the Meson GXL SoC,
      which uses mdio-mux-mmioreg) this prevents registering the MDIO mux
      (because the "reg" values on the MDIO mux child nodes are 0x2009087f
      and 0xe40908ff) and leads to the following errors:
        mdio-mux-mmioreg c883455c.eth-phy-mux: /soc/periphs@c8834000/eth-phy-mux/mdio@e40908ff PHY address -469169921 is too large
        mdio-mux-mmioreg c883455c.eth-phy-mux: Error: Failed to find reg for child /soc/periphs@c8834000/eth-phy-mux/mdio@e40908ff
        mdio-mux-mmioreg c883455c.eth-phy-mux: /soc/periphs@c8834000/eth-phy-mux/mdio@2009087f PHY address 537462911 is too large
        mdio-mux-mmioreg c883455c.eth-phy-mux: Error: Failed to find reg for child /soc/periphs@c8834000/eth-phy-mux/mdio@2009087f
        mdio-mux-mmioreg c883455c.eth-phy-mux: Error: No acceptable child buses found
        mdio-mux-mmioreg c883455c.eth-phy-mux: failed to register mdio-mux bus /soc/periphs@c8834000/eth-phy-mux
      (as a result of that ethernet is not working, because the PHY which is
      connected through the mux' child MDIO bus, which is not being
      registered).
      
      Fix this by reverting the change from of_mdio_parse_addr to
      of_mdio_parse_addr.
      
      Fixes: 342fa196 ("mdio: mux: make child bus walking more permissive and errors more verbose")
      Signed-off-by: NMartin Blumenstingl <martin.blumenstingl@googlemail.com>
      Acked-by: NNeil Armstrong <narmstrong@baylibre.com>
      Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      457839ed
  8. 05 7月, 2017 1 次提交
  9. 03 7月, 2017 1 次提交
  10. 24 6月, 2017 1 次提交
    • R
      net: dp83640: Avoid NULL pointer dereference. · db9d8b29
      Richard Cochran 提交于
      The function, skb_complete_tx_timestamp(), used to allow passing in a
      NULL pointer for the time stamps, but that was changed in commit
      62bccb8c ("net-timestamp: Make the
      clone operation stand-alone from phy timestamping"), and the existing
      call sites, all of which are in the dp83640 driver, were fixed up.
      
      Even though the kernel-doc was subsequently updated in commit
      7a76a021 ("net-timestamp: Update
      skb_complete_tx_timestamp comment"), still a bug fix from Manfred
      Rudigier came into the driver using the old semantics.  Probably
      Manfred derived that patch from an older kernel version.
      
      This fix should be applied to the stable trees as well.
      
      Fixes: 81e8f2e9 ("net: dp83640: Fix tx timestamp overflow handling.")
      Signed-off-by: NRichard Cochran <richardcochran@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      db9d8b29
  11. 22 6月, 2017 2 次提交
    • A
      net: phy: smsc: fix buffer overflow in memcpy · 2da55390
      Arnd Bergmann 提交于
      The memcpy annotation triggers for a fixed-length buffer copy:
      
      In file included from /git/arm-soc/arch/arm64/include/asm/processor.h:30:0,
                       from /git/arm-soc/arch/arm64/include/asm/spinlock.h:21,
                       from /git/arm-soc/include/linux/spinlock.h:87,
                       from /git/arm-soc/include/linux/seqlock.h:35,
                       from /git/arm-soc/include/linux/time.h:5,
                       from /git/arm-soc/include/linux/stat.h:21,
                       from /git/arm-soc/include/linux/module.h:10,
                       from /git/arm-soc/drivers/net/phy/smsc.c:20:
      In function 'memcpy',
          inlined from 'smsc_get_strings' at /git/arm-soc/drivers/net/phy/smsc.c:166:3:
      /git/arm-soc/include/linux/string.h:309:4: error: call to '__read_overflow2' declared with attribute error: detected read beyond size of object passed as 2nd parameter
      
      Using strncpy instead of memcpy should do the right thing here.
      
      Fixes: 030a8902 ("net: phy: smsc: Implement PHY statistics")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2da55390
    • Z
      net/phy: micrel: configure intterupts after autoneg workaround · b866203d
      Zach Brown 提交于
      The commit ("net/phy: micrel: Add workaround for bad autoneg") fixes an
      autoneg failure case by resetting the hardware. This turns off
      intterupts. Things will work themselves out if the phy polls, as it will
      figure out it's state during a poll. However if the phy uses only
      intterupts, the phy will stall, since interrupts are off. This patch
      fixes the issue by calling config_intr after resetting the phy.
      
      Fixes: d2fd719b ("net/phy: micrel: Add workaround for bad autoneg ")
      Signed-off-by: NZach Brown <zach.brown@ni.com>
      Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
      Reviewed-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b866203d
  12. 21 6月, 2017 1 次提交
  13. 14 6月, 2017 4 次提交
  14. 13 6月, 2017 1 次提交
  15. 09 6月, 2017 1 次提交
  16. 07 6月, 2017 1 次提交