1. 21 4月, 2017 7 次提交
    • D
      Merge tag 'mac80211-next-for-davem-2017-04-18' of... · 028f43bc
      David S. Miller 提交于
      Merge tag 'mac80211-next-for-davem-2017-04-18' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next
      
      Johannes Berg says:
      
      ====================
      My last pull request has been a while, we now have:
       * connection quality monitoring with multiple thresholds
       * support for FILS shared key authentication offload
       * pre-CAC regulatory compliance - only ETSI allows this
       * sanity check for some rate confusion that hit ChromeOS
         (but nobody else uses it, evidently)
       * some documentation updates
       * lots of cleanups
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      028f43bc
    • D
      Merge branch 'dsa-LAN9303' · 0ef9059d
      David S. Miller 提交于
      Juergen Borleis says:
      
      ====================
      net: dsa: add SMSC/Microchip LAN9303 three port ethernet switch driver
      
      The LAN9303 is a three port 10/100 ethernet switch with integrated phys
      for the two external ethernet ports. The third port is an RMII/MII
      interface to a host master network interface (e.g. fixed link).
      
      While the LAN9303 device itself supports offload packet processing, this
      driver does not make use of it yet. This driver just configures the device
      to provide two separate network interfaces (which is the default state of
      a DSA device).
      
      Please note: the "MDIO managed mode" driver part isn't tested yet. I have
      used and tested the "I2C managed mode" only.
      
      Changes in v6:
      
      - fix support to use the driver as a module (core, i2c and mdio)
      - license info added in all parts of the driver (for module support)
      
      Changes in v5:
      
      - add missing include file to 'net/dsa/tag_lan9303.c'
      
      Changes in v4:
      
      - rebased on net-next, 'net/dsa/tag_lan9303.c' adapted to changed API
      
      Changes in v3:
      
      - 'ds_to_lan9303()' removed
      - special PHY reg MII_LAN911X_SPECIAL_CONTROL_STATUS mapping removed
      - compatible strings for I2C and MDIO are now different
      - MDIO-managed-mode devicetree binding added (still compile time tested only)
      
      Changes in v2:
      
      - code moved to 'drivers/net/dsa'
      - timeouts in completion wait loops
      - macros instead of various magic numbers
      - development code removed
      - devicetree property names changed
      - devicetree example adapted
      - tried to avoid to mix 'switching' and 'forwarding'...
      
      Comments are welcome.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0ef9059d
    • J
      net: dsa: LAN9303: add MDIO managed mode support · dc700583
      Juergen Beisert 提交于
      When the LAN9303 device is in MDIO manged mode, all register accesses must
      be done via MDIO.
      
      Please note: this code is compile time tested only due to the absence of such
      configured hardware. It is based on a patch from Stefan Roese from 2014.
      Signed-off-by: NJuergen Borleis <jbe@pengutronix.de>
      CC: devicetree@vger.kernel.org
      CC: robh+dt@kernel.org
      CC: mark.rutland@arm.com
      CC: sr@denx.de
      Acked-by: NRob Herring <robh@kernel.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      dc700583
    • J
      net: dsa: LAN9303: add I2C managed mode support · be4e119f
      Juergen Beisert 提交于
      In this mode the switch device and the internal phys will be managed via
      I2C interface. The MDIO interface is still supported, but for the
      (emulated) CPU port only.
      Signed-off-by: NJuergen Borleis <jbe@pengutronix.de>
      CC: devicetree@vger.kernel.org
      CC: robh+dt@kernel.org
      CC: mark.rutland@arm.com
      Acked-by: NRob Herring <robh@kernel.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      be4e119f
    • J
      net: dsa: add new DSA switch driver for the SMSC-LAN9303 · a1292595
      Juergen Beisert 提交于
      The SMSC/Microchip LAN9303 is an ethernet switch device with one CPU port
      and two external ethernet ports with built-in phys.
      
      This driver uses the DSA framework, but is currently only capable of
      separating the two external ports. There is no offload support yet.
      Signed-off-by: NJuergen Borleis <jbe@pengutronix.de>
      Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a1292595
    • J
      net: dsa: add support for the SMSC-LAN9303 tagging format · e8fe177a
      Juergen Beisert 提交于
      To define the outgoing port and to discover the incoming port a regular
      VLAN tag is used by the LAN9303. But its VID meaning is 'special'.
      
      This tag handler/filter depends on some hardware features which must be
      enabled in the device to provide and make use of this special VLAN tag
      to control the destination and the source of an ethernet packet.
      Signed-off-by: NJuergen Borleis <jbe@pengutronix.de>
      Reviewed-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e8fe177a
    • G
      net/mlx4: suppress 'may be used uninitialized' warning · 8dc7d11f
      Greg Thelen 提交于
      gcc 4.8.4 complains that mlx4_SW2HW_MPT_wrapper() uses an uninitialized
      'mpt' variable:
        drivers/net/ethernet/mellanox/mlx4/resource_tracker.c: In function 'mlx4_SW2HW_MPT_wrapper':
        drivers/net/ethernet/mellanox/mlx4/resource_tracker.c:2802:12: warning: 'mpt' may be used uninitialized in this function [-Wmaybe-uninitialized]
           mpt->mtt = mtt;
      
      I think this warning is a false complaint.  mpt is only used when
      mr_res_start_move_to() return zero, and in all such cases it initializes
      mpt.  But apparently gcc cannot see that.
      
      Initialize mpt to avoid the warning.
      Signed-off-by: NGreg Thelen <gthelen@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8dc7d11f
  2. 20 4月, 2017 1 次提交
  3. 19 4月, 2017 32 次提交