From: Jean-Michel Hautbois <jeanmichel.hautbois@yoseli.org>
To: "Russell King (Oracle)" <linux@armlinux.org.uk>
Cc: Andrew Lunn <andrew@lunn.ch>,
Heiner Kallweit <hkallweit1@gmail.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Catalin Popescu <catalin.popescu@leica-geosystems.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] net: phy: dp83826: Add support for straps reading
Date: Mon, 3 Mar 2025 18:35:04 +0100 [thread overview]
Message-ID: <aaf511ad-d7eb-454c-83c0-84f0d14f323d@yoseli.org> (raw)
In-Reply-To: <Z8Xl9blPRVXQiOSm@shell.armlinux.org.uk>
Hi Russel,
On 03/03/2025 18:25, Russell King (Oracle) wrote:
> On Mon, Mar 03, 2025 at 06:05:52PM +0100, Jean-Michel Hautbois wrote:
>> + /* Bit 10: MDIX mode */
>> + if (val & BIT(10))
>> + phydev_dbg(phydev, "MDIX mode enabled\n");
>> +
>> + /* Bit 9: auto-MDIX disable */
>> + if (val & BIT(9))
>> + phydev_dbg(phydev, "Auto-MDIX disabled\n");
>> +
>> + /* Bit 8: RMII */
>> + if (val & BIT(8)) {
>> + phydev_dbg(phydev, "RMII mode enabled\n");
>> + phydev->interface = PHY_INTERFACE_MODE_RMII;
>> + }
>
> Do all users of this PHY driver support having phydev->interface
> changed?
>
I don't know, what is the correct way to know and do it ?
Other phys did something similar (bcm84881_read_status is an example I
took).
>> +
>> + /* Bit 5: Slave mode */
>> + if (val & BIT(5))
>> + phydev_dbg(phydev, "RMII slave mode enabled\n");
>> +
>> + /* Bit 0: autoneg disable */
>> + if (val & BIT(0)) {
>> + phydev_dbg(phydev, "Auto-negotiation disabled\n");
>> + phydev->autoneg = AUTONEG_DISABLE;
>> + phydev->speed = SPEED_100;
>> + phydev->duplex = DUPLEX_FULL;
>> + }
>
> This doesn't force phylib to disallow autoneg.
>
Is it needed to call phy_lookup_setting() or something else ?
Thanks for your feedback,
JM
next prev parent reply other threads:[~2025-03-03 17:35 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-03 17:05 [PATCH 0/2] net: phy: dp83826: Enable strap reading and fix TX data voltage support Jean-Michel Hautbois
2025-03-03 17:05 ` [PATCH 1/2] net: phy: dp83826: Fix " Jean-Michel Hautbois
2025-03-14 9:00 ` Jean-Michel Hautbois
2025-03-03 17:05 ` [PATCH 2/2] net: phy: dp83826: Add support for straps reading Jean-Michel Hautbois
2025-03-03 17:20 ` Andrew Lunn
2025-03-03 17:37 ` Jean-Michel Hautbois
2025-03-03 17:50 ` Andrew Lunn
2025-03-03 17:53 ` Jean-Michel Hautbois
2025-03-04 6:37 ` Jean-Michel Hautbois
2025-03-03 17:25 ` Russell King (Oracle)
2025-03-03 17:35 ` Jean-Michel Hautbois [this message]
2025-03-03 18:08 ` Russell King (Oracle)
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=aaf511ad-d7eb-454c-83c0-84f0d14f323d@yoseli.org \
--to=jeanmichel.hautbois@yoseli.org \
--cc=andrew@lunn.ch \
--cc=catalin.popescu@leica-geosystems.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hkallweit1@gmail.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--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
all inboxes | Powered by JetHome®