netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFC net-next] net: dsa: microchip: add KSZ9477 I2C driver
@ 2018-12-18  1:39 Tristram.Ha
  2018-12-18  1:40 ` Tristram.Ha
  2018-12-18  8:06 ` Dan Carpenter
  0 siblings, 2 replies; 10+ messages in thread
From: Tristram.Ha @ 2018-12-18  1:39 UTC (permalink / raw)
  To: Sergio Paracuellos, Andrew Lunn, Florian Fainelli, Pavel Machek,
	Marek Vasut, Dan Carpenter
  Cc: Tristram Ha, vivien.didelot, UNGLinuxDriver, netdev

From: Tristram Ha <Tristram.Ha@microchip.com>

This patch adds KSZ9477 I2C driver support.

I know a patch for KSZ9477 I2C driver was already submitted.  There is a
minor problem though.  The structure and code of the I2C driver should
match those in the SPI driver.  The only difference is the register
access.

Accordingly the file ksz_i2c.h is created so that some shared I2C
functions can be used by other switch drivers.

Tristram Ha (1):
  net: dsa: microchip: add KSZ9477 I2C driver

 drivers/net/dsa/microchip/Kconfig       |   6 +
 drivers/net/dsa/microchip/Makefile      |   1 +
 drivers/net/dsa/microchip/ksz9477_i2c.c | 194 ++++++++++++++++++++++++++++++++
 drivers/net/dsa/microchip/ksz_i2c.h     |  69 ++++++++++++
 4 files changed, 270 insertions(+)
 create mode 100644 drivers/net/dsa/microchip/ksz9477_i2c.c
 create mode 100644 drivers/net/dsa/microchip/ksz_i2c.h

-- 
1.9.1

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-12-18 14:49 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-18  1:39 [PATCH RFC net-next] net: dsa: microchip: add KSZ9477 I2C driver Tristram.Ha
2018-12-18  1:40 ` Tristram.Ha
2018-12-18  2:55   ` Woojung.Huh
2018-12-18  4:16   ` Tristram.Ha
2018-12-18  6:30     ` Sergio Paracuellos
2018-12-18  6:24   ` Sergio Paracuellos
2018-12-18 10:01     ` Andrew Lunn
2018-12-18 14:49       ` Marek Vasut
2018-12-18  8:06 ` Dan Carpenter
2018-12-18  8:54   ` Sergio Paracuellos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).