mbox series

[v2,00/11] net: dsa: microchip: make ksz8795 driver more versatile

Message ID 20201201204506.13473-1-m.grzeschik@pengutronix.de (mailing list archive)
Headers show
Series net: dsa: microchip: make ksz8795 driver more versatile | expand

Message

Michael Grzeschik Dec. 1, 2020, 8:44 p.m. UTC
This series changes the ksz8795 driver to use more dynamic variables
instead of static defines. The purpose is to prepare the driver to
be used with other microchip switches with a similar layout.

Michael Grzeschik (11):
  net: dsa: microchip: ksz8795: remove unused last_port variable
  net: dsa: microchip: ksz8795: remove superfluous port_cnt assignment
  net: dsa: microchip: ksz8795: move variable assignments from detect to init
  net: dsa: microchip: ksz8795: use reg_mib_cnt where possible
  net: dsa: microchip: ksz8795: use mib_cnt where possible
  net: dsa: microchip: ksz8795: use phy_port_cnt where possible
  net: dsa: microchip: remove superfluous num_ports asignment
  net: dsa: microchip: ksz8795: align port_cnt usage with other microchip drivers
  net: dsa: microchip: remove usage of mib_port_count
  net: dsa: microchip: ksz8795: use port_cnt instead of TOTOAL_PORT_NUM
  net: dsa: microchip: ksz8795: use num_vlans where possible

 drivers/net/dsa/microchip/ksz8795.c     | 71 ++++++++++++-------------
 drivers/net/dsa/microchip/ksz8795_reg.h | 10 ----
 drivers/net/dsa/microchip/ksz9477.c     | 14 ++---
 drivers/net/dsa/microchip/ksz_common.c  |  4 +-
 drivers/net/dsa/microchip/ksz_common.h  |  2 -
 5 files changed, 40 insertions(+), 61 deletions(-)

Comments

Jakub Kicinski Dec. 3, 2020, 1:18 a.m. UTC | #1
On Tue,  1 Dec 2020 21:44:55 +0100 Michael Grzeschik wrote:
> This series changes the ksz8795 driver to use more dynamic variables
> instead of static defines. The purpose is to prepare the driver to
> be used with other microchip switches with a similar layout.

Applied, thanks!