🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #25855

Re: [PATCH net-next 3/3] net: usb: ax88179: Enable PTP

#25855
From: Vadim Fedorenko
Date: Wed, 02 Dec 2026 15:12
35 lines
9795 bytes
On 29/11/2026 17:24, Birger Koblitz wrote:
> Thanks Andrew for reviewing this!
> 
> On 29/11/2026 4:48 pm, Andrew Lunn wrote:
>>> +static bool ptp_enable;
>>> +module_param(ptp_enable, bool, 0);
>>> +MODULE_PARM_DESC(ptp_enable, "Enable PTP hardware timestamping");
>>> +
>>
>> Module parameters are not liked. Is this needed? Why not always enable
>> it?
> I was not aware of that. I will enable PTP by default. That it disables 
> NETIF_F_SG and NETIF_F_TSO is probably a small price for users of the 
> AX88179A for the extra PTP functionality, and on the AX88279 no impact 
> on the rest of the features whatsoever. PTP also does not cost any 
> resources when not in use.

Is it possible to dynamically disable NETIF_F_SG and NETIF_F_TSO when HW
timestamps are requested?

> 
>>
>>> @@ -182,6 +190,7 @@ static int ax88179a_suspend(struct usb_interface 
>>> *intf, pm_message_t message)
>>>       }
>>>       ax88179_set_pm_mode(dev, false);
>>> +
>>>       return 0;
>>
>> Stray white space change.
> Oops, will fix.
> 
> Birger
> 
Technical Details
Message-ID: <fb25c3d9-a352-4afa-ac21-415554a6bffe@linux.dev>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375889-linux-kernel-netdev=dewy.ru
References: <20261129-ptp-v1-0-8148c402beaf@birger-koblitz.de> <20261129-ptp-v1-3-8148c402beaf@birger-koblitz.de> <b0be6f63-f8c1-4d6f-99a1-bf709e70dfd1@lunn.ch> <74970c25-597f-4a33-871e-f46db5606acb@birger-koblitz.de>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375889-linux-kernel-netdev=dewy.ru
From: vadim.fedorenko@linux.dev (Vadim Fedorenko)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next 3/3] net: usb: ax88179: Enable PTP
Date: Wed, 2 Dec 2026 15:12:10 +0000
Organization: Usenet Network
Message-ID: <fb25c3d9-a352-4afa-ac21-415554a6bffe@linux.dev>
References: <20261129-ptp-v1-0-8148c402beaf@birger-koblitz.de>
 <20261129-ptp-v1-3-8148c402beaf@birger-koblitz.de>
 <b0be6f63-f8c1-4d6f-99a1-bf709e70dfd1@lunn.ch>
 <74970c25-597f-4a33-871e-f46db5606acb@birger-koblitz.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1997207"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:iv2Y1h8GKIuxDvGI4kblKA85EJ8= sha256:YqwKFc15kearbl1yrODauqljcuVVZVhSqPzdrQPioK0=
	sha1:oWM00QM1yS1GWQ3wT0c/tuq0KsU= sha256:og0x86n7tmZ2CVSkowCOiG9QID/RcK+p3DbuvxFrgI0=
Content-Language: en-US
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 D709F117685; Wed,  2 Dec 2026 18:12:36 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.95
X-Spam-Status: No, score=-1.95 tagged_above=-9999 required=6.31
	tests=[DCC_CHECK=1.1, 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 (1024-bit key)
	header.d=linux.dev
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 1irqbThl-OTW;
	Wed,  2 Dec 2026 18:12:33 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-375889-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linux.dev
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id BBB3211767C; Wed,  2 Dec 2026 18:12:24 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 934472B374; Wed,  2 Dec 2026 15:12:22 +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=1796224339;
	b=J27fhXRroVCag9gnDVtZ/QgFKkWCJ/5xx6RhCXaDFMRKkmLhR/qgTGf7CnkJqLk6L/ig
	 rNXm66T4YucivKK4YzO/LtZ+hlLey49+OXIET4nXsskTdOxaecSBvkMmovQjFIJMz3K1g
	 h4EBmYueOD7nAbmJgKllG9uSSGq7NGV88Q7BJeapfo4UJxYJkuZPVkD1ydgVAC/gnQnSh
	 vyFoC4Sp8wiY98uEmbmtbPpMbekmdGMOcCnSI3OrqOhlNcrWi/g0xvfrUb88clxcDPG3B
	 NkjtMG/IRp8iIzXJ+UdecuS/xmLGL1UcDccxjSnSYeG2FjtkYs30qNei5egf0/6+3Vg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796224339;
	h=X-Original-To:Received:DMARC-Filter:X-Envelope-To:DKIM-Signature:
	 X-Envelope-To:Received:X-Mizu-Trace-ID:X-Migadu-Flow:Message-ID:Date:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:User-Agent:
	 Subject:To:Cc:References:Content-Language:From:In-Reply-To:
	 Content-Type:Content-Transfer-Encoding;
	bh=86UntKuCnPZ84FC9uQgjKdkmSzfvrtmo0xXtw2XfUlA=;
	b=RJ0cms4KoCaGYP/aYqxcmtdk1ly0geXnN/9J/jEf5k+Aq1WT8beNgYv3DrKC0IPQX5CS
	 vDTGQoh+XVizvMBXV1PtxEX5lnDB6aKD6+oZX1frwsOdmwiGiB9Z3vnTDXWVQ0fkpRnJY
	 ml3jIaHYjlzlTbfY3EQ47lr01RKj3nfOH0FNiYOF+4bOX9I1uuIY8xdpgCMLmwwTGylSo
	 nSh1dbyWB+F5oWy3801Ir9NOYSA9PfyCKNqzh/LzwaUXfdcf0GaDKP8Pd1ckUnND9g/+j
	 yECLzxqBxLubE2mjXf3Zd53lwLEsbPBfuFQsXnNEUCgbdzP0LULAqP6qL/vXsVmaq8g==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=XyssoNCg;
	dmarc=pass header.from=linux.dev;
	spf=pass smtp.mailfrom=linux.dev;
	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 5C6BE606A322;
	Wed,  2 Dec 2026 15:12:19 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=XyssoNCg
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.218.175.10
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796224338;
	b=mElhkpFUMyTDzl2LRYhsMTCIsOw5PFk/VI/2Kzb9MNm8tVwqovaWeSZ/B+Ujz6HE5Oe8
	 sZQjX/Z+ZDDXixIOhqmN8LbFnvxFADyeZVYDhJrCqKTqQsAUkE/WRBfoMONT38xD6pmqP
	 K1WtDKRL4rGcPkwVtjEafLQzbBYQUzJvDm2tWW1uW69CMc95vZtOUwIkyQ1RETTBUVRAw
	 QX3l4DJTTyQ+GtfsBPwfnXG1LkjgQAFeMXL8BiweNu0gCO5g01uJ4Ll3FFjeY89zcrLLh
	 DBrY7lKxcU1yxDzG965MicNhL6en4D9ujyMzfek8KutAOOH9OrUKyg8wXUelW9JQhyw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796224338;
	h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received:
	 X-Mizu-Trace-ID:X-Migadu-Flow:Message-ID:Date:MIME-Version:User-Agent:
	 Subject:To:Cc:References:Content-Language:From:In-Reply-To:
	 Content-Type:Content-Transfer-Encoding;
	bh=86UntKuCnPZ84FC9uQgjKdkmSzfvrtmo0xXtw2XfUlA=;
	b=P5hLwFZbx96ROyVIvEHtW1OsoLbCe2DYf0ogEyNe0kBE8ANkLgNCzO0Zf+8s57vDX25m
	 Qyks9ZtxU3+Cxs7myajKjKT50EX+PW0qE/p4DxyJv5GEkH33hK2mXXIiKc6B59pLZtJGc
	 FmvBhvOewWOGHGcG1Z58x56XdWKEdDaNQZxmxlmWFYnDI0USfPHdgLYipWjE5PKVtOXMS
	 xbgFnKJ5qkFNLCWZ8jKMvFRAvSNUu5jkcQ/myiZSskEHy0QGnYwshsxS3ibskjWE3HqHa
	 HZN7/RuPZDP+PKiuwpOzpRagUhcSlhBA/xPTqARDUcrdyQ+Lshfle6emG8JnRR27lWw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=linux.dev;
	spf=pass smtp.mailfrom=linux.dev;
	dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=XyssoNCg;
	arc=none smtp.remote-ip=91.218.175.10
X-Received: from mta0.migadu.com (out-10.mta0.migadu.com [91.218.175.10])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7C2D3606A323
	for <netdev@vger.kernel.org>; Wed,  2 Dec 2026 15:12:16 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7C2D3606A323
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev
X-Envelope-To: netdev@vger.kernel.org
X-DKIM-Signature: a=rsa-sha256; bh=3gTu3QWd7WX9BowLAgfQkkM2oaR1Ctti9NsNG6rr1qY=;
 c=simple/simple; d=linux.dev;
 h=from:to:subject:date:message-id:mime-version:content-type; s=key1;
 t=1796224335; v=1; x=1796829135;
 b=XyssoNCgvVoP5nH/0+JZgnAqZj1pvB2J+vfnR3ezll1jDPiuPlvrQolYICjNQOJvkL+VUSgO
 TgzSeui8QbY+jRjaJKALSFzhTLxwr6tI/jjaPie6gsXMQv3/iGyAhxB7BJNM90U/Vc6u1JIIzIo
 lPphHgD6tFe4ldJr5nnNZhmc=
X-Envelope-To: netdev@vger.kernel.org
X-Received: by smtp.migadu.com with ESMTPS id 26ae7c5928ea3ff1;
	Wed, 02 Dec 2026 15:12:15 +0000
X-Mizu-Trace-ID: 26ae7c5928ea3ff1
X-Migadu-Flow: FLOW_OUT
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-User-Agent: Mozilla Thunderbird
X-Cc: Andrew Lunn <andrew+netdev@lunn.ch>, "David S. Miller"
 <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>,
 Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
 Richard Cochran <richardcochran@gmail.com>,
 Russell King <linux@armlinux.org.uk>, netdev@vger.kernel.org,
 linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org
X-In-Reply-To: <74970c25-597f-4a33-871e-f46db5606acb@birger-koblitz.de>