Article View: linux.kernel.netdev
Article #25168Re: [PATCH net-next v5 1/4] net: ethtool: tsconfig: allow selecting a provider
From: Nicolai Buchwitz
Date: Tue, 01 Dec 2026 10:44
Date: Tue, 01 Dec 2026 10:44
29 lines
9291 bytes
9291 bytes
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
Technical Details
Message-ID:
<40b1f3822695d721af893ad19ab5dbbc@tipi-net.de>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374946-linux-kernel-netdev=dewy.ruReferences:
<20261201094454.1150-1-javen_xu@realsil.com.cn> <20261201094454.1150-2-javen_xu@realsil.com.cn> <368fde0f-d512-46ea-b077-f613911c624b@bootlin.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374946-linux-kernel-netdev=dewy.ru From: nb@tipi-net.de (Nicolai Buchwitz) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v5 1/4] net: ethtool: tsconfig: allow selecting a provider Date: Tue, 01 Dec 2026 11:44:11 +0100 Organization: Usenet Network Message-ID: <40b1f3822695d721af893ad19ab5dbbc@tipi-net.de> References: <20261201094454.1150-1-javen_xu@realsil.com.cn> <20261201094454.1150-2-javen_xu@realsil.com.cn> <368fde0f-d512-46ea-b077-f613911c624b@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="1688655"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:n5t4pHJhTGt2SkqQJhiPweUs5QE= sha256:sUSpsD8Vk2Eb5vC54PjoQh3wmt0kj86hPgCpTL2fNN8= sha1:yGwGvRfVc4RKl+Uz6RzSEEYRyGc= sha256:4khAin02jVuU1hbg2Bjg9LYU+xEDyXmeVxzg0Rhr9dY= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id BA4C11172E0; Tue, 1 Dec 2026 13:44:34 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.05 X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=tipi-net.de X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7KVIJk-M3C3F; Tue, 1 Dec 2026 13:44:30 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-374946-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=tipi-net.de X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 1C5011172C7; Tue, 1 Dec 2026 13:44:21 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 1DF9525583; Tue, 1 Dec 2026 10:44:19 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796121857; b=loIvBg3NxBN0ZZgtdDtoMJ9dPW+T+yKxuuspluUJ03AhRA84yzaW7zQcxwSt5bb2ko5p AI4LFGQ/A9uPfgFBflew+rNTR61Xle1Cr2zLqGdQ8jH8m0+oyUziB8CBjSUO+VKAPHwfP SLCeJ81jjMLODViYVbkJcwB44GPyLNZaNlSqZdad+ZocpknhrC3tIRW51+yHQKp5Dnf90 P0jagn02BXXTQtihKR8+M+rX4y0XBOvoehDBExkm/dD3h4tEIf9r09Mte2QIYO8eKWh04 7LTTHrVOEfOTrmKFOWal9Run2BcYwgb9nsTMtbsgUphwZjW62iwuLoARfMlDyOmcS7A== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796121857; h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence: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=P1EtURPzHdTAkExwjFGwPuxmd7cwANEwoVSaOdKCzvIQA99e/4xBmrA4+yAMsaodAPpc 76YyT5t2tAd+SWkIshHa4aiJ/UdV5ZUZ5VYTyCL4uh8GEqK7t6GIy7hHnee3klqwUjIy/ 1UO69ZaImt1DXup0Ikjegaivkc+2nDbU5bsmzivblzFUre5alytvV+LFGcUu9xFKv7usM 6+WD8jJP0WnfN3rh9Ij25A5LW1opULn8FzHgOsCAWxw0snLpWNEdfuGelOwi5LPpJBL7V usWyxZDBvnBOfyZd3vLW1vbHKY3jWYIVMVY6iPmn37w548nTYHjJhBX5jm8PD9yKjKQ== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=YrGEGh5X; dmarc=none header.from=tipi-net.de; spf=pass smtp.mailfrom=tipi-net.de; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 84F25606A680; Tue, 1 Dec 2026 10:44:17 +0000 (UTC) X-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 X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=194.13.80.246 X-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== X-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== X-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 X-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) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 37469606A327 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tipi-net.de X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tipi-net.de X-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) X-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: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-Cc: javen <javen_xu@realsil.com.cn>, 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 X-In-Reply-To: <368fde0f-d512-46ea-b077-f613911c624b@bootlin.com> X-Sender: nb@tipi-net.de X-Last-TLS-Session-Version: TLSv1.3