netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel.org>
To: o.rempel@pengutronix.de, lukma@denx.de
Cc: Martin Whitaker <foss@martin-whitaker.me.uk>,
	woojung.huh@microchip.com, UNGLinuxDriver@microchip.com,
	netdev@vger.kernel.org
Subject: Re: Regression in KSZ9477 dsa driver - KSZ9567 et al. do not support EEE
Date: Mon, 5 Aug 2024 13:54:55 -0700	[thread overview]
Message-ID: <20240805135455.389c906b@kernel.org> (raw)
In-Reply-To: <137ce1ee-0b68-4c96-a717-c8164b514eec@martin-whitaker.me.uk>

On Mon, 5 Aug 2024 13:15:49 +0100 Martin Whitaker wrote:
> I have an embedded processor board running Linux that incorporates a
> KSZ9567 ethernet switch. When using Linux 6.1 I can establish a stable
> connection between two of these boards. When using Linux 6.6, the link
> repeatedly drops and reconnects every few seconds.
> 
>  From bisection, this bug was introduced in the patch series "net: add
> EEE support for KSZ9477 switch family" which was merged in commit
> 9b0bf4f77162.
> 
> As noted in the errata for these devices, EEE support is not fully
> operational in the KSZ9477, KSZ9567, KSZ9896, and KSZ9897 devices,
> causing link drops when connected to another device that supports EEE.
> 
> A fix for this regression was merged in commit 08c6d8bae48c2, but only
> for the KSZ9477. This fix should be extended to the other affected
> devices as follows:

Thanks for the analysis, adding to CC the folks who wrote the commits
you mention.

> diff --git a/drivers/net/dsa/microchip/ksz_common.c
> b/drivers/net/dsa/microchip/ksz_common.c
> index 419476d07fa2..091dae6ac921 100644
> --- a/drivers/net/dsa/microchip/ksz_common.c
> +++ b/drivers/net/dsa/microchip/ksz_common.c
> @@ -2346,6 +2346,9 @@ static u32 ksz_get_phy_flags(struct dsa_switch
> *ds, int port)
>                          return MICREL_KSZ8_P1_ERRATA;
>                  break;
>          case KSZ9477_CHIP_ID:
> +       case KSZ9567_CHIP_ID:
> +       case KSZ9896_CHIP_ID:
> +       case KSZ9897_CHIP_ID:
>                  /* KSZ9477 Errata DS80000754C
>                   *
>                   * Module 4: Energy Efficient Ethernet (EEE) feature
> select must
> 
> I have verified this fixes the bug for the KSZ9567 on my board.
> 


  reply	other threads:[~2024-08-05 20:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-05 12:15 Regression in KSZ9477 dsa driver - KSZ9567 et al. do not support EEE Martin Whitaker
2024-08-05 20:54 ` Jakub Kicinski [this message]
2024-08-06  5:08   ` Oleksij Rempel
2024-08-06  8:12     ` Arun.Ramadoss

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=20240805135455.389c906b@kernel.org \
    --to=kuba@kernel.org \
    --cc=UNGLinuxDriver@microchip.com \
    --cc=foss@martin-whitaker.me.uk \
    --cc=lukma@denx.de \
    --cc=netdev@vger.kernel.org \
    --cc=o.rempel@pengutronix.de \
    --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;
as well as URLs for NNTP newsgroup(s).