Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp6958564rwp; Tue, 18 Jul 2023 08:06:50 -0700 (PDT) X-Google-Smtp-Source: APBJJlEc3k+D4WdoI/bnTqy1010k2iH0640WNG53U6k216eY7OWisCOTEFt645DCzvcTFHtoqc0y X-Received: by 2002:a17:907:75f3:b0:994:2fa9:7446 with SMTP id jz19-20020a17090775f300b009942fa97446mr134076ejc.46.1689692809840; Tue, 18 Jul 2023 08:06:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689692809; cv=none; d=google.com; s=arc-20160816; b=BHu0AG1Jsl2p+HoDFqEUcb+Z35xn6wjqfK+5qKj7lx/5reNmnVpXmpkTiQL1mx27fH dpPSlMb7gYcI3h+1JoPSwXL4A8VZSqqoIi5ciRwuRThKapBcyW77pI36reBygEcYjYWq VnEdpQomuuBKVIXF2yecwLExdA0RKLWtgdHA3cTeMNeXj5PZrJBVOl/75hm0CAQ28zbE 3zt1myc5Pqnaul75KEoGffF46NDKpl/LwgQeS56Q2Bcb2TyVxYTOL2QqHTlGQcMm6xC8 a/ZDyKvHnIY4nNSesPqXZh2bXNoouGokV1rvymu1L1m1MTwqXhcoKlHFMKFSpbyb4PXt /mbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=QDGVvqTwYt8b/dIF34Msb2Qg2sBePCy/DbtoiGhv/Tw=; fh=FQpGiJqXcDAKdIeOpDvf0PXe5BQsBpqV61wNNvIszzM=; b=SUWNlwd10J0Eja6BE4Al64GZIK1pNlij/dTxMje2GHhVv2x7PXhhZoux2wH2sVGyik M0jLi+WShR1Xtj2Uo1W0vNquOxme1T6VV50L+ZsmHXxkyfFVcpezABTsDy4yPKFIj2Mk J0Y3BZ9ajGX4Bze+DRYCw4duCT5fR954tv1K9lYRt9VAViKuHql1Y7mnc5bXqFV2OkAL u/5iF+ztBMvbgiqwi3F9Iwq7yxtKPL2WRA9NBO4mrURY/hkZyQuFKjdtOL7PKxguWKpG VXoVk8ncAwti2jfmCBSWuyxA9ecVlCsXXzdpDVdycrEGHI/bb2nBUjuk4mD1RxlkH8Y8 rPHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=0u7cH2Pd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a15-20020a1709062b0f00b0099367afd642si1209505ejg.66.2023.07.18.08.06.24; Tue, 18 Jul 2023 08:06:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=0u7cH2Pd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230480AbjGROih (ORCPT + 99 others); Tue, 18 Jul 2023 10:38:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230005AbjGROif (ORCPT ); Tue, 18 Jul 2023 10:38:35 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E89D11719; Tue, 18 Jul 2023 07:38:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=QDGVvqTwYt8b/dIF34Msb2Qg2sBePCy/DbtoiGhv/Tw=; b=0u7cH2PdolnPrx5b7qW29u6eRC r+8lDPLaakp9SdLiN0/jRQ6robsjWftZ37DJHaQp3/mR7AAyQi3YdOvkrVKgKEE9ytZ0l2Afe/ohu YvXAck7vUXxypO6TB1TLOhjvO5AnpnpKYKN2d/KpbwYQkqbhK7wTUsQQ+HU79og3OEEnb2O2u4u70 LCc+rWjVK2+LWVUz4yalNM3Krrs4OorDHZJ/yTC6neomWYwJGZK2v3I0xbrOM3gMP/TsGTc4OKm3+ 6mkrwzYYm3VW7azPXv5ZS3ZOf+6YDffNgRvcFnVeuvR7sn24IAkJin/SjpVbfG3S8gf+DWbY2kp5j aM7mcFXg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:47782) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qLlqQ-0005pT-17; Tue, 18 Jul 2023 15:38:30 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1qLlqN-000378-Oi; Tue, 18 Jul 2023 15:38:27 +0100 Date: Tue, 18 Jul 2023 15:38:27 +0100 From: "Russell King (Oracle)" To: Vladimir Oltean Cc: netdev@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andrew Lunn , Florian Fainelli , Maxim Georgiev , Horatiu Vultur , =?iso-8859-1?Q?K=F6ry?= Maincent , Maxime Chevallier , Richard Cochran , Vadim Fedorenko , Gerhard Engleder , Hangbin Liu , Heiner Kallweit , Jacob Keller , Jay Vosburgh , Andy Gospodarek , Wei Fang , Shenwei Wang , Clark Wang , NXP Linux Team , UNGLinuxDriver@microchip.com, Lars Povlsen , Steen Hegelund , Daniel Machon , Simon Horman , Casper Andersson , Sergey Organov , Michal Kubecek , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v8 net-next 12/12] net: remove phy_has_hwtstamp() -> phy_mii_ioctl() decision from converted drivers Message-ID: References: <20230717152709.574773-1-vladimir.oltean@nxp.com> <20230717152709.574773-13-vladimir.oltean@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230717152709.574773-13-vladimir.oltean@nxp.com> Sender: Russell King (Oracle) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 17, 2023 at 06:27:09PM +0300, Vladimir Oltean wrote: > +static int dev_set_hwtstamp_phylib(struct net_device *dev, > + struct kernel_hwtstamp_config *cfg, > + struct netlink_ext_ack *extack) > +{ > + const struct net_device_ops *ops = dev->netdev_ops; > + bool phy_ts = phy_has_hwtstamp(dev->phydev); > + struct kernel_hwtstamp_config old_cfg = {}; > + bool changed = false; > + int err; > + > + cfg->source = phy_ts ? HWTSTAMP_SOURCE_PHYLIB : HWTSTAMP_SOURCE_NETDEV; > + > + if (!phy_ts || (dev->priv_flags & IFF_SEE_ALL_HWTSTAMP_REQUESTS)) { I suppose the idea here is that for something like mvpp2, which when we have PTP support for Marvell PHYs in general will want to prefer to use the MAC-based PTP rather than PHY-based, that driver needs to set IFF_SEE_ALL_HWTSTAMP_REQUESTS so that the ndo timestamp ops always get called? I didn't see this discussed in the commit message for this patch. Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!