Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1113539ybt; Thu, 18 Jun 2020 00:24:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylZy4Nn0UtKirTLBnugnwxW9t44RCMK1z7f7np6e6TU9vq6SjsxGvVSmPis0Wk9WRuNNCS X-Received: by 2002:a17:906:f6c2:: with SMTP id jo2mr2791085ejb.424.1592465062449; Thu, 18 Jun 2020 00:24:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592465062; cv=none; d=google.com; s=arc-20160816; b=j+m5tI3X+ae4I/Tja2Nr7HiIZ3ULSQ/C8kJ+dqwx+2eiDbdxd3ECDtErbKbENhCFIL W6zmpnfvP+xgn7DDR2wMaZrcMCHutcLaNPuStv2HUFviDZJiIGPXe4t9W0isjqMoc6Zd V5ykeCwSoviSXpbshvv8LiZUbzpNYl3wDJKfiiRc5HUAPahaV7oQe+ovQt4EjB+HZFNU Q/M476ZDM5A1877U7utS7D+t2VGrmWMNfpeARd2andcB1TiAjBgNgQj22bt1xrZpR1Os t5izVOwdvegXjugcBS0caaY369xcGWttefQxT3E5/z6aLAP0W8sW3PLBozttQCb0hLO9 GjNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:from:cc:subject:to :references:in-reply-to:content-transfer-encoding:mime-version; bh=N+pp6Bb8z66KLWWUjyUGG/5lymYUs4d/TsnF3RJ+x4s=; b=QBvOqZByxvmpDcNWze1TbXuH1+MRd06f45PTuuvvQkpq3xT080oYTmKC2+zCVuYAk5 AzQ1VrcjhUmd4pViguDtAmkfOzos/VK5xerDYNWOlZ/HV/g69yd2sbB/Csn54sEnPnSZ FTXKXucxngxAJzXlYr1e41fjttvEJrd/nJFAuTJ5G4Qx81eVRwzNGs46K8exh1lKzqLq ijkMeWEMkFSjr5HMepnuxiYKMETzZZMxjO6ALikp0WaXvvZoEwmfYhA2UoHWw0s9XG+4 MTACN6oJiMlUSzNZt25Mv8klnPZ3dkXJH4JJzPZ375X9F58ssWAJoI0QCVgeqUel5oU4 p/cA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i13si1336303eds.471.2020.06.18.00.23.59; Thu, 18 Jun 2020 00:24:22 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728119AbgFRHUA convert rfc822-to-8bit (ORCPT + 99 others); Thu, 18 Jun 2020 03:20:00 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:47743 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727986AbgFRHT7 (ORCPT ); Thu, 18 Jun 2020 03:19:59 -0400 X-Originating-IP: 90.76.143.236 Received: from localhost (lfbn-tou-1-1075-236.w90-76.abo.wanadoo.fr [90.76.143.236]) (Authenticated sender: antoine.tenart@bootlin.com) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 004AD4000A; Thu, 18 Jun 2020 07:19:55 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT In-Reply-To: <20200617093217.2a664161@kicinski-fedora-PC1C0HJN> References: <20200617133127.628454-1-antoine.tenart@bootlin.com> <20200617133127.628454-7-antoine.tenart@bootlin.com> <20200617093217.2a664161@kicinski-fedora-PC1C0HJN> To: Jakub Kicinski Subject: Re: [PATCH net-next v2 6/8] net: phy: mscc: timestamping and PHC support Cc: davem@davemloft.net, andrew@lunn.ch, f.fainelli@gmail.com, hkallweit1@gmail.com, richardcochran@gmail.com, alexandre.belloni@bootlin.com, UNGLinuxDriver@microchip.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, allan.nielsen@microchip.com, foss@0leil.net From: Antoine Tenart Message-ID: <159246479497.467274.13476034822528412319@kwain> Date: Thu, 18 Jun 2020 09:19:55 +0200 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Jakub, Quoting Jakub Kicinski (2020-06-17 18:32:17) > On Wed, 17 Jun 2020 15:31:25 +0200 Antoine Tenart wrote: > > This patch adds support for PHC and timestamping operations for the MSCC > > PHY. PTP 1-step and 2-step modes are supported, over Ethernet and UDP. > > > > To get and set the PHC time, a GPIO has to be used and changes are only > > retrieved or committed when on a rising edge. The same GPIO is shared by > > all PHYs, so the granularity of the lock protecting it has to be > > different from the ones protecting the 1588 registers (the VSC8584 PHY > > has 2 1588 blocks, and a single load/save pin). > > > > Co-developed-by: Quentin Schulz > > Signed-off-by: Quentin Schulz > > Signed-off-by: Antoine Tenart > > drivers/net/phy/mscc/mscc_ptp.c:406:24: warning: restricted __be16 degrades to integer > drivers/net/phy/mscc/mscc_ptp.c:407:24: warning: restricted __be16 degrades to integer > drivers/net/phy/mscc/mscc_ptp.c:1213:23: warning: symbol 'vsc85xx_clk_caps' was not declared. Should it be static? > > Please make sure you don't add warnings when built with W=1 C=1 flags. I'll look into that. Thanks, Antoine -- Antoine Ténart, Bootlin Embedded Linux and Kernel engineering https://bootlin.com