From: Jie Luo <quic_luoj@quicinc.com>
To: "Russell King (Oracle)" <linux@armlinux.org.uk>
Cc: <davem@davemloft.net>, <edumazet@google.com>, <kuba@kernel.org>,
<pabeni@redhat.com>, <robh@kernel.org>, <krzk+dt@kernel.org>,
<conor+dt@kernel.org>, <andrew@lunn.ch>, <hkallweit1@gmail.com>,
<corbet@lwn.net>, <vladimir.oltean@nxp.com>,
<netdev@vger.kernel.org>, <devicetree@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <linux-doc@vger.kernel.org>
Subject: Re: [PATCH net-next 1/2] net: phy: introduce core support for phy-mode = "10g-qxgmii"
Date: Fri, 14 Jun 2024 19:42:57 +0800 [thread overview]
Message-ID: <7f54113a-e2b4-4b7f-91fb-7e60af9ec2cf@quicinc.com> (raw)
In-Reply-To: <Zmqlvn2gOlxoy5Gm@shell.armlinux.org.uk>
On 6/13/2024 3:54 PM, Russell King (Oracle) wrote:
> On Wed, Jun 12, 2024 at 05:53:16PM +0800, Luo Jie wrote:
>> @@ -1865,7 +1872,8 @@ static int phylink_validate_phy(struct phylink *pl, struct phy_device *phy,
>> if (phy->is_c45 && state->rate_matching == RATE_MATCH_NONE &&
>> state->interface != PHY_INTERFACE_MODE_RXAUI &&
>> state->interface != PHY_INTERFACE_MODE_XAUI &&
>> - state->interface != PHY_INTERFACE_MODE_USXGMII)
>> + state->interface != PHY_INTERFACE_MODE_USXGMII &&
>> + state->interface != PHY_INTERFACE_MODE_10G_QXGMII)
>> state->interface = PHY_INTERFACE_MODE_NA;
>
> It would be better, rather than extending this workaround, instead to
> have the PHY driver set phy->possible_interfaces in its .config_init
> method. phy->possible_interfaces should be the set of interfaces that
> the PHY _will_ use given its configuration for the different media
> speeds. I think that means just PHY_INTERFACE_MODE_10G_QXGMII for
> your configuration.
>
> Thanks.
>
Hi Russell,
Yes, for QCA8084(pure PHY chip), only PHY_INTERFACE_MODE_10G_QXGMII will
be set to the phy->possible_interfaces when it works on the interface
mode PHY_INTERFACE_MODE_10G_QXGMII.
I will push a new patch series to remove PHY_INTERFACE_MODE_10G_QXGMII
from this work-around validation here.
Thanks,
Jie
next prev parent reply other threads:[~2024-06-14 11:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-12 9:53 [PATCH net-next 0/2] Introduce PHY mode 10G-QXGMII Luo Jie
2024-06-12 9:53 ` [PATCH net-next 1/2] net: phy: introduce core support for phy-mode = "10g-qxgmii" Luo Jie
2024-06-13 7:54 ` Russell King (Oracle)
2024-06-14 11:42 ` Jie Luo [this message]
2024-06-12 9:53 ` [PATCH net-next 2/2] dt-bindings: net: ethernet-controller: add 10g-qxgmii mode Luo Jie
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=7f54113a-e2b4-4b7f-91fb-7e60af9ec2cf@quicinc.com \
--to=quic_luoj@quicinc.com \
--cc=andrew@lunn.ch \
--cc=conor+dt@kernel.org \
--cc=corbet@lwn.net \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=hkallweit1@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=robh@kernel.org \
--cc=vladimir.oltean@nxp.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®