From: Andrew Lunn <andrew@lunn.ch>
To: Mattias Forsblad <mattias.forsblad@gmail.com>
Cc: netdev@vger.kernel.org, Vivien Didelot <vivien.didelot@gmail.com>,
Florian Fainelli <f.fainelli@gmail.com>,
Vladimir Oltean <olteanv@gmail.com>,
"David S . Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>
Subject: Re: [PATCH net-next v3 1/2] net: dsa: mv88e6xxx: Add functionality for handling RMU frames.
Date: Mon, 5 Sep 2022 15:43:15 +0200 [thread overview]
Message-ID: <YxX888IJMul5DOuH@lunn.ch> (raw)
In-Reply-To: <20220905131917.3643193-2-mattias.forsblad@gmail.com>
On Mon, Sep 05, 2022 at 03:19:16PM +0200, Mattias Forsblad wrote:
> The Marvell SOHO family has a secondary channel for sending
> control data other than the ordinary MDIO channel. The
> switch can process specially crafted ethernet frames
> as control frames. Add functionality for creating, sending,
> receiving and processing those frames. This channel is
> best suited for accessing larger data structures in the
> switch.
> Use this control channel for getting RMON counters.
>
> Signed-off-by: Mattias Forsblad <mattias.forsblad@gmail.com>
> ---
> drivers/net/dsa/mv88e6xxx/Makefile | 1 +
> drivers/net/dsa/mv88e6xxx/chip.c | 73 +++++--
> drivers/net/dsa/mv88e6xxx/chip.h | 21 ++
> drivers/net/dsa/mv88e6xxx/global1.c | 76 +++++++
> drivers/net/dsa/mv88e6xxx/global1.h | 3 +
> drivers/net/dsa/mv88e6xxx/rmu.c | 310 ++++++++++++++++++++++++++++
> drivers/net/dsa/mv88e6xxx/rmu.h | 28 +++
> include/net/dsa.h | 20 +-
> net/dsa/dsa.c | 28 +++
> net/dsa/dsa2.c | 2 +
> net/dsa/tag_dsa.c | 32 ++-
Please try to break this up into lots of small patches, each patch
doing one thing. It is O.K, to add a helper in one patch, and then a
user of that helper in a later patch, for example. You can add the
common code in dsa.c and then in a later patch make use of it. You can
add the rmu_enable code in one patch, and then use it later, etc.
Ideally, you want lots of small patches, each with a good commit
message, all of which are obviously correct.
I've not looked at the details yet of this patch. I will try to do so
later. My main aim at the moment is to get your changes into the right
sort of structure and the right sort of shape.
Andrew
next prev parent reply other threads:[~2022-09-05 13:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-05 13:19 [PATCH net-next v3 0/2] net: dsa: mv88e6xxx: qca8k: Add RMU support Mattias Forsblad
2022-09-05 13:19 ` [PATCH net-next v3 1/2] net: dsa: mv88e6xxx: Add functionality for handling RMU frames Mattias Forsblad
2022-09-05 13:43 ` Andrew Lunn [this message]
2022-09-05 17:12 ` kernel test robot
2022-09-05 17:43 ` kernel test robot
2022-09-05 18:14 ` kernel test robot
2022-09-08 8:44 ` Paolo Abeni
2022-09-05 13:19 ` [PATCH net-next v3 2/2] net: qca8k: Use convenience function for sending frames Mattias Forsblad
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=YxX888IJMul5DOuH@lunn.ch \
--to=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=f.fainelli@gmail.com \
--cc=kuba@kernel.org \
--cc=mattias.forsblad@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=olteanv@gmail.com \
--cc=pabeni@redhat.com \
--cc=vivien.didelot@gmail.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).