From: Vivien Didelot <vivien.didelot@gmail.com>
To: Andrew Lunn <andrew@lunn.ch>
Cc: Florian Fainelli <f.fainelli@gmail.com>,
netdev@vger.kernel.org, Chris Healy <cphealy@gmail.com>,
"John W . Linville" <linville@tuxdriver.com>
Subject: Re: [PATCH 0/7] ethtool: add pretty dump for DSA mv88e6xxx drivers
Date: Sun, 16 Dec 2018 13:03:09 -0500 [thread overview]
Message-ID: <20181216130309.GD2063@slim.localdomain> (raw)
In-Reply-To: <20181215174849.GE5922@lunn.ch>
Hi Andrew,
On Sat, 15 Dec 2018 18:48:49 +0100, Andrew Lunn <andrew@lunn.ch> wrote:
> > > The first patch adds the base support for "dsa" interfaces.
> > >
> > > The second patch adds the boilerplate for the "mv88e6xxx" DSA driver,
> > > all using 32 registers of 16 bits, the switch ID being available in
> > > the port identification register 3. Support for other DSA drivers such
> > > as "b53" or "ksz" can be added similarly later. Because the different
> > > switches supported by mv88e6xxx have slightly different register layout,
> > > we keep it simple and stupid by providing one dump function per switch.
> >
> > This looks good to me, the only "concern" is that mv88e6xxx set
> > regs->version = 0, while we could probably put the switch model in there
> > directly which would avoid other drivers to have to put the chip ID in
> > regs[3] since that may, or may not be convenient.
>
> I was wondering about that. Having this all under 'dsa' seems too
> granular. It would be better if we could have 'mv88e6xxx', 'b53',
> 'ksz', etc. That might need a new DSA driver op to get the driver name
> which we then use for the slave?
Indeed we could have DSA driver specific names, including or not a
prefix such as "dsa-", as in "(dsa-)mv88e6xxx". However I choose not
to go that way for the moment since casting the ethtool registers to
u16 and checking regs[3] isn't destructive. I felt like changing the
"dsa" driver name can be part of a future iteration, but I'd be glad
to make the change now if you guys prefer.
Thanks,
Vivien
next prev parent reply other threads:[~2018-12-16 18:03 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-15 2:50 [PATCH 0/7] ethtool: add pretty dump for DSA mv88e6xxx drivers Vivien Didelot
2018-12-15 2:50 ` [PATCH 1/7] ethtool: dsa: add pretty dump Vivien Didelot
2018-12-15 2:50 ` [PATCH 2/7] ethtool: dsa: mv88e6xxx: " Vivien Didelot
2018-12-15 2:50 ` [PATCH 3/7] ethtool: dsa: mv88e6xxx: add pretty dump for 88E6185 Vivien Didelot
2018-12-15 2:50 ` [PATCH 4/7] ethtool: dsa: mv88e6xxx: add pretty dump for 88E6161 Vivien Didelot
2018-12-15 2:50 ` [PATCH 5/7] ethtool: dsa: mv88e6xxx: add pretty dump for 88E6352 Vivien Didelot
2018-12-15 2:50 ` [PATCH 6/7] ethtool: dsa: mv88e6xxx: add pretty dump for 88E6390 Vivien Didelot
2018-12-15 2:50 ` [PATCH 7/7] ethtool: dsa: mv88e6xxx: pretty dump others Vivien Didelot
2018-12-15 17:28 ` [PATCH 0/7] ethtool: add pretty dump for DSA mv88e6xxx drivers Florian Fainelli
2018-12-15 17:48 ` Andrew Lunn
2018-12-16 18:02 ` Florian Fainelli
2018-12-16 20:00 ` Andrew Lunn
2018-12-16 18:03 ` Vivien Didelot [this message]
2018-12-16 17:57 ` Vivien Didelot
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=20181216130309.GD2063@slim.localdomain \
--to=vivien.didelot@gmail.com \
--cc=andrew@lunn.ch \
--cc=cphealy@gmail.com \
--cc=f.fainelli@gmail.com \
--cc=linville@tuxdriver.com \
--cc=netdev@vger.kernel.org \
/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).