mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: Robert Marko <robimarko@gmail.com>
Cc: andersson@kernel.org, konrad.dybcio@linaro.org,
	hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net,
	edumazet@google.com, kuba@kernel.org, pabeni@redhat.com,
	ansuelsmth@gmail.com, linux-arm-msm@vger.kernel.org,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next] net: phy: qca807x: move interface mode check to .config_init_once
Date: Mon, 12 Feb 2024 15:51:58 +0100	[thread overview]
Message-ID: <c97d10fa-39c5-4e5e-93ce-1610635cb4d4@lunn.ch> (raw)
In-Reply-To: <20240212115043.1725918-1-robimarko@gmail.com>

On Mon, Feb 12, 2024 at 12:49:34PM +0100, Robert Marko wrote:
> Currently, we are checking whether the PHY package mode matches the
> individual PHY interface modes at PHY package probe time, but at that time
> we only know the PHY package mode and not the individual PHY interface
> modes as of_get_phy_mode() that populates it will only get called once the
> netdev to which PHY-s are attached to is being probed and thus this check
> will always fail and return -EINVAL.
> 
> So, lets move this check to .config_init_once as at that point individual
> PHY interface modes should be populated.

Just for my own understanding, not directly about this patch...

priv->package_mode is about PSGMII vs QSGMII for one of the SERDES
interfaces? We expect the individual PHYs sharing that interface to
also indicate PSGMII or QSGMII?

But what about the other SERDES, which can be connected to an SFP
cage. You would normally set that to SGMII, or 1000BaseX. When an SFP
module is inserted, the correct interface mode is then determined from
the contests of the EEPROM and the PCS needs to be reconfigured. So
i'm just wondering how this check works in this situation?

    Andrew

  reply	other threads:[~2024-02-12 14:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-12 11:49 Robert Marko
2024-02-12 14:51 ` Andrew Lunn [this message]
2024-02-12 18:09   ` Robert Marko
2024-02-12 19:48     ` Andrew Lunn
2024-02-13 10:16       ` Robert Marko
2024-02-13 13:02         ` Christian Marangi
2024-02-13 13:27           ` Andrew Lunn
2024-02-14 17:59 ` Andrew Lunn
2024-02-15 10:50 ` patchwork-bot+netdevbpf

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=c97d10fa-39c5-4e5e-93ce-1610635cb4d4@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=andersson@kernel.org \
    --cc=ansuelsmth@gmail.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=hkallweit1@gmail.com \
    --cc=konrad.dybcio@linaro.org \
    --cc=kuba@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=robimarko@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®