linux/drivers/net/dsa
Arnd Bergmann 239c599a5f net: dsa: LAN9303: add I2C dependency
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: be4e119f99 ("net: dsa: LAN9303: add I2C managed mode support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-04-21 15:33:55 -04:00
..
b53 net: dsa: b53: Add support for port mirroring 2017-01-30 15:55:47 -05:00
mv88e6xxx net: dsa: mv88e6xxx: Make SMI c22/c45 read/write functions static 2017-04-08 08:31:09 -07:00
bcm_sf2_cfp.c net: break include loop netdevice.h, dsa.h, devlink.h 2017-03-28 22:46:04 -07:00
bcm_sf2_regs.h net: dsa: bcm_sf2: Add CFP registers definitions 2017-01-30 14:49:58 -05:00
bcm_sf2.c net: dsa: bcm_sf2: Add support for port mirroring 2017-01-30 15:55:47 -05:00
bcm_sf2.h net: dsa: bcm_sf2: Add support for ethtool::rxnfc 2017-01-30 14:49:58 -05:00
dsa_loop_bdinfo.c net: dsa: Mock-up driver 2017-04-01 12:39:32 -07:00
dsa_loop.c net: dsa: loop: Initialize err in dsa_loop_vlan_dump 2017-04-06 13:33:17 -07:00
dsa_loop.h net: dsa: Mock-up driver 2017-04-01 12:39:32 -07:00
Kconfig net: dsa: LAN9303: add I2C dependency 2017-04-21 15:33:55 -04:00
lan9303_i2c.c net: dsa: LAN9303: add I2C managed mode support 2017-04-20 13:48:54 -04:00
lan9303_mdio.c net: dsa: LAN9303: add MDIO managed mode support 2017-04-20 13:48:55 -04:00
lan9303-core.c net: dsa: add new DSA switch driver for the SMSC-LAN9303 2017-04-20 13:48:54 -04:00
lan9303.h net: dsa: add new DSA switch driver for the SMSC-LAN9303 2017-04-20 13:48:54 -04:00
Makefile net: dsa: LAN9303: add MDIO managed mode support 2017-04-20 13:48:55 -04:00
mt7530.c net: dsa: mt7530: Include gpio/consumer.h for GPIO functions 2017-04-09 18:28:54 -07:00
mt7530.h net-next: dsa: add dsa support for Mediatek MT7530 switch 2017-04-07 13:52:11 -07:00
mv88e6060.c net: dsa: Make dsa_switch_ops const 2017-01-09 15:44:50 -05:00
mv88e6060.h net: dsa: Keep the mii bus and address in the private structure 2016-04-13 18:15:23 -04:00
qca8k.c net: dsa: qca8k: use dsa_port's bridge pointer 2017-01-29 18:42:46 -05:00
qca8k.h net: dsa: qca8k: use dsa_port's bridge pointer 2017-01-29 18:42:46 -05:00