All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Horman <horms@kernel.org>
To: Mark Mentovai <mark@mentovai.com>
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	"Oleksij Rempel" <o.rempel@pengutronix.de>,
	"Jonas Gorski" <jonas.gorski@gmail.com>,
	"Russell Senior" <russell@personaltelco.net>,
	"Lóránd Horváth" <lorand.horvath82@gmail.com>,
	"Mieczyslaw Nalewaj" <namiltd@yahoo.com>,
	"Shiji Yang" <yangshiji66@outlook.com>
Subject: Re: [PATCH] net: phy: realtek: add support for RTL8366S Gigabit PHY
Date: Thu, 25 Jul 2024 21:01:43 +0100	[thread overview]
Message-ID: <20240725200143.GM97837@kernel.org> (raw)
In-Reply-To: <20240725170519.43401-1-mark@mentovai.com>

On Thu, Jul 25, 2024 at 01:05:19PM -0400, Mark Mentovai wrote:
> The PHY built in to the Realtek RTL8366S switch controller was
> previously supported by genphy_driver. This PHY does not implement MMD
> operations. Since 9b01c885be36 (2023-02-13, in 6.3), MMD register reads
> have been made during phy_probe to determine EEE support. For
> genphy_driver, these reads are transformed into 802.3 annex 22D clause
> 45-over-clause 22 mmd_phy_indirect operations that perform MII register
> writes to MII_MMD_CTRL and MII_MMD_DATA. This overwrites those two MII
> registers, which on this PHY are reserved and have another function,
> rendering the PHY unusable while so configured.
> 
> Proper support for this PHY is restored by providing a phy_driver that
> declares MMD operations as unsupported by using the helper functions
> provided for that purpose, while remaining otherwise identical to
> genphy_driver.
> 
> Fixes: 9b01c885be36 ("net: phy: c22: migrate to genphy_c45_write_eee_adv()")
> Fixes: https://github.com/openwrt/openwrt/issues/15981

nit: AFAIK, the line immediately above is not a correct use of the Fixes
     tag. I think Link or Closes would be appropriate instead.

> Link: https://github.com/openwrt/openwrt/issues/15739
> Reported-by: Russell Senior <russell@personaltelco.net>
> Signed-off-by: Mark Mentovai <mark@mentovai.com>

Also, as a fix, this should be targeted at the net tree.

	Subject: [PATCH net] ...

Please see https://docs.kernel.org/process/maintainer-netdev.html

  reply	other threads:[~2024-07-25 20:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-25 17:05 [PATCH] net: phy: realtek: add support for RTL8366S Gigabit PHY Mark Mentovai
2024-07-25 20:01 ` Simon Horman [this message]
2024-07-25 20:47   ` Mark Mentovai

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=20240725200143.GM97837@kernel.org \
    --to=horms@kernel.org \
    --cc=jonas.gorski@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lorand.horvath82@gmail.com \
    --cc=mark@mentovai.com \
    --cc=namiltd@yahoo.com \
    --cc=netdev@vger.kernel.org \
    --cc=o.rempel@pengutronix.de \
    --cc=russell@personaltelco.net \
    --cc=yangshiji66@outlook.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.