1. 02 5月, 2017 12 次提交
  2. 25 4月, 2017 3 次提交
  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 3 次提交
  5. 10 4月, 2017 1 次提交
    • F
      net: dsa: mt7530: Include gpio/consumer.h for GPIO functions · eb976a55
      Florian Fainelli 提交于
      Fixes build errors seen with CONFIG_GPIOLIB disabled and warnings enabled:
      
      drivers/net/dsa/mt7530.c: In function 'mt7530_setup':
      drivers/net/dsa/mt7530.c:948:3: error: implicit declaration of function 'gpiod_set_value_cansleep' [-Werror=implicit-function-declaration]
         gpiod_set_value_cansleep(priv->reset, 0);
         ^~~~~~~~~~~~~~~~~~~~~~~~
      drivers/net/dsa/mt7530.c: In function 'mt7530_probe':
      drivers/net/dsa/mt7530.c:1068:17: error: implicit declaration of function 'devm_gpiod_get_optional' [-Werror=implicit-function-declaration]
         priv->reset = devm_gpiod_get_optional(&mdiodev->dev, "reset",
                       ^~~~~~~~~~~~~~~~~~~~~~~
      drivers/net/dsa/mt7530.c:1069:13: error: 'GPIOD_OUT_LOW' undeclared (first use in this function)
                   GPIOD_OUT_LOW);
                   ^~~~~~~~~~~~~
      drivers/net/dsa/mt7530.c:1069:13:
      
      Fixes: b8f126a8 ("net-next: dsa: add dsa support for Mediatek MT7530 switch")
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      eb976a55
  6. 08 4月, 2017 2 次提交
    • F
      net: dsa: mv88e6xxx: Make SMI c22/c45 read/write functions static · 54a88e4c
      Florian Fainelli 提交于
      The SMI clause 22 & 45 read/write operations are local to the global2.c file,
      so make them static. This eliminates the following warning:
      
      drivers/net/dsa/mv88e6xxx/global2.c:571:5: warning: no previous prototype for 'mv88e6xxx_g2_smi_phy_read_c45' [-Wmissing-prototypes]
       int mv88e6xxx_g2_smi_phy_read_c45(struct mv88e6xxx_chip *chip, int addr,
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      drivers/net/dsa/mv88e6xxx/global2.c:602:5: warning: no previous prototype for 'mv88e6xxx_g2_smi_phy_read_c22' [-Wmissing-prototypes]
       int mv88e6xxx_g2_smi_phy_read_c22(struct mv88e6xxx_chip *chip, int addr,
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      drivers/net/dsa/mv88e6xxx/global2.c:635:5: warning: no previous prototype for 'mv88e6xxx_g2_smi_phy_write_c45' [-Wmissing-prototypes]
       int mv88e6xxx_g2_smi_phy_write_c45(struct mv88e6xxx_chip *chip, int addr,
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      drivers/net/dsa/mv88e6xxx/global2.c:664:5: warning: no previous prototype for 'mv88e6xxx_g2_smi_phy_write_c22' [-Wmissing-prototypes]
       int mv88e6xxx_g2_smi_phy_write_c22(struct mv88e6xxx_chip *chip, int addr,
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      Suggested-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Reviewed-by: NVivien Didelot <vivien.didelot@savoirfairelinux.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      54a88e4c
    • 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
  7. 07 4月, 2017 2 次提交
  8. 02 4月, 2017 9 次提交
  9. 31 3月, 2017 2 次提交
  10. 29 3月, 2017 5 次提交