From: Arun Ramadoss <arun.ramadoss@microchip.com>
To: <linux-kernel@vger.kernel.org>, <netdev@vger.kernel.org>
Cc: Russell King <linux@armlinux.org.uk>,
Woojung Huh <woojung.huh@microchip.com>,
<UNGLinuxDriver@microchip.com>, Andrew Lunn <andrew@lunn.ch>,
Vivien Didelot <vivien.didelot@gmail.com>,
Florian Fainelli <f.fainelli@gmail.com>,
Vladimir Oltean <olteanv@gmail.com>,
"David S. Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Eric Dumazet <edumazet@google.com>,
Oleksij Rempel <linux@rempel-privat.de>,
Marek Vasut <marex@denx.de>,
Michael Grzeschik <m.grzeschik@pengutronix.de>
Subject: [RFC Patch net-next 0/9] net: dsa: microchip: refactor the ksz switch init function
Date: Wed, 11 May 2022 16:07:46 +0530 [thread overview]
Message-ID: <20220511103755.12553-1-arun.ramadoss@microchip.com> (raw)
During the ksz_switch_register function, it calls the individual switches init
functions (ksz8795.c and ksz9477.c). Both these functions have few things in
common like, copying the chip specific data to struct ksz_dev, allocating
ksz_port memory and mib_names memory & cnt. And to add the new LAN937x series
switch, these allocations has to be replicated.
Based on the review feedback of LAN937x part support patch, refactored the
switch init function to move allocations to switch register.
Link:https://patchwork.kernel.org/project/netdevbpf/patch/20220504151755.11737-8-arun.ramadoss@microchip.com/
Arun Ramadoss (8):
net: dsa: microchip: ksz8795: update the port_cnt value in
ksz_chip_data
net: dsa: microchip: move ksz_chip_data to ksz_common
net: dsa: microchip: perform the compatibility check for dev probed
net: dsa: microchip: move port memory allocation to ksz_common
net: dsa: microchip: move struct mib_names to ksz_chip_data
net: dsa: microchip: move get_strings to ksz_common
net: dsa: microchip: remove unused members in ksz_device
net: dsa: microchip: add the phylink get_caps
Prasanna Vengateshan (1):
net: dsa: move mib->cnt_ptr reset code to ksz_common.c
drivers/net/dsa/microchip/ksz8795.c | 251 +-----------
drivers/net/dsa/microchip/ksz8795_spi.c | 37 +-
drivers/net/dsa/microchip/ksz9477.c | 200 ++--------
drivers/net/dsa/microchip/ksz9477_i2c.c | 30 +-
drivers/net/dsa/microchip/ksz9477_spi.c | 30 +-
drivers/net/dsa/microchip/ksz_common.c | 484 +++++++++++++++++++++++-
drivers/net/dsa/microchip/ksz_common.h | 62 ++-
7 files changed, 641 insertions(+), 453 deletions(-)
base-commit: c908565eecf2d310edddaecea6166015abe9df08
--
2.33.0
next reply other threads:[~2022-05-11 10:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-11 10:37 Arun Ramadoss [this message]
2022-05-11 10:37 ` [RFC Patch net-next 1/9] net: dsa: microchip: ksz8795: update the port_cnt value in ksz_chip_data Arun Ramadoss
2022-05-11 10:37 ` [RFC Patch net-next 2/9] net: dsa: microchip: move ksz_chip_data to ksz_common Arun Ramadoss
2022-05-11 10:37 ` [RFC Patch net-next 3/9] net: dsa: microchip: perform the compatibility check for dev probed Arun Ramadoss
2022-05-11 10:37 ` [RFC Patch net-next 4/9] net: dsa: microchip: move port memory allocation to ksz_common Arun Ramadoss
2022-05-11 10:37 ` [RFC Patch net-next 5/9] net: dsa: microchip: move struct mib_names to ksz_chip_data Arun Ramadoss
2022-05-11 10:37 ` [RFC Patch net-next 6/9] net: dsa: microchip: move get_strings to ksz_common Arun Ramadoss
2022-05-11 10:37 ` [RFC Patch net-next 7/9] net: dsa: move mib->cnt_ptr reset code to ksz_common.c Arun Ramadoss
2022-05-11 10:37 ` [RFC Patch net-next 8/9] net: dsa: microchip: remove unused members in ksz_device Arun Ramadoss
2022-05-11 10:37 ` [RFC Patch net-next 9/9] net: dsa: microchip: add the phylink get_caps Arun Ramadoss
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220511103755.12553-1-arun.ramadoss@microchip.com \
--to=arun.ramadoss@microchip.com \
--cc=UNGLinuxDriver@microchip.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=f.fainelli@gmail.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=linux@rempel-privat.de \
--cc=m.grzeschik@pengutronix.de \
--cc=marex@denx.de \
--cc=netdev@vger.kernel.org \
--cc=olteanv@gmail.com \
--cc=pabeni@redhat.com \
--cc=vivien.didelot@gmail.com \
--cc=woojung.huh@microchip.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).