From: Marek Vasut Subject: [RFT][PATCH 0/7] net: dsa: microchip: Convert to regmap Date: Thu, 20 Dec 2018 02:06:40 +0100 Message-ID: <20181220010647.4059-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.10]:42975 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728468AbeLTBG4 (ORCPT ); Wed, 19 Dec 2018 20:06:56 -0500 Sender: netdev-owner@vger.kernel.org List-ID: This patchset converts KSZ9477 switch driver to regmap. This was only compile-tested as I don't own a device with KSZ9477, but is implemented in hope that it will help with proper regmap conversion. Note that the first 5 patches might just go in as cleanups, the 6/7 and 7/7 probably need more debugging and/or work. 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 (7): net: dsa: microchip: Remove ksz_{read,write}24() net: dsa: microchip: Remove ksz_{get,set}24() net: dsa: microchip: Inline ksz_spi.h net: dsa: microchip: Remove dev->txbuf net: dsa: microchip: Factor out register access opcode generation net: dsa: microchip: Initial SPI regmap support net: dsa: microchip: Dispose of ksz_io_ops drivers/net/dsa/microchip/Kconfig | 1 + drivers/net/dsa/microchip/ksz9477_spi.c | 106 ++++-------------------- drivers/net/dsa/microchip/ksz_common.c | 6 +- drivers/net/dsa/microchip/ksz_common.h | 96 ++++----------------- drivers/net/dsa/microchip/ksz_priv.h | 23 +---- drivers/net/dsa/microchip/ksz_spi.h | 69 --------------- 6 files changed, 38 insertions(+), 263 deletions(-) delete mode 100644 drivers/net/dsa/microchip/ksz_spi.h -- 2.19.2