1. 13 2月, 2019 11 次提交
  2. 12 2月, 2019 10 次提交
  3. 11 2月, 2019 7 次提交
  4. 10 2月, 2019 8 次提交
  5. 09 2月, 2019 4 次提交
    • H
      net: phy: disregard "Clause 22 registers present" bit in get_phy_c45_devs_in_pkg · 3b5e74e0
      Heiner Kallweit 提交于
      Bit 0 in register 1.5 doesn't represent a device but is a flag that
      Clause 22 registers are present. Therefore disregard this bit when
      populating the device list. If code needs this information it
      should read register 1.5 directly instead of accessing the device
      list.
      Because this bit doesn't represent a device don't define a
      MDIO_MMD_XYZ constant, just define a MDIO_DEVS_XYZ constant for
      the flag in the device list bitmap.
      
      v2:
      - make masking of bit 0 more explicit
      - improve commit message
      Signed-off-by: NHeiner Kallweit <hkallweit1@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3b5e74e0
    • D
      Merge branch 'mvpp2-phylink-fixes' · 0abc676e
      David S. Miller 提交于
      Russell King says:
      
      ====================
      mvpp2 phylink fixes
      
      Having spent a while debugging issues with Sven Auhagen, it appears
      that the mvpp2 network driver's phylink support isn't quite correct.
      
      This series fixes that up, but, despite being tested locally, by
      Sven, and by Antoine, I would prefer it to be applied to net-next
      so that there is time for more people to test before it hits -rc or
      stable backports.
      
      The symptoms were that although PHYs would come up, the GMAC never
      reported that the link was up, or in some cases it did report link
      up but packets would not flow.  Various approaches were tried to
      work around that, such as switching to in-band negotiation from
      PHY mode, but ultimately the problem was in the way mvpp2 was being
      programmed.
      
      This series addresses that by, essentially, making mvpp2 follow the
      same implementation pattern as mvneta: we configure the GMAC in three
      stages:
      
      1) the PHY interface mode
      2) the negotiation advert
      3) the negotiation style
      
      Another issue is that mvpp2 was always taking the link down each time
      its mac_config method was called: this is disruptive when the link is
      already up, and we're just updating settings such as flow control.
      There are some circumstances where we make the call despite there
      being no changes (eg, when phylink is polling a GPIO or using a custom
      link state function.)
      
      This series depends on two previous patches already sent for net-next:
        net: marvell: mvpp2: fix lack of link interrupts
        net: marvell: mvpp2: use phy_interface_mode_is_8023z() helper
      
      There is one last patch which deals with link status interrupts, which
      I'll send separately because I think there's other considerations, but
      that should not hold up this series of patches.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0abc676e
    • R
      net: marvell: mvpp2: fix AN restart · a4650477
      Russell King 提交于
      phylink already limits which interface modes are able to call the
      MACs AN restart function, but in any case, the commentry seems
      incorrect: the AN restart bit does not automatically clear when
      set.  This has been found via manual setting using devmem2, and
      we can observe that the AN does indeed restart and complete, yet
      the AN restart bit remains set.  Explicitly clear the AN restart
      bit.
      Tested-by: NSven Auhagen <sven.auhagen@voleatech.de>
      Signed-off-by: NRussell King <rmk+kernel@armlinux.org.uk>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a4650477
    • R
      net: marvell: mvpp2: read correct pause bits · 417f3d08
      Russell King 提交于
      When reading the pause bits in mac_link_state, mvpp2 was reporting
      the state of the "active pause" bits, which are set when the MAC is
      in pause mode.  This is not what phylink wants - we want the
      negotiated pause state.  Fix the definition so we read the correct
      bits.
      Tested-by: NSven Auhagen <sven.auhagen@voleatech.de>
      Signed-off-by: NRussell King <rmk+kernel@armlinux.org.uk>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      417f3d08