From: Marek Vasut Subject: [RFT][PATCH V2 00/10] net: dsa: microchip: Convert to regmap Date: Fri, 21 Dec 2018 02:58:31 +0100 Message-ID: <20181221015841.6992-1-marex@denx.de> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: f.fainelli@gmail.com, andrew@lunn.ch, Marek Vasut , Tristram Ha , Woojung Huh To: netdev@vger.kernel.org Return-path: Received: from mail-out.m-online.net ([212.18.0.9]:41372 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730104AbeLUB65 (ORCPT ); Thu, 20 Dec 2018 20:58:57 -0500 Sender: netdev-owner@vger.kernel.org List-ID: This patchset converts KSZ9477 switch driver to regmap. This was tested with extra patches on KSZ8795 and compile-tested for KSZ9477, as I don't own a device with KSZ9477. Tristram, I hope this helps you get started with the regmap. Please test on the KSZ9477 and let me know how it works, or ideally provide fixes :) Signed-off-by: Marek Vasut Cc: Andrew Lunn Cc: Florian Fainelli Cc: Tristram Ha Cc: Woojung Huh Marek Vasut (10): net: dsa: microchip: Remove ksz_{read,write}24() net: dsa: microchip: Remove ksz_{get,set}() net: dsa: microchip: Inline ksz_spi.h net: dsa: microchip: Move ksz_cfg and ksz_port_cfg to ksz9477.c net: dsa: microchip: Use PORT_CTRL_ADDR() instead of indirect function call net: dsa: microchip: Factor out register access opcode generation net: dsa: microchip: Initial SPI regmap support net: dsa: microchip: Dispose of ksz_io_ops net: dsa: microchip: Factor out regmap config generation into common header net: dsa: microchip: Replace ad-hoc bit manipulation with regmap drivers/net/dsa/microchip/Kconfig | 1 + drivers/net/dsa/microchip/ksz9477.c | 35 +++--- drivers/net/dsa/microchip/ksz9477_spi.c | 112 +++-------------- drivers/net/dsa/microchip/ksz_common.c | 6 +- drivers/net/dsa/microchip/ksz_common.h | 153 +++++++----------------- drivers/net/dsa/microchip/ksz_priv.h | 23 +--- drivers/net/dsa/microchip/ksz_spi.h | 69 ----------- 7 files changed, 79 insertions(+), 320 deletions(-) delete mode 100644 drivers/net/dsa/microchip/ksz_spi.h -- 2.19.2