From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=194.13.80.246 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796214019; b=vxIZNNCNsSQ3Yl2UgfQl+AtFMZMNVFOn00db/1sRKHE2FHrnriOu4q02Xf0VsuDnLwqK Y2MhwuaypunbpIW0cbNy5IWR9uxFCToJpnBl9CIkvqFYtQGCxVJZLVR+NjeC0QjLHoJPE S3Ki0Bt0SUyvHMnS7x1E43Ri2WC7gnElu2GRQAdReF/XHPcsO+hBzsksRr4tehNs6il+D qOFfCsCrBRwwyNEaxItDvJNH7oGUocsvH3PXmlDk/ASC/GqhQ8HyuvO31jXRGoLNAFaQ4 Gp2ldt1SgJd99j0G6Ke9zRPN+OhdHFYYIOozp8ETE6Pxw1nnM+k+DEH+zh+ojuzO+Jw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796214019; h=DMARC-Filter:Received:DKIM-Signature:MIME-Version:Date:From:To:Cc: Subject:In-Reply-To:References:Message-ID:X-Sender:Content-Type: Content-Transfer-Encoding:X-Last-TLS-Session-Version; bh=BVotzuS5szB+T+nvGN/Ln60ob+hSx1xEgvgEJNPFNyw=; b=i6GPBAe3IBXWSqMX0Le30Ov/VFpl5SoLY38hlM+tRMT7Wb9o7Ni9cynPrSxVWP1cdn9Q I9+bWpNBrk9aMElbr91JBSh9TCgXwTxdnqk4MOzPLvQ0mlGNyHm1TKTTDhl2515BwumZl 1hr4EwfL4zKZsz5+PJnn+o6aAVbOYrMDBEeuf3NaOCWGjug2jKjPty7EcfP4hpnsxo/ME G8UpqiauD6MZNL8c8LbZf5Ci2Big0j5DN4UD8m5mBr1Hz6A4Y+8+cJQ6myJYz2LC2R91/ asYTjYuQPl3ZjbKqJ8h4jIMnv8TdIQ7TDg9aPdNP8/NYxBgGSZO2Pd3T4gnM8Aj5Plg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=tipi-net.de; spf=pass smtp.mailfrom=tipi-net.de; dkim=pass header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=fV90SArY; arc=none smtp.remote-ip=194.13.80.246 Received: from mail.tipi-net.de (mail.tipi-net.de [194.13.80.246]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3902B606A323; Wed, 2 Dec 2026 12:20:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3902B606A323 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tipi-net.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tipi-net.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=fV90SArY Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 65D9DA166D; Wed, 02 Dec 2026 13:20:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tipi-net.de; s=dkim; t=1796214015; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=BVotzuS5szB+T+nvGN/Ln60ob+hSx1xEgvgEJNPFNyw=; b=fV90SArYv6iZqFMokJJxSNKQXe1tRFtIXsBcre9n6SnC5qxCLtXHCaVWRYePr2IEAfjVL9 GA1vSgKcV26bk+2RN+6bKwCPHmuU8Ry9zxm3eQ6xw7LLNkVOLrKiVhfsA1/LWSVb6G4MZN DX+j8CuGUaAXdAbGTM/eHYXEh9UDyBXV8woQtnShUCmxu3FjESugqKvI391lnb/BpXb71M wK1fHkHzsFfMdP2ElweHyL4P82scFOvC9iedv0KDl1Euc5v2zi1uZfPibaeQhMBltQZRcM v11nZMiLg5qV0Y+Zn3SCJruxyVLsZY4eltgn/2SpF6OwS6Go5+pw/456AWkHuA== X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Date: Wed, 02 Dec 2026 13:20:11 +0100 From: Nicolai Buchwitz To: Javen 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 In-Reply-To: References: <20261201094454.1150-1-javen_xu@realsil.com.cn> <20261201094454.1150-4-javen_xu@realsil.com.cn> Message-ID: X-Sender: nb@tipi-net.de Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Last-TLS-Session-Version: TLSv1.3 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