1. 01 6月, 2017 1 次提交
  2. 18 5月, 2017 1 次提交
  3. 22 4月, 2017 1 次提交
    • A
      net: dsa: LAN9303: add I2C dependency · 239c599a
      Arnd Bergmann 提交于
      With CONFIG_I2C=m and NET_DSA_SMSC_LAN9303=y, we run into a link error:
      
      drivers/base/regmap/regmap-i2c.o: In function `regmap_smbus_byte_reg_read':
      regmap-i2c.c:(.text.regmap_smbus_byte_reg_read+0x18): undefined reference to `i2c_smbus_read_byte_data'
      drivers/base/regmap/regmap-i2c.o: In function `regmap_smbus_byte_reg_write':
      regmap-i2c.c:(.text.regmap_smbus_byte_reg_write+0x18): undefined reference to `i2c_smbus_write_byte_data'
      drivers/base/regmap/regmap-i2c.o: In function `regmap_smbus_word_reg_read':
      regmap-i2c.c:(.text.regmap_smbus_word_reg_read+0x18): undefined reference to `i2c_smbus_read_word_data'
      drivers/base/regmap/regmap-i2c.o: In function `regmap_smbus_word_read_swapped':
      regmap-i2c.c:(.text.regmap_smbus_word_read_swapped+0x18): undefined reference to `i2c_smbus_read_word_data'
      drivers/base/regmap/regmap-i2c.o: In function `regmap_smbus_word_write_swapped':
      
      This adds a Kconfig dependency to avoid the broken configuration.
      
      Fixes: be4e119f ("net: dsa: LAN9303: add I2C managed mode support")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      239c599a
  4. 21 4月, 2017 2 次提交
  5. 08 4月, 2017 1 次提交
    • S
      net-next: dsa: add dsa support for Mediatek MT7530 switch · b8f126a8
      Sean Wang 提交于
      MT7530 is a 7-ports Gigabit Ethernet Switch that could be found on
      Mediatek router platforms such as MT7623A or MT7623N platform which
      includes 7-port Gigabit Ethernet MAC and 5-port Gigabit Ethernet PHY.
      Among these ports, The port from 0 to 4 are the user ports connecting
      with the remote devices while the port 5 and 6 are the CPU ports
      connecting into Mediatek Ethernet GMAC.
      
      For port 6, it can communicate with the CPU via Mediatek Ethernet GMAC
      through either the TRGMII or RGMII which could be controlled by phy-mode
      in the dt-bindings to specify which mode is preferred to use. And for
      port 5, only RGMII can be specified. However, currently, only port 6 is
      being supported in this DSA driver.
      
      The driver is made with the reference to qca8k and other existing DSA
      driver. The most of the essential callbacks of the DSA are already
      support in the driver, including tag insert for user port distinguishing,
      port control, bridge offloading, STP setup and ethtool operation to allow
      DSA to model each user port into a standalone netdevice as the other DSA
      driver had done.
      Signed-off-by: NSean Wang <sean.wang@mediatek.com>
      Signed-off-by: NLanden Chao <Landen.Chao@mediatek.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>
      b8f126a8
  6. 02 4月, 2017 1 次提交
    • F
      net: dsa: Mock-up driver · 98cd1552
      Florian Fainelli 提交于
      This patch adds support for a DSA mock-up driver which essentially does
      the following:
      
      - registers/unregisters 4 fixed PHYs to the slave network devices
      - uses eth0 (configurable) as the master netdev
      - registers the switch as a fixed MDIO device against the fixed MDIO bus
        at address 31
      - includes dynamic debug prints for dsa_switch_ops functions that can be
        enabled to get call traces
      
      This is a good way to test modular builds as well as exercise the DSA
      APIs without requiring access to real hardware. This does not test the
      data-path, although this could be added later on.
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      98cd1552
  7. 25 3月, 2017 1 次提交
  8. 16 9月, 2016 1 次提交
    • J
      net-next: dsa: add new driver for qca8xxx family · 6b93fb46
      John Crispin 提交于
      This patch contains initial support for the QCA8337 switch. It
      will detect a QCA8337 switch, if present and declared in the DT.
      
      Each port will be represented through a standalone net_device interface,
      as for other DSA switches. CPU can communicate with any of the ports by
      setting an IP@ on ethN interface. Most of the extra callbacks of the DSA
      subsystem are already supported, such as bridge offloading, stp, fdb.
      Signed-off-by: NJohn Crispin <john@phrozen.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6b93fb46
  9. 27 8月, 2016 1 次提交
    • F
      net: dsa: bcm_sf2: Utilize core B53 driver when possible · f458995b
      Florian Fainelli 提交于
      The Broadcom Starfighter2 is almost entirely register compatible with
      B53, yet for historical reasons came up first in the tree and is now
      being updated to utilize b53_common.c to the fullest extent possible. A
      few things need to be adjusted to allow that:
      
      - the switch "core" registers currently operate on a 32-bit address,
        whereas b53 passes a page + reg pair to offset from, so we need to
        convert that, thankfully there is a generic formula to do that
      
      - the link managemenent is not self contained with the B53/CORE register
        set, but instead is in the SWITCH_REG block which is part of the
        integration glue logic, so we keep that entirely custom here because
        this really is part of the existing bcm_sf2 implementation
      
      - there are additional power management constraints on the port's
        memories that make us keep the port_enable/disable callbacks custom
        for now, also, we support tagging whereas b53_common does not support
        that yet
      
      All the VLAN and bridge code is entirely identical though so, avoid
      duplicating it. Other things will be migrated in the future like EEE and
      possibly Wake-on-LAN.
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f458995b
  10. 25 6月, 2016 1 次提交
  11. 10 6月, 2016 1 次提交
    • F
      net: dsa: b53: Add support for Broadcom RoboSwitch · 967dd82f
      Florian Fainelli 提交于
      This patch adds support for Broadcom's BCM53xx switch family, also known
      as RoboSwitch. Some of these switches are ubiquituous, found in home
      routers, Wi-Fi routers, DSL and cable modem gateways and other
      networking related products.
      
      This drivers adds the library driver (b53_common.c) as well as a few bus
      glue drivers for MDIO, SPI, Switch Register Access Block (SRAB) and
      memory-mapped I/O into a SoC's address space (Broadcom BCM63xx/33xx).
      
      Basic operations are supported to bring the Layer 1/2 up and running,
      but not much more at this point, subsequent patches add the remaining
      features.
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      967dd82f
  12. 10 5月, 2016 3 次提交
  13. 15 3月, 2016 1 次提交
  14. 10 7月, 2015 1 次提交
  15. 10 5月, 2015 2 次提交
  16. 17 3月, 2015 1 次提交
  17. 16 12月, 2014 1 次提交
  18. 07 11月, 2014 1 次提交
  19. 31 10月, 2014 2 次提交
  20. 04 10月, 2014 1 次提交
  21. 14 9月, 2014 1 次提交
  22. 28 8月, 2014 1 次提交
    • F
      net: dsa: add Broadcom SF2 switch driver · 246d7f77
      Florian Fainelli 提交于
      Add support for the Broadcom Starfigther 2 switch chip using a DSA
      driver. This switch driver supports the following features:
      
      - configuration of the external switch port interface: MII, RevMII,
        RGMII and RGMII_NO_ID are supported
      - support for the per-port MIB counters
      - support for link interrupts for special ports (e.g: MoCA)
      - powering up/down of switch memories to conserve power when ports are
        unused
      
      Finally, update the compatible property for the DSA core code to match
      our switch top-level compatible node.
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      246d7f77
  23. 27 11月, 2012 1 次提交
  24. 26 11月, 2012 1 次提交
    • V
      net: dsa/slave: Fix compilation warnings · 82167cb8
      viresh kumar 提交于
      Currently when none of CONFIG_NET_DSA_TAG_DSA, CONFIG_NET_DSA_TAG_EDSA and
      CONFIG_NET_DSA_TAG_TRAILER is defined, we get following compilation warnings:
      
      net/dsa/slave.c:51:12: warning: 'dsa_slave_init' defined but not used [-Wunused-function]
      net/dsa/slave.c:60:12: warning: 'dsa_slave_open' defined but not used [-Wunused-function]
      net/dsa/slave.c:98:12: warning: 'dsa_slave_close' defined but not used [-Wunused-function]
      net/dsa/slave.c:116:13: warning: 'dsa_slave_change_rx_flags' defined but not used [-Wunused-function]
      net/dsa/slave.c:127:13: warning: 'dsa_slave_set_rx_mode' defined but not used [-Wunused-function]
      net/dsa/slave.c:136:12: warning: 'dsa_slave_set_mac_address' defined but not used [-Wunused-function]
      net/dsa/slave.c:164:12: warning: 'dsa_slave_ioctl' defined but not used [-Wunused-function]
      
      Earlier approach to fix this was discussed here:
      
      lkml.org/lkml/2012/10/29/549
      
      This is another approach to fix it. This is done by some changes in config
      options, which make more sense than the earlier approach. As, atleast one
      tagging option must always be selected for using net/dsa/ infrastructure, this
      patch selects NET_DSA from tagging configs instead of having it as an selectable
      config.
      Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      82167cb8
  25. 29 11月, 2011 1 次提交
  26. 27 11月, 2011 1 次提交
  27. 29 4月, 2011 1 次提交
  28. 12 8月, 2010 1 次提交
    • R
      phylib: available for any speed ethernet · cba86f2e
      Randy Dunlap 提交于
      Several gigabit network drivers (SB1250_MAC, TIGON3, FSL, GIANFAR,
      UCC_GETH, MV643XX_ETH, XILINX_LL_TEMAC, S6GMAC, STMMAC_ETH, PASEMI_MAC,
      and OCTEON_ETHERNET) select PHYLIB.  These drivers are not under
      NET_ETHERNET (10/100 mbit), so this warning is generated (long, irrelevant
      parts are omitted):
      
      warning: (NET_DSA && NET && EXPERIMENTAL && NET_ETHERNET && !S390 || ... || SB1250_MAC && NETDEVICES && NETDEV_1000 && SIBYTE_SB1xxx_SOC || TIGON3 && NETDEVICES && NETDEV_1000 && PCI || FSL_PQ_MDIO && NETDEVICES && NETDEV_1000 && FSL_SOC || GIANFAR && NETDEVICES && NETDEV_1000 && FSL_SOC || UCC_GETH && NETDEVICES && NETDEV_1000 && QUICC_ENGINE || MV643XX_ETH && NETDEVICES && NETDEV_1000 && (MV64X60 || PPC32 || PLAT_ORION) || XILINX_LL_TEMAC && NETDEVICES && NETDEV_1000 && (PPC || MICROBLAZE) || S6GMAC && NETDEVICES && NETDEV_1000 && XTENSA_VARIANT_S6000 || STMMAC_ETH && NETDEV_1000 && NETDEVICES && CPU_SUBTYPE_ST40 || PASEMI_MAC && NETDEVICES && NETDEV_10000 && PPC_PASEMI && PCI || OCTEON_ETHERNET && STAGING && !STAGING_EXCLUDE_BUILD && CPU_CAVIUM_OCTEON) selects PHYLIB which has unmet direct dependencies (!S390 && NET_ETHERNET)
      
      PHYLIB is used by non-10/100 mbit ethernet drivers, so change the dependencies
      to be NETDEVICES instead of NET_ETHERNET.
      Signed-off-by: NRandy Dunlap <randy.dunlap@oracle.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      cba86f2e
  29. 13 7月, 2010 1 次提交
  30. 22 3月, 2009 1 次提交
  31. 14 10月, 2008 1 次提交
    • H
      dsa: fix compile bug on s390 · 510149e3
      Heiko Carstens 提交于
      git commit 45cec1ba
      "dsa: Need to select PHYLIB." causes this build bug on s390:
      
      drivers/built-in.o: In function `phy_stop_interrupts':
      /home/heicarst/linux-2.6/drivers/net/phy/phy.c:631: undefined reference to `free_irq'
      /home/heicarst/linux-2.6/drivers/net/phy/phy.c:646: undefined reference to `enable_irq'
      drivers/built-in.o: In function `phy_start_interrupts':
      /home/heicarst/linux-2.6/drivers/net/phy/phy.c:601: undefined reference to `request_irq'
      drivers/built-in.o: In function `phy_interrupt':
      /home/heicarst/linux-2.6/drivers/net/phy/phy.c:528: undefined reference to `disable_irq_nosync'
      drivers/built-in.o: In function `phy_change':
      /home/heicarst/linux-2.6/drivers/net/phy/phy.c:674: undefined reference to `enable_irq'
      /home/heicarst/linux-2.6/drivers/net/phy/phy.c:692: undefined reference to `disable_irq'
      
      PHYLIB has alread a depend on !S390, however select PHYLIB at DSA overrides
      that unfortunately. So add a depend on !S390 to DSA as well.
      Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      510149e3
  32. 09 10月, 2008 4 次提交