From: Caleb James DeLisle <cjd@cjdns.fr>
To: Andrew Lunn <andrew@lunn.ch>
Cc: netdev@vger.kernel.org, daniel@makrotopia.org, dqfext@gmail.com,
SkyLake.Huang@mediatek.com, hkallweit1@gmail.com,
linux@armlinux.org.uk, davem@davemloft.net, edumazet@google.com,
kuba@kernel.org, pabeni@redhat.com, matthias.bgg@gmail.com,
angelogioacchino.delregno@collabora.com,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org,
Matheus Sampaio Queiroga <srherobrine20@gmail.com>
Subject: Re: [PATCH v3 net-next] net: phy: mediatek: support MT7530 PHYs on EN71221 MCM
Date: Tue, 15 Sep 2026 11:55:25 +0200 [thread overview]
Message-ID: <c560a70b-8ccf-415a-ba8f-0c061a9f6b03@cjdns.fr> (raw)
In-Reply-To: <a6e1bb7f-e395-434e-8e9b-992141969d74@lunn.ch>
On 14/09/2026 14:01, Andrew Lunn wrote:
>> + * The EcoNet EN751221 "G" multi-chip module MT7530 requires additional PHY
>> + * configuration.
>> + */
>> +static int en751221_mcm_phy_config_init(struct phy_device *phydev)
>> +{
>> + int ret;
>> +
>> + ret = genphy_soft_reset(phydev);
>> + if (ret)
>> + return ret;
>> +
>> + /* Master/Slave negotiation does not work reliably */
>> + ret = phy_write(phydev, MII_CTRL1000, ADVERTISE_1000FULL |
>> + CTL1000_ENABLE_MASTER | CTL1000_PREFER_MASTER |
>> + CTL1000_AS_MASTER);
> Is it sufficiently broken that we should stop the user changing it?
Well I must be going crazy because I tested this a second time and now
it's working without forcing master at all. I guess when I was
previously testing, I must have had some un-resetted state leftover from
trying with EEE enabled. I will re-send without this command because it
seems to work.
Thanks,
Caleb
>
> ethtool -s devname [speed N] [lanes N] [duplex half|full]
> [port tp|aui|bnc|mii] [mdix auto|on|off] [autoneg on|off] [adver‐
> tise N[/M] | advertise mode on|off ...] [phyad N] [xcvr inter‐
> nal|external] [wol N[/M] | wol p|u|m|b|a|g|s|f|d...]
> [sopass xx:yy:zz:aa:bb:cc] [master-slave preferred-master|pre‐
> ferred-slave|forced-master|forced-slave] [msglvl N[/M] | ms‐
> glvl type on|off ...]
>
> You don't appear to have a config_aneg, so genphy_config_aneg() will
> be used, which calls genphy_setup_master_slave.
>
> Andrew
>
prev parent reply other threads:[~2026-09-15 9:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-11 12:06 [PATCH v3 net-next] net: phy: mediatek: support MT7530 PHYs on EN71221 MCM Caleb James DeLisle
2026-09-14 12:01 ` Andrew Lunn
2026-09-15 9:55 ` Caleb James DeLisle [this message]
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=c560a70b-8ccf-415a-ba8f-0c061a9f6b03@cjdns.fr \
--to=cjd@cjdns.fr \
--cc=SkyLake.Huang@mediatek.com \
--cc=andrew@lunn.ch \
--cc=angelogioacchino.delregno@collabora.com \
--cc=daniel@makrotopia.org \
--cc=davem@davemloft.net \
--cc=dqfext@gmail.com \
--cc=edumazet@google.com \
--cc=hkallweit1@gmail.com \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux@armlinux.org.uk \
--cc=matthias.bgg@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=srherobrine20@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