From: Paolo Abeni <pabeni@redhat.com>
To: Tristram.Ha@microchip.com,
Woojung Huh <woojung.huh@microchip.com>,
UNGLinuxDriver@microchip.com, devicetree@vger.kernel.org,
Andrew Lunn <andrew@lunn.ch>,
Florian Fainelli <f.fainelli@gmail.com>,
Vladimir Oltean <olteanv@gmail.com>,
Rob Herring <robh@kernel.org>
Cc: Oleksij Rempel <o.rempel@pengutronix.de>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>, Marek Vasut <marex@denx.de>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next v3 2/2] net: dsa: microchip: Add KSZ8895/KSZ8864 switch support
Date: Tue, 13 Aug 2024 15:54:22 +0200 [thread overview]
Message-ID: <8dfa7ffb-f40b-452c-9c3e-6bb500e1a46a@redhat.com> (raw)
In-Reply-To: <20240809212142.3575-3-Tristram.Ha@microchip.com>
On 8/9/24 23:21, Tristram.Ha@microchip.com wrote:
> @@ -542,11 +545,11 @@ static int ksz8_r_sta_mac_table(struct ksz_device *dev, u16 addr,
> shifts[STATIC_MAC_FWD_PORTS];
> alu->is_override = (data_hi & masks[STATIC_MAC_TABLE_OVERRIDE]) ? 1 : 0;
>
> - /* KSZ8795 family switches have STATIC_MAC_TABLE_USE_FID and
> + /* KSZ8795/KSZ8895 family switches have STATIC_MAC_TABLE_USE_FID and
> * STATIC_MAC_TABLE_FID definitions off by 1 when doing read on the
> * static MAC table compared to doing write.
> */
> - if (ksz_is_ksz87xx(dev))
> + if (!ksz_is_ksz88x3(dev))
I think that for consistency and readability the above should be:
if (ksz_is_ksz87xx(dev) || ksz_is_8895_family(dev))
Thanks,
Paolo
prev parent reply other threads:[~2024-08-13 13:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-09 21:21 [PATCH net-next v3 0/2] " Tristram.Ha
2024-08-09 21:21 ` [PATCH net-next v3 1/2] dt-bindings: " Tristram.Ha
2024-08-10 11:52 ` Krzysztof Kozlowski
2024-08-13 23:14 ` Tristram.Ha
2024-08-14 6:11 ` Krzysztof Kozlowski
2024-08-09 21:21 ` [PATCH net-next v3 2/2] " Tristram.Ha
2024-08-13 13:54 ` Paolo Abeni [this message]
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=8dfa7ffb-f40b-452c-9c3e-6bb500e1a46a@redhat.com \
--to=pabeni@redhat.com \
--cc=Tristram.Ha@microchip.com \
--cc=UNGLinuxDriver@microchip.com \
--cc=andrew@lunn.ch \
--cc=conor+dt@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=f.fainelli@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marex@denx.de \
--cc=netdev@vger.kernel.org \
--cc=o.rempel@pengutronix.de \
--cc=olteanv@gmail.com \
--cc=robh@kernel.org \
--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
all inboxes | Powered by JetHome®