Netdev List
 help / color / mirror / Atom feed
From: Nicolai Buchwitz <nb@tipi-net.de>
To: Javen <javen_xu@realsil.com.cn>
Cc: andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk,
	davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
	pabeni@redhat.com, maxime.chevallier@bootlin.com,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	daniel@makrotopia.org, vladimir.oltean@nxp.com
Subject: Re: [PATCH net-next v5 3/4] net: phy: realtek: add PTP clock support for RTL8127a
Date: Wed, 02 Dec 2026 13:20:11 +0100	[thread overview]
Message-ID: <a1b525c91f1ae90f7c74382a6cff71c7@tipi-net.de> (raw)
In-Reply-To: <d88a3c255e50437a9e5f348519a735bf@realsil.com.cn>

Hi Javen

On 2.12.2026 09:55, Javen wrote:

> [...]

>> What happens when r8169 is runtime suspended? Nothing on this path
>> resumes it.
> 
> I think we could resume the MAC around the PHC callbacks with 
> pm_runtime_resume_and_get(phydev->mdio.bus->parent), or only take a 
> reference with pm_runtime_get_if_active() and return -EBUSY while the 
> MAC is suspended, so the PHC doesn't wake up the NIC (and re-init the 
> PHY) while there is no link.
> Which one do you prefer?

I'd lean towards the second one.

Waking the NIC on every clock read would probably keep it from 
suspending
while phc2sys runs, and without link there isn't much to sync. But I'm 
not
sure, hwmon has the same issue, so maybe Heiner prefers fixing it on the
r8169 side ?

> [...]

Regards
Nicolai

  reply	other threads:[~2026-12-02 12:20 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01  9:44 [PATCH net-next v5 0/4] net: phy: realtek: add PTP support for RTL8127a javen
2026-12-01  9:44 ` [PATCH net-next v5 1/4] net: ethtool: tsconfig: allow selecting a provider javen
2026-12-01 10:06   ` Nicolai Buchwitz
2026-12-01 10:34   ` Maxime Chevallier
2026-12-01 10:44     ` Nicolai Buchwitz
2026-12-01  9:44 ` [PATCH net-next v5 2/4] r8169: hold MDIO bus lock while loading firmware javen
2026-12-01 10:18   ` Nicolai Buchwitz
2026-12-01  9:44 ` [PATCH net-next v5 3/4] net: phy: realtek: add PTP clock support for RTL8127a javen
2026-12-01 10:23   ` Nicolai Buchwitz
2026-12-02  8:55     ` Javen
2026-12-02 12:20       ` Nicolai Buchwitz [this message]
2026-12-01  9:44 ` [PATCH net-next v5 4/4] net: phy: realtek: add hardware timestamping " javen
2026-12-01 10:36   ` Nicolai Buchwitz
2026-12-02  8:30     ` Javen

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=a1b525c91f1ae90f7c74382a6cff71c7@tipi-net.de \
    --to=nb@tipi-net.de \
    --cc=andrew@lunn.ch \
    --cc=daniel@makrotopia.org \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=hkallweit1@gmail.com \
    --cc=javen_xu@realsil.com.cn \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=maxime.chevallier@bootlin.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --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