From: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
To: Vivien Didelot <vivien.didelot@gmail.com>
Cc: Andrew Lunn <andrew@lunn.ch>,
Florian Fainelli <f.fainelli@gmail.com>,
"David S. Miller" <davem@davemloft.net>,
Rasmus Villemoes <Rasmus.Villemoes@prevas.se>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH net-next v3 01/10] net: dsa: mv88e6xxx: add mv88e6250_g1_ieee_pri_map
Date: Mon, 3 Jun 2019 19:43:40 +0000 [thread overview]
Message-ID: <155de71a-10d0-820a-27f4-cf0cf8d0e5f2@prevas.dk> (raw)
In-Reply-To: <20190603113713.GB2789@t480s.localdomain>
On 03/06/2019 17.37, Vivien Didelot wrote:
> Hi Rasmus,
>
> On Mon, 3 Jun 2019 14:42:12 +0000, Rasmus Villemoes <rasmus.villemoes@prevas.dk> wrote:
>> Quite a few of the existing supported chips that use
>> mv88e6085_g1_ieee_pri_map as ->ieee_pri_map (including, incidentally,
>> mv88e6085 itself) actually have a reset value of 0xfa50 in the
>> G1_IEEE_PRI register.
>>
>> The data sheet for the mv88e6095, however, does describe a reset value
>> of 0xfa41.
>>
>> So rather than changing the value in the existing callback, introduce
>> a new variant with the 0xfa50 value. That will be used by the upcoming
>> mv88e6250, and existing chips can be switched over one by one,
>> preferably double-checking both the data sheet and actual hardware in
>> each case - if anybody actually feels this is important enough to
>> care.
>
> Given your previous thread on this topic, I'd prefer that you include
> a first patch which implements mv88e6095_g1_ieee_pri_map() using 0xfa41
> and update mv88e{6092,6095}_ops to use it, then a second one which fixes
> mv88e6085_g1_ieee_pri_map to use 0xfa50. Then mv88e6250_ops can use it.
Well, the thing is, that would of course fix the value for 6240 and
6085, keeping the right value for 6092 and 6095, but I'd also be
changing the value for a whole lot of other chips for which I don't know
which one would be the right one.
Originally I thought that 0xfa50 was the right value for all chips
(simply because x -> floor(x/2) is a sane default mapping), but since I
now know that 0xfa41 (i.e., 3 and 0 are mapped to 1, 2 and 1 are mapped
to 0) is the reset value for at least some chips, I'd rather not make a
blanket change that might fix some and "break" other chips.
Rasmus
next prev parent reply other threads:[~2019-06-03 19:43 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-03 14:42 [PATCH net-next v3 00/10] net: dsa: mv88e6xxx: support for mv88e6250 Rasmus Villemoes
2019-06-03 14:42 ` [PATCH net-next v3 01/10] net: dsa: mv88e6xxx: add mv88e6250_g1_ieee_pri_map Rasmus Villemoes
2019-06-03 14:57 ` Andrew Lunn
2019-06-03 15:37 ` Vivien Didelot
2019-06-03 19:43 ` Rasmus Villemoes [this message]
2019-06-03 14:42 ` [PATCH net-next v3 02/10] net: dsa: mv88e6xxx: introduce support for two chips using direct smi addressing Rasmus Villemoes
2019-06-03 14:42 ` [PATCH net-next v3 03/10] net: dsa: mv88e6xxx: prepare mv88e6xxx_g1_atu_op() for the mv88e6250 Rasmus Villemoes
2019-06-03 14:42 ` [PATCH net-next v3 04/10] net: dsa: mv88e6xxx: implement vtu_getnext and vtu_loadpurge for mv88e6250 Rasmus Villemoes
2019-06-03 14:42 ` [PATCH net-next v3 05/10] net: dsa: mv88e6xxx: implement watchdog_ops " Rasmus Villemoes
2019-06-03 14:42 ` [PATCH net-next v3 06/10] net: dsa: mv88e6xxx: implement port_set_speed " Rasmus Villemoes
2019-06-03 15:01 ` Andrew Lunn
2019-06-03 14:42 ` [PATCH net-next v3 07/10] net: dsa: mv88e6xxx: implement port_link_state " Rasmus Villemoes
2019-06-03 15:06 ` Andrew Lunn
2019-06-03 14:42 ` [PATCH net-next v3 08/10] net: dsa: mv88e6xxx: add support " Rasmus Villemoes
2019-06-03 15:16 ` Andrew Lunn
2019-06-03 14:42 ` [PATCH net-next v3 09/10] dt-bindings: net: dsa: marvell: add "marvell,mv88e6250" compatible string Rasmus Villemoes
2019-06-03 15:17 ` Andrew Lunn
2019-06-03 14:42 ` [PATCH net-next v3 10/10] net: dsa: mv88e6xxx: refactor mv88e6352_g1_reset Rasmus Villemoes
2019-06-03 15:18 ` Andrew Lunn
2019-06-03 20:04 ` [PATCH net-next v3 00/10] net: dsa: mv88e6xxx: support for mv88e6250 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=155de71a-10d0-820a-27f4-cf0cf8d0e5f2@prevas.dk \
--to=rasmus.villemoes@prevas.dk \
--cc=Rasmus.Villemoes@prevas.se \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=f.fainelli@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--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
all inboxes | Powered by JetHome®