mbox series

[RFC,0/4] Convert KSZ9477 SPI driver to use regmap

Message ID 1547695326-31553-1-git-send-email-Tristram.Ha@microchip.com
Headers show
Series Convert KSZ9477 SPI driver to use regmap | expand

Message

Tristram.Ha@microchip.com Jan. 17, 2019, 3:22 a.m. UTC
From: Tristram Ha <Tristram.Ha@microchip.com>

Convert KSZ9477 SPI driver to use regmap mechanism so that an I2C
driver can be easily added.

Original regmap implementation was submitted by Marek Vasut.  Modified
and verified the implementation on real hardware.

Tristram Ha (4):
  net: dsa: microchip: convert KSZ9477 SPI driver to use regmap
  net: dsa: microchip: Use regmap_update_bits
  net: dsa: microchip: remove ksz9477_get_port_addr
  net: dsa: microchip: remove ksz_spi.h

 drivers/net/dsa/microchip/Kconfig       |   1 +
 drivers/net/dsa/microchip/ksz9477.c     |  34 +--------
 drivers/net/dsa/microchip/ksz9477_spi.c | 131 ++++++++++----------------------
 drivers/net/dsa/microchip/ksz_common.c  |   9 +--
 drivers/net/dsa/microchip/ksz_common.h  | 113 ++++++++-------------------
 drivers/net/dsa/microchip/ksz_priv.h    |  29 +------
 drivers/net/dsa/microchip/ksz_spi.h     |  69 -----------------
 7 files changed, 84 insertions(+), 302 deletions(-)
 delete mode 100644 drivers/net/dsa/microchip/ksz_spi.h