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 <[email protected]>
Cc: Andrew Lunn <[email protected]>
Cc: Florian Fainelli <[email protected]>
Cc: Tristram Ha <[email protected]>
Cc: Woojung Huh <[email protected]>

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

Reply via email to