From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E2FC8C0015E for ; Wed, 19 Jul 2023 08:23:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=S14gTT1azyiv6IW2dC87oJm000KsEWUFxwIrkVOAtlU=; b=ZAUdvvxbVe7Gg0 EH70vklMGBnUmP56qIL1M2pxLKnaWhSXhn1CKB124fIFppzjlAqz3js/0A7rUVmHh6WomL49ty+NU m04PDTqpQ9ZJwZIBPpufPnYAMSL7f2qL9k0B/CQXVlfZ7T0rbXvThoKruC1NwWUrVD61Ma9huO0NH p+uIDu0MnJD+4+ZFNGJhZpZVJsyNuLWklsa9D9JJDIDd1Uoo/SNnZwvuO9xEJd1xUR4UOJ293jO+C 00BEuxfQCUVpNld22F9SAC18VKj7B/mXNCId3OKxCOJNb3ZIVYMsT48t/ME9/wG33ninKy2AfnOge DIYLLP8csDzOcjw0z7fw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qM2ST-006JiS-2H; Wed, 19 Jul 2023 08:22:53 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qM2SS-006Jhd-17 for linux-arm-kernel@bombadil.infradead.org; Wed, 19 Jul 2023 08:22:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; 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; bh=QDGVvqTwYt8b/dIF34Msb2Qg2sBePCy/DbtoiGhv/Tw=; b=phSwWCFrnbEVWGyvcCKTULwpgB PhtcB4LWpmRzx09OltKkiYLEVhKPjJT993Dv8bUmrxaSIFAkPnjI4vtA/2I+YXcVcu0VnWHh5x5kn iybaEgd5TPDDsPfAwXIpR/n8T9LUsiNdjXyt2Y8oVcwnW7c6BSeST8/lODpSqloSi1EF1yULEDr0+ JcML+txl+0oFI7EMXqA/jQ0tfOwLOIpn9wods1ObMM2iPMEsxG2+pFIr15wRbLtXbhJC6LwW7Gs89 gvWNx197ObhbfELFmNxEkpn+BMF2EUdcDIwk/fDdBKYqVy8xYE/j/4yxdnObvgmcwQMoR32enbkmJ jphnaWcA==; Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qLlqg-00BdsG-1c for linux-arm-kernel@lists.infradead.org; Tue, 18 Jul 2023 14:38:48 +0000 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-Disposition: inline In-Reply-To: <20230717152709.574773-13-vladimir.oltean@nxp.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230718_153846_821348_3D3E7862 X-CRM114-Status: GOOD ( 13.24 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel