Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp621475ybt; Wed, 17 Jun 2020 09:34:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQJmuz+OPZA09d0rzSWiw1lVFNXPf+XNBVxF0GrghY+6GzEuilmPPR3w7fW6s/CEN9gG10 X-Received: by 2002:a17:906:e298:: with SMTP id gg24mr34514ejb.120.1592411696773; Wed, 17 Jun 2020 09:34:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592411696; cv=none; d=google.com; s=arc-20160816; b=N1bkwttv903cLmQarWqQZzGMj4KALblqCBwNbhmp62hqyJaCaJril5MOEB1LaKgOW+ SUdsgk4ZZxxIBcQCGyeRaRX71XWswMblvKJyFKPi7PQmrZ3RkUpubvve5JcnRXZOC3W0 FfzmjTrHpnHHcT0QTeOSw1A94imCmOwxMc2FcdD1K3abSm1MGIVarl7Y0P+4ZcJky5en 2Bqu2HIrZgjccoDmzyj4nNHal8uG/rwpjcqZxDFeRTIq+UjNEyHv9vAvL++o1QUIu52H mAnTWoxbiWskqR1CokMxolcH88hsiiXhYBcDHFA8l4Hwvl/9LWPcdAYjPmEYrxBQ3Ymj s3bQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=PCPnwtpCRBRz9n+0+nCpU8yed4Qjc8bC65JhEDghJJg=; b=nB9xHONHj0gzUae/pNLn/3faR6w2kRCm0aLcRjSghSNs/JW8K3dwjedqwIBYbrhjVv xjaL1XGgdjjASKm07pbpugHmOC+MmW0ooLu9pTe9v4PspAA1Mk7u1alfWS+GBDy42ePs r0tKX12BILiD8mfYPD2Gm9cQDhY7k2wViaoeO1a4mg8OjRxFr4ylCvMwVL3BLJxVoN8N tAMIjdsAPaZQvCeRXphkEEjK9aqwmsy9EwmCDCMmid4lOmPnQjuGD+wJLAddxWxyj0v0 4+5mVEpslCyM/Z1RLh8yOxiCzlVnSWonifXr+6v7eXlMJ1BqMAMabTdX42klkilrJ+dv VaBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gR3iYqxi; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n23si210133eje.711.2020.06.17.09.34.05; Wed, 17 Jun 2020 09:34:56 -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; dkim=pass header.i=@kernel.org header.s=default header.b=gR3iYqxi; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726878AbgFQQcU (ORCPT + 99 others); Wed, 17 Jun 2020 12:32:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:58626 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726761AbgFQQcU (ORCPT ); Wed, 17 Jun 2020 12:32:20 -0400 Received: from kicinski-fedora-PC1C0HJN (unknown [163.114.132.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2D98321527; Wed, 17 Jun 2020 16:32:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592411539; bh=dosVYB527BP5Srr/9fHV6NJgxLs2rmKgkXamravjVTs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=gR3iYqxi/8pnlX85JZRtonRYglAcXRG48QIbQKHqB25TmMgQpFmEx6LddT/XI9CDq CLpyGHk9BimZuu8alat9WAWRhy5iVT4d1Mf1S0LlP4V1Udh+Bk3fwb5CNsIn4Wa3zV V1Eeua8z2rScaFbRk0dARUhwm4NqJLLqsinwka/k= Date: Wed, 17 Jun 2020 09:32:17 -0700 From: Jakub Kicinski To: Antoine Tenart 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 Subject: Re: [PATCH net-next v2 6/8] net: phy: mscc: timestamping and PHC support Message-ID: <20200617093217.2a664161@kicinski-fedora-PC1C0HJN> In-Reply-To: <20200617133127.628454-7-antoine.tenart@bootlin.com> References: <20200617133127.628454-1-antoine.tenart@bootlin.com> <20200617133127.628454-7-antoine.tenart@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.