From: Horatiu Vultur <horatiu.vultur@microchip.com>
To: Maxime Chevallier <maxime.chevallier@bootlin.com>
Cc: <davem@davemloft.net>, <edumazet@google.com>, <kuba@kernel.org>,
<pabeni@redhat.com>, <netdev@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <UNGLinuxDriver@microchip.com>
Subject: Re: [PATCH net] net: lan966x: Fix port configuration when using SGMII interface
Date: Tue, 23 Jan 2024 11:03:19 +0100 [thread overview]
Message-ID: <20240123100319.3z6or2ahhztkplgv@DEN-DL-M31836.microchip.com> (raw)
In-Reply-To: <20240123094849.5ce5acc8@device-28.home>
The 01/23/2024 09:48, Maxime Chevallier wrote:
>
> Hello Horatiu,
Hi Maxime,
>
> On Tue, 23 Jan 2024 09:15:14 +0100
> Horatiu Vultur <horatiu.vultur@microchip.com> wrote:
>
> > In case the interface between the MAC and the PHY is SGMII, then the bit
> > GIGA_MODE on the MAC side needs to be set regardless of the speed at
> > which it is running.
> >
> > Fixes: d28d6d2e37d1 ("net: lan966x: add port module support")
> > Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
> > ---
> > drivers/net/ethernet/microchip/lan966x/lan966x_port.c | 3 ++-
> > 1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/drivers/net/ethernet/microchip/lan966x/lan966x_port.c b/drivers/net/ethernet/microchip/lan966x/lan966x_port.c
> > index 92108d354051c..975a6d64a2e18 100644
> > --- a/drivers/net/ethernet/microchip/lan966x/lan966x_port.c
> > +++ b/drivers/net/ethernet/microchip/lan966x/lan966x_port.c
> > @@ -170,7 +170,8 @@ static void lan966x_port_link_up(struct lan966x_port *port)
> > /* Also the GIGA_MODE_ENA(1) needs to be set regardless of the
> > * port speed for QSGMII ports.
>
> Small nit, I think this comment above the test could also be updated to
> reflect that change.
Ah... yes, you are right. I will update this in the next version.
>
> > */
> > - if (phy_interface_num_ports(config->portmode) == 4)
> > + if (phy_interface_num_ports(config->portmode) == 4 ||
> > + config->portmode == PHY_INTERFACE_MODE_SGMII)
> > mode = DEV_MAC_MODE_CFG_GIGA_MODE_ENA_SET(1);
> >
> > lan_wr(config->duplex | mode,
>
> Besides that,
>
> Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
>
> Thanks,
>
> Maxime
--
/Horatiu
prev parent reply other threads:[~2024-01-23 10:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-23 8:15 [PATCH net] net: lan966x: Fix port configuration when using SGMII interface Horatiu Vultur
2024-01-23 8:48 ` Maxime Chevallier
2024-01-23 10:03 ` Horatiu Vultur [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=20240123100319.3z6or2ahhztkplgv@DEN-DL-M31836.microchip.com \
--to=horatiu.vultur@microchip.com \
--cc=UNGLinuxDriver@microchip.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maxime.chevallier@bootlin.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.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