Linux ACPI
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: "chunzhi.lin" <linchunzhi0@gmail.com>
Cc: netdev@vger.kernel.org, Frank.Sae@motor-comm.com,
	hkallweit1@gmail.com, linux@armlinux.org.uk, kuba@kernel.org,
	pabeni@redhat.com, edumazet@google.com, davem@davemloft.net,
	linux-acpi@vger.kernel.org, rafael@kernel.org, lenb@kernel.org
Subject: Re: [PATCH 1/2] net: phy: motorcomm: use device properties for firmware tuning
Date: Wed, 6 May 2026 14:18:48 +0200	[thread overview]
Message-ID: <7d209b85-6ea3-4b83-b710-28ce39dfecff@lunn.ch> (raw)
In-Reply-To: <20260506021813.3658669-2-linchunzhi0@gmail.com>

On Wed, May 06, 2026 at 10:18:12AM +0800, chunzhi.lin wrote:
> The Motorcomm PHY driver reads optional firmware properties via
> of_property_read_*() from phydev->mdio.dev.of_node. This works for
> Device Tree based systems, but causes ACPI platforms to ignore the same
> properties when they are supplied through _DSD.
> 
> As a result, ACPI-described Motorcomm PHY devices fall back to default
> settings instead of applying firmware-provided tuning such as
> rx/tx internal delay, drive strength, clock output frequency, and
> optional boolean controls like auto-sleep-disabled,
> keep-pll-enabled, and tx clock inversion.
> 
> Switch these lookups to device_property_read_*() so the driver uses the
> generic firmware node interface and can consume the same property names
> from either Device Tree or ACPI.
> 
> This keeps the existing DT behavior unchanged while allowing ACPI
> platforms to honor PHY configuration from firmware.
> 
> We have completed testing on Sophgo RISC-V architecture server SD3-10.
> This server has a 64-core Thead C920 CPU whose DWMAC is connected to
> Motorcomm's PHY YT8531. This server supports UEFI boot and it would like
> to use the ACPI table.
> 
> Signed-off-by: chunzhi.lin <linchunzhi0@gmail.com>

Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew

  reply	other threads:[~2026-05-06 12:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-06  2:18 [PATCH net-next 0/2] net: phy: motorcomm: add ACPI _DSD property support chunzhi.lin
2026-05-06  2:18 ` [PATCH 1/2] net: phy: motorcomm: use device properties for firmware tuning chunzhi.lin
2026-05-06 12:18   ` Andrew Lunn [this message]
2026-05-06  2:18 ` [PATCH 2/2] docs: acpi: dsd: add Motorcomm yt8xxx PHY properties chunzhi.lin
2026-05-06 12:20   ` Andrew Lunn

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=7d209b85-6ea3-4b83-b710-28ce39dfecff@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=Frank.Sae@motor-comm.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=hkallweit1@gmail.com \
    --cc=kuba@kernel.org \
    --cc=lenb@kernel.org \
    --cc=linchunzhi0@gmail.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=rafael@kernel.org \
    /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