From: Subject: [PATCH RFC net-next] net: dsa: microchip: add KSZ9477 I2C driver Date: Mon, 17 Dec 2018 17:39:59 -0800 Message-ID: <1545097200-26493-1-git-send-email-Tristram.Ha@microchip.com> Mime-Version: 1.0 Content-Type: text/plain Cc: Tristram Ha , , , To: Sergio Paracuellos , Andrew Lunn , Florian Fainelli , Pavel Machek , Marek Vasut , Dan Carpenter Return-path: Received: from esa3.microchip.iphmx.com ([68.232.153.233]:29259 "EHLO esa3.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726285AbeLRBj7 (ORCPT ); Mon, 17 Dec 2018 20:39:59 -0500 Sender: netdev-owner@vger.kernel.org List-ID: From: Tristram Ha 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