From: Florian Fainelli <f.fainelli@gmail.com>
To: Tristram.Ha@microchip.com, "David S. Miller" <davem@davemloft.net>
Cc: Andrew Lunn <andrew@lunn.ch>, Pavel Machek <pavel@ucw.cz>,
UNGLinuxDriver@microchip.com, netdev@vger.kernel.org
Subject: Re: [PATCH v4 net-next 0/6] net: dsa: microchip: Modify KSZ9477 DSA driver in preparation to add other KSZ switch drivers
Date: Tue, 20 Nov 2018 20:15:06 -0800 [thread overview]
Message-ID: <e2647e49-d980-ac58-95fa-d1e5208e3689@gmail.com> (raw)
In-Reply-To: <1542758110-1037-1-git-send-email-Tristram.Ha@microchip.com>
On 11/20/2018 3:55 PM, Tristram.Ha@microchip.com wrote:
> From: Tristram Ha <Tristram.Ha@microchip.com>
>
> This series of patches is to modify the original KSZ9477 DSA driver so
> that other KSZ switch drivers can be added and use the common code.
>
> There are several steps to accomplish this achievement. First is to
> rename some function names with a prefix to indicate chip specific
> function. Second is to move common code into header that can be shared.
> Last is to modify tag_ksz.c so that it can handle many tail tag formats
> used by different KSZ switch drivers.
>
> ksz_common.c will contain the common code used by all KSZ switch drivers.
> ksz9477.c will contain KSZ9477 code from the original ksz_common.c.
> ksz9477_spi.c is renamed from ksz_spi.c.
> ksz9477_reg.h is renamed from ksz_9477_reg.h.
> ksz_common.h is added to provide common code access to KSZ switch
> drivers.
> ksz_spi.h is added to provide common SPI access functions to KSZ SPI
> drivers.
Thanks a lot for getting this series out, hopefully there is no blocker
getting it merged now and you can follow-up with additional features.
>
> v4
> - Patches were removed to concentrate on changing driver structure without
> adding new code.
>
> v3
> - The phy_device structure is used to hold port link information
> - A structure is passed in ksz_xmit and ksz_rcv instead of function pointer
> - Switch offload forwarding is supported
>
> v2
> - Initialize reg_mutex before use
> - The alu_mutex is only used inside chip specific functions
>
> v1
> - Each patch in the set is self-contained
> - Use ksz9477 prefix to indicate KSZ9477 specific code
>
> Tristram Ha (6):
> net: dsa: microchip: replace license with GPL
> net: dsa: microchip: clean up code
> net: dsa: microchip: rename some functions with ksz9477 prefix
> net: dsa: microchip: rename ksz_spi.c to ksz9477_spi.c
> net: dsa: microchip: break KSZ9477 DSA driver into two files
> net: dsa: microchip: rename ksz_9477_reg.h to ksz9477_reg.h
>
> drivers/net/dsa/microchip/Kconfig | 16 +-
> drivers/net/dsa/microchip/Makefile | 5 +-
> drivers/net/dsa/microchip/ksz9477.c | 1316 ++++++++++++++++++++
> .../microchip/{ksz_9477_reg.h => ksz9477_reg.h} | 17 +-
> drivers/net/dsa/microchip/ksz9477_spi.c | 177 +++
> drivers/net/dsa/microchip/ksz_common.c | 1183 +++---------------
> drivers/net/dsa/microchip/ksz_common.h | 214 ++++
> drivers/net/dsa/microchip/ksz_priv.h | 245 ++--
> drivers/net/dsa/microchip/ksz_spi.c | 217 ----
> drivers/net/dsa/microchip/ksz_spi.h | 69 +
> 10 files changed, 2039 insertions(+), 1420 deletions(-)
> create mode 100644 drivers/net/dsa/microchip/ksz9477.c
> rename drivers/net/dsa/microchip/{ksz_9477_reg.h => ksz9477_reg.h} (98%)
> create mode 100644 drivers/net/dsa/microchip/ksz9477_spi.c
> create mode 100644 drivers/net/dsa/microchip/ksz_common.h
> delete mode 100644 drivers/net/dsa/microchip/ksz_spi.c
> create mode 100644 drivers/net/dsa/microchip/ksz_spi.h
>
--
Florian
next prev parent reply other threads:[~2018-11-21 14:47 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-20 23:55 [PATCH v4 net-next 0/6] net: dsa: microchip: Modify KSZ9477 DSA driver in preparation to add other KSZ switch drivers Tristram.Ha
2018-11-20 23:55 ` [PATCH v4 net-next 1/6] net: dsa: microchip: replace license with GPL Tristram.Ha
2018-11-21 4:14 ` Florian Fainelli
2018-11-20 23:55 ` [PATCH v4 net-next 2/6] net: dsa: microchip: clean up code Tristram.Ha
2018-11-20 23:55 ` [PATCH v4 net-next 3/6] net: dsa: microchip: rename some functions with ksz9477 prefix Tristram.Ha
2018-11-20 23:55 ` [PATCH v4 net-next 4/6] net: dsa: microchip: rename ksz_spi.c to ksz9477_spi.c Tristram.Ha
2018-11-20 23:55 ` [PATCH v4 net-next 5/6] net: dsa: microchip: break KSZ9477 DSA driver into two files Tristram.Ha
2018-12-03 13:49 ` Sørensen, Stefan
2018-12-03 20:44 ` Tristram.Ha
2018-11-20 23:55 ` [PATCH v4 net-next 6/6] net: dsa: microchip: rename ksz_9477_reg.h to ksz9477_reg.h Tristram.Ha
2018-11-21 4:14 ` Florian Fainelli
2018-11-21 4:15 ` Florian Fainelli [this message]
2018-11-21 4:57 ` [PATCH v4 net-next 0/6] net: dsa: microchip: Modify KSZ9477 DSA driver in preparation to add other KSZ switch drivers David Miller
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=e2647e49-d980-ac58-95fa-d1e5208e3689@gmail.com \
--to=f.fainelli@gmail.com \
--cc=Tristram.Ha@microchip.com \
--cc=UNGLinuxDriver@microchip.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=pavel@ucw.cz \
/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).