Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1974992pxb; Thu, 4 Nov 2021 11:44:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCnMui2TK302h4GEdrt9la9398pg3y5Knr2WScIS49Vh6zFzYfNWO+iYrQmTPGK8fMGfg2 X-Received: by 2002:a17:907:868c:: with SMTP id qa12mr63863963ejc.346.1636051492574; Thu, 04 Nov 2021 11:44:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636051492; cv=none; d=google.com; s=arc-20160816; b=X/Nabu/uvUKwM/x84oJKM5VLw67AW3a37hJx4CKijpkb4uHCprMhWb6PF3W1QixPHv 252l5z7k9vcBXjzQrNvu8TWSTiPdiNrWrF9bI7KM53KYnN2umF9/ldb5jC8z4Xhj/2I8 L9L9JoXmwXUj2rPs+OgWvpS+ebn7eRSgfolk5o9RV0hzk8DNgQZRd10AKHoIei+1MKbw Yn5nNEw+7yUtvAAp9yYjQLdCGagCC5lnPEdN/+U1Kq9eYMArlDDEG1/1egQfhw7n7g+s hr/CTikKlYi9onrXsiv8PQ69Dwp4rQsXj5mx4t8O9ZIXuGuYg8dwvUta74TgBnSIMzgA R7Tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=o+E9Di6fDFolOq6ZCQPlTtRXyrV4avWAHHHSgGySozU=; b=aWhgsxXVrJJgKypBKquDAvuxCBxvCQ8eBGf7fpWKOCBNRp3qYUjkyKeShQyKxeZF+d tsCQkQyikun7ktuaadl5uXIAHG+C+ukQtlv4Wm9Z2F7e4CwU7bckbz7Z0dtoGH8li2mw 2+/DAgO/U/dMf8BXPrr54Yvol7QZ92JoBc7wxDVcB06HXgkQFyxjdF3+VG10gyPK/hRy HIuXr0B8jJ08EwS34XHL0Qv0BbWscsxMmoZnkEpjqg+asGgX01MMz0+Tbrhw/UjLnH7O zVCrFC8hf6hwncjxOArBhLp1gPcEjI3lg/Wm5+hdzADNmXIQygeBqvYG3Bbz8R9vQCYO l/PQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IJPiONKi; 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 kz1si8887108ejc.7.2021.11.04.11.44.22; Thu, 04 Nov 2021 11:44:52 -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=k20201202 header.b=IJPiONKi; 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 S233833AbhKDRcP (ORCPT + 99 others); Thu, 4 Nov 2021 13:32:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:46208 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231709AbhKDRcN (ORCPT ); Thu, 4 Nov 2021 13:32:13 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A8F96610D0; Thu, 4 Nov 2021 17:29:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1636046975; bh=jqOaHAleoMAYNHqOASMGyfT9PLNNxKiJ1RUKdmVsJAA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=IJPiONKiNGrTvdQ5UBzinQR7+IR0RX/BsXJI55A6ZD0TSlo8TUd0pTDfRgZkHhaIL DTgy+fLPsTS0VI2+qkqmS8sde1JbI8tpdXxueL23HuUtRDw9pPSVl6BF8BnHXVbZVU R2pk9C5lwvH8w0UGusrP7H0gV1Y1dqwqegdELW87QV52XG0g8wX6lKFrUil1GuEyAz dMOgJIYQtSfCv8T+th+8Xw4310QH1f260K22HpzKo47dC6Q+2bH5uSOhUNfQV1jAAW IqtIKHfBxGMjJXH1DcdvwnRhXhLDpx+6J7LTPJtJBNXy7GPii4480bxqnoAT8E1Vzx yx8lJup6gWpSQ== Date: Thu, 4 Nov 2021 10:29:33 -0700 From: Jakub Kicinski To: Martin Kaistra Cc: Florian Fainelli , Andrew Lunn , Vivien Didelot , Richard Cochran , Vladimir Oltean , "David S. Miller" , John Stultz , Thomas Gleixner , Stephen Boyd , Russell King , Marc Kleine-Budde , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH 0/7] Add PTP support for BCM53128 switch Message-ID: <20211104102933.3c6f5b12@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20211104133204.19757-1-martin.kaistra@linutronix.de> References: <20211104133204.19757-1-martin.kaistra@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 4 Nov 2021 14:31:54 +0100 Martin Kaistra wrote: > this series adds PTP support to the b53 DSA driver for the BCM53128 > switch using the BroadSync HD feature. > > As there seems to be only one filter (either by Ethertype or DA) for > timestamping incoming packets, only L2 is supported. > > To be able to use the timecounter infrastructure with a counter that > wraps around at a non-power of two point, patch 2 adds support for such > a custom point. Alternatively I could fix up the delta every time a > wrap-around occurs in the driver itself, but this way it can also be > useful for other hardware. Please make sure that the code builds as a module and that each patch compiles cleanly with W=1 C=1 flags set - build the entire tree first with W=1 C=1 cause there will be extra warning noise, then apply your patches one by one and recompile, there should be no warnings since b53 itself builds cleanly.