Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp344110pxb; Thu, 27 Jan 2022 23:50:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJyxM6DR/AaRQW5N+biKIRIlL3XiNO6l2XLfoQWTG5pAEOGrACdTyh6irJR87GKaLPUHyQjP X-Received: by 2002:a17:90b:3810:: with SMTP id mq16mr17107600pjb.95.1643356256986; Thu, 27 Jan 2022 23:50:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643356256; cv=none; d=google.com; s=arc-20160816; b=P9CPiUYcNQfZqfELDXnMGEqCwKbe50327FTQ59AO1gR/9SKM2UDroD1ErAwS4km5zs M9Fai8wltiBwAbha4tUl+AHcP1HxuBtP+94dkwtiQwkyJY1Bts1Bm8Jeq9rAu4EJs/1f +wQ7R2EYqbx+9TUezPF0IbSb3EyzvD+KMoKIpgLm935t8i7hZUeqn+CrIKd/RkYk76LK M8Tghvm/w5JrMKxCkdZt0BLEUwYcgrMnMqpAk0g2MyuugeUw/Y48mvlijIP8dW2K4aWP cLaMx9G071U0XAs864VwXe6K+ElXTJfmc0l3B+bCU9LrgD/xY1Kw1JQFjaG0TSwlPYXs G3Gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=dvt/8H5X4Zu8vAr/0WKV1yh961pOvsSRhMVZVcge7QU=; b=IxOXS0r1HDDgUHKQf3cXxjT4oplPTDVWARJsCE4a+B9s7hlUIR/Cwd9FqbYUz6e8nv dNDyBEJr8tupF1dxmInWSEZSuCa3LPIq1qIiW0eu4VhCAcxhJPdXQrcvE1Vm6drqjaNv ZhsNnIn2H3zcZlEu5SUcdW0zAHUAJQUCoZ4r5nK47LrkSrklmOWqEXos1hKprnO9zcxf bq0BpUvlb035M/3LHOfycdhPvEpd2vh79fyMX4yjc6jYnv7+I7vWfwdSQ3abrqbyZ7IH DETMBto9mObsUTcMa5vUCNSRySoJIy1QEKjDgi1jFasuFyYu71vvr201+cHM/FW2IyKM 6zfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aP3OU9wQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v10si4289283plo.270.2022.01.27.23.50.44; Thu, 27 Jan 2022 23:50:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aP3OU9wQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237707AbiA0P2q (ORCPT + 99 others); Thu, 27 Jan 2022 10:28:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233711AbiA0P2p (ORCPT ); Thu, 27 Jan 2022 10:28:45 -0500 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8EF6C061714; Thu, 27 Jan 2022 07:28:44 -0800 (PST) Received: by mail-pl1-x62e.google.com with SMTP id k17so2852798plk.0; Thu, 27 Jan 2022 07:28:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=dvt/8H5X4Zu8vAr/0WKV1yh961pOvsSRhMVZVcge7QU=; b=aP3OU9wQlYl7w7q5mU6E5txvQDHnWyvnBTn0UnSEGFgujIo4qtasfeUxsh83W7+Ed5 6KRoCPljieaoptQtIP9OlBPwC1ZANkTzKF9vzmGit6rtC7Wt63WL239O1QkfDvJlCRDS nMCio86UyQcbkspE/gkm+wwB0yYEp1PINlz1m2SOPMk12o4eX3PwvjgHdgcFL1RBIOy7 T5f0Qq2+mWtdxI+f0Ei6ih8VB3fgxRrRipE03Jv1gLVag84gqgV8nZoiNuQmFogHrMs7 BJp9Bo/bcpfJYgrN6TqI4AVjlsoZvbfSXhTmNqJLLvkIPc08hdtMAdX41EP219TEun85 0KLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=dvt/8H5X4Zu8vAr/0WKV1yh961pOvsSRhMVZVcge7QU=; b=poouGcyNclQSphUUf4aMEP4U5fdPSGsoezEiYenQflK+5PR/Q7+T6Q8fgd9H1hSdhF LbQdGkS7fF1ZVrAovRHp1g2+erxq1Irm9QcxMLk9oAEZmM/EQz/yNnT+2RixtBAh6X/s ZmvOzloi2A6B919PJ6b1NjrGiwE9Zo6ecl9yWlnTur0ST02lFq1Qg70YhmApxBOylDc6 WXa50D20dKXeLNx+NkGlknKwUEa3PvX7gk8qlS+wZejVd1TUOHxmoz+KUtHyZy6x4XtL TMmGtuh+7MSm7iELwnnNUS4GJtmNl6Q2gqWQ9TpG7l2cd9J2/GltPlMYWf6aRakHssNS TFEw== X-Gm-Message-State: AOAM5320JB3/Nfy43/iocwavtqFMLTQuy9DMbTJNiw4x7eY0+y8wA+TC SwEcPXyb/ssWmLj9d7yt408= X-Received: by 2002:a17:902:f083:: with SMTP id p3mr4296192pla.72.1643297324332; Thu, 27 Jan 2022 07:28:44 -0800 (PST) Received: from hoboy.vegasvil.org ([2601:640:8200:33:e2d5:5eff:fea5:802f]) by smtp.gmail.com with ESMTPSA id g11sm4310269pfj.21.2022.01.27.07.28.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jan 2022 07:28:43 -0800 (PST) Date: Thu, 27 Jan 2022 07:28:41 -0800 From: Richard Cochran To: Horatiu Vultur Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, davem@davemloft.net, kuba@kernel.org, robh+dt@kernel.org, UNGLinuxDriver@microchip.com, linux@armlinux.org.uk, f.fainelli@gmail.com, vivien.didelot@gmail.com, vladimir.oltean@nxp.com, andrew@lunn.ch Subject: Re: [PATCH net-next 3/7] net: lan966x: Add support for ptp clocks Message-ID: <20220127152841.GC20642@hoboy.vegasvil.org> References: <20220127102333.987195-1-horatiu.vultur@microchip.com> <20220127102333.987195-4-horatiu.vultur@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220127102333.987195-4-horatiu.vultur@microchip.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 27, 2022 at 11:23:29AM +0100, Horatiu Vultur wrote: > +static int lan966x_ptp_phc_init(struct lan966x *lan966x, > + int index, > + struct ptp_clock_info *clock_info) > +{ > + struct lan966x_phc *phc = &lan966x->phc[index]; > + > + phc->info = *clock_info; > + phc->clock = ptp_clock_register(&phc->info, lan966x->dev); > + if (IS_ERR(phc->clock)) > + return PTR_ERR(phc->clock); > + > + phc->index = index; > + phc->lan966x = lan966x; > + > + /* PTP Rx stamping is always enabled. */ > + phc->hwtstamp_config.rx_filter = HWTSTAMP_FILTER_PTP_V2_EVENT; Not true -- you allow it to be disabled in the next patch! Thanks, Richard > + > + return 0; > +}