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=1796121856; b=Lh+ZtCUxNaosNM87jbiqyscvFwfhLJ51JUdiEmhNWGYLBNShkVIv8fWAXsF1mn0Fc4Qv VP5db5WsFsowI++i0jaltCqEJ2o++Hp5jkKCD5TcROPYt+x6xYc2hWqzUfgI5LHJYKl3y yIWE7HruiAwcwW14PpRS963q6XnQ0eY9dPOXyxbGUTusd8J0jWGDWTXuLCdrfgWCaZuvl qWsK779UJfhRDMEI/5q3N9p9wGLMhkQNPRhQgtFYIfw3gt5QI3VFzvZq+ovp10BTX9JPA hHm9+SLERfaskKQrbZUnF8xOScFMHkh+hY8pRq5ev/kKpXFZLID5NLOODg2yqtgs0Og== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796121856; 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=ISSyWDBqxD7y1Rye9281/QJiW43xPmLJuk4+JmeKCBI=; b=VM0lE8wJxUgy/h39dmMbPzaN+2aXaVMATSF7pnZx9TZziX9oq7+aYxhai8ukvRXS0Cj1 nDkT7/INtuJDXqamemy+IbHoMgkwwLVNxZWcF80MimdNldlIObFkrYlk2mmmBQV7Rb7kU 7dOMqNCqOsTmBgk4bq0FfG8LM5gcuGHrOmnqOb1V7L2uDwUe1Rzx383o1KNLvZ9cnz2Gl a+DRC0Pfp8WVp3+WdJZXpd5d5c9VBHFO/4Z7Zdjfyl477XfiNO+h1MQVzfCP4NS/EBvfH g0AEi5CIRgcQIDarFzmwGwZ5kEpCVBj9Np+vCSZbMA3iD8mirTc1bvncoN2PPGlgE+Q== 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=YrGEGh5X; 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)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 37469606A327; Tue, 1 Dec 2026 10:44:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 37469606A327 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=YrGEGh5X Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 05472A157F; Tue, 01 Dec 2026 11:44:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tipi-net.de; s=dkim; t=1796121853; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=ISSyWDBqxD7y1Rye9281/QJiW43xPmLJuk4+JmeKCBI=; b=YrGEGh5XnkjmI3ZAo1Y/O9SyA+OJ2umPC9KWkWIASOCFmFP2E+JY0T1auuVURjoFhgBBNf J0AwTFebyqGS0AaW20Q6XY3Sr8F0ir2tGKTAuV99KAoqcDhYoV4TDuGJAo00SjNLIU9om8 Pj41uXMa+HKsU4+5eIw7M9o/cm/CCXC1RZedeRmHVRL7dnXLkE/4HGYyqQrT0nkSgKeMU7 uxUc4e7swG6WU8JwAPlXpc8KeqZ14zAz+HwY7fCRwCfZpn+Pvel+uv7UIBjfhw9kr3OC3y ls4M32/8JgejaPLGCS6X3eV3BoZskx606qwWWrgZI0ny/CkkBxP8vNmF+WyOFw== X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Date: Tue, 01 Dec 2026 11:44:11 +0100 From: Nicolai Buchwitz To: Maxime Chevallier Cc: javen , andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, daniel@makrotopia.org, vladimir.oltean@nxp.com Subject: Re: [PATCH net-next v5 1/4] net: ethtool: tsconfig: allow selecting a provider In-Reply-To: <368fde0f-d512-46ea-b077-f613911c624b@bootlin.com> References: <20261201094454.1150-1-javen_xu@realsil.com.cn> <20261201094454.1150-2-javen_xu@realsil.com.cn> <368fde0f-d512-46ea-b077-f613911c624b@bootlin.com> Message-ID: <40b1f3822695d721af893ad19ab5dbbc@tipi-net.de> 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 Maxime On 1.12.2026 11:34, Maxime Chevallier wrote: > [...] >> - if (!dev->netdev_ops->ndo_hwtstamp_set && >> - !phy_is_default_hwtstamp(dev->phydev) && >> - !netdev_ops_lock_dereference(dev->hwprov, dev)) >> + has_hwts = dev->netdev_ops->ndo_hwtstamp_set || >> + phy_is_default_hwtstamp(dev->phydev) || > > Isn't "phy_has_hwtstsamp() enough here ? We just need to check if > there's some > timestamper available, the PHY's "default_timestamp" field shouldn't > matter, no ? has_hwts also decides below whether the current source gets disabled first. With phy_has_hwtstamp() that disable would go to the MAC path and fail, as r8169 has no ndo_hwtstamp_set? It means "something is active", so maybe hwts_active would be a better name. > [...] Thanks, Nicolai