From: Andrew Lunn <andrew@lunn.ch>
To: Selvamani Rajagopal <Selvamani.Rajagopal@onsemi.com>
Cc: Piergiorgio Beruto <Pier.Beruto@onsemi.com>,
"andrew+netdev@lunn.ch" <andrew+netdev@lunn.ch>,
"davem@davemloft.net" <davem@davemloft.net>,
"edumazet@google.com" <edumazet@google.com>,
"kuba@kernel.org" <kuba@kernel.org>,
"pabeni@redhat.com" <pabeni@redhat.com>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH net-next 4/5] onsemi: ncn260xx: Add driver support for NCN26010 and TS2500 MAC-PHY
Date: Fri, 1 May 2026 22:22:20 +0200 [thread overview]
Message-ID: <12245592-fb85-46d9-9f26-5ed37efacbfc@lunn.ch> (raw)
In-Reply-To: <CY8PR02MB92494A5A16B7AF4EA3A69F2483322@CY8PR02MB9249.namprd02.prod.outlook.com>
> +static int mmd2mms(int mmd)
> +{
> + int ret = -EOPNOTSUPP;
> +
> + switch (mmd) {
> + case MDIO_MMD_PCS:
> + ret = OA_TC6_PHY_C45_PCS_MMS2;
> + break;
> + case MDIO_MMD_PMAPMD:
> + ret = OA_TC6_PHY_C45_PMA_PMD_MMS3;
> + break;
> + case MDIO_MMD_VEND2:
> + ret = OA_TC6_PHY_C45_VS_PLCA_MMS4;
> + break;
> + case MDIO_MMD_VEND1:
> + ret = ONMPH_OA_TC6_VEND1_MMS12;
> + break;
> + default:
> + break;
> + }
> + return ret;
> +}
So you seem to be compliant with the standard. I've not seen anything
use MDIO_MMD_POWER_UNIT so not having that should not be an
issue. MDIO_MMD_AN is used by a number of PHYs, but i assume yours
does not.
802.3 C45 says that if a register does not exist, it should read
0. What would happen if a read was made to
OA_TC6_PHY_C45_AUTO_NEG_MMS5, rather than returning EOPNOTSUPP?
Table 6 says nothing about MMD 30, which you map to 12. 10-15 are
defined as vendor specific, so that is O.K.
But can we simply this. Add something like
void oa_tc6_set_vend1_mms(struct oa_tc6 *tc6, int mms)
{
tc6->vend1_mms = mms;
}
and make oa_tc6_get_phy_c45_mms() look at its value?
Andrew
next prev parent reply other threads:[~2026-05-01 20:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-01 19:15 [PATCH net-next 4/5] onsemi: ncn260xx: Add driver support for NCN26010 and TS2500 MAC-PHY Selvamani Rajagopal
2026-05-01 20:22 ` Andrew Lunn [this message]
2026-05-04 19:03 ` Selvamani Rajagopal
2026-05-04 19:15 ` Andrew Lunn
2026-05-04 19:17 ` Selvamani Rajagopal
2026-05-04 19:21 ` Selvamani Rajagopal
2026-05-04 19:23 ` Andrew Lunn
2026-05-04 20:51 ` Selvamani Rajagopal
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=12245592-fb85-46d9-9f26-5ed37efacbfc@lunn.ch \
--to=andrew@lunn.ch \
--cc=Pier.Beruto@onsemi.com \
--cc=Selvamani.Rajagopal@onsemi.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--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