[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Mon, 17 Dec 2018 17:39:59 -0800
From: <Tristram.Ha@...rochip.com>
To: Sergio Paracuellos <sergio.paracuellos@...il.com>,
Andrew Lunn <andrew@...n.ch>,
Florian Fainelli <f.fainelli@...il.com>,
Pavel Machek <pavel@....cz>, Marek Vasut <marex@...x.de>,
Dan Carpenter <dan.carpenter@...cle.com>
CC: Tristram Ha <Tristram.Ha@...rochip.com>,
<vivien.didelot@...oirfairelinux.com>,
<UNGLinuxDriver@...rochip.com>, <netdev@...r.kernel.org>
Subject: [PATCH RFC net-next] net: dsa: microchip: add KSZ9477 I2C driver
From: Tristram Ha <Tristram.Ha@...rochip.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
Powered by blists - more mailing lists