Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp613977pxh; Tue, 9 Nov 2021 16:11:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJx5e0puS4qc/t9xt0v37FEeeFGquEHkjfjTvHNU/Ez4KdYV9MRVek9UII5etHu8b4IzDrNM X-Received: by 2002:aa7:c496:: with SMTP id m22mr16036736edq.180.1636503115690; Tue, 09 Nov 2021 16:11:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636503115; cv=none; d=google.com; s=arc-20160816; b=CFZpbN/ahwETyE4/i5wZQc+Bzrth+pY7XHSFSowAGTQGzmN8gea+9fgKQJQOpdJU3C lorrW+4FAQU9t+UwDY1D1kHIAAno7a1x8HdIcggptqg7Q5y+AxpoYfHEgH319fn2QI4/ CthVgkLtB/UjYkDdjgiYL29+RaFjMNQr2amvVKGEIA2Dk8+Vc8qRho7Kf1cxGIODvqMp WxA2ucWoQ901b3BXZRa127338eeGCXKh3cZ0G+Lm9Euu2mt+zp3ILU1qJ+U3znFoa7YY 8pYyBBpD7zgPivIDEEYJd+0rrnipFO1po5ntQRHYxhmrsoFMBw7Vufu8ZOtmT2FRR8Nx Xruw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=PeT5cLUiL6MHK4FPkOiax8dsT/NJjA4TiyxrikVui0U=; b=zva5eb6BoonKH8nz4HcknitZK9Wm8j46X8OpbENny6bSvvsReuWxrvfYqCVMOVBrwm WVKnt4cFDE2Y+kh7rAviqwRtyxPFQJcGMv+hhOUX7fP1CJRVPqQWXcbuzCTRrvEG+l6I tTsVm0ywlghY5iTtapdkuA+Bi8fx3ZdDIT0UF0e9Lw9RGx2sfhSga86WVndwyvRfmFBB G+4hB3FHQe3rKHDF0cU8I9ez7fkAEq70xTItJY+8BRrEU8xAH2Y813g+2VWpJvy6bfzJ LpxvlYlHY5iYVRFBprWM+OCxA6rnJrGYTkit4tc6E1QOQcngzcHKJ71WefFGbbWG/t3Z uvRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="ZPvL/1Sl"; 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 gs18si39817353ejc.679.2021.11.09.16.11.31; Tue, 09 Nov 2021 16:11:55 -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="ZPvL/1Sl"; 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 S241465AbhKISHJ (ORCPT + 97 others); Tue, 9 Nov 2021 13:07:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241149AbhKISHI (ORCPT ); Tue, 9 Nov 2021 13:07:08 -0500 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71C0DC061764; Tue, 9 Nov 2021 10:04:22 -0800 (PST) Received: by mail-pl1-x62a.google.com with SMTP id t21so22363433plr.6; Tue, 09 Nov 2021 10:04:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=PeT5cLUiL6MHK4FPkOiax8dsT/NJjA4TiyxrikVui0U=; b=ZPvL/1Sl2S2wwAZprgutj0NzY6JOpVvTIpv3J9QZCCr2WLtzzjcNFfgEbp2lUdQqpZ m3j8vIS+fAASyftuBWg0RQPnNObtl9APHubBrwLFehTGhvz5Z9waBmBYGI0UNa/YM7kC YxOTw/NPRhMvCpSDRs+MiKrRbRIlxsyLBJl8Iu8Uz4ycrJtL59qQ2svQGb9hk0cyMDwO dx7RFzpZphk3KEKyT39dJRCXvwB36DcfoBOPwlgTmgWhndLutwFDC2qv5aejDqEt10s9 tnXph4QFj6QJUXBDaq4VWpPNMrUxgnI0K1QJN1ejdWA0+TY/F2g0BksSoBb8xZVRIG13 PP4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=PeT5cLUiL6MHK4FPkOiax8dsT/NJjA4TiyxrikVui0U=; b=k+ojwyiH9h7ws7W8oUnoc2jjCY7TnkVpYNfDW96I3NRD/LONdtGPGZEl9xFRQWtLEx 1mLrlaxFb4yhw3EXMRpN4lu8b4yt1kTWEkD//tSHrgyCj5h+wfdZpyq0pW03f9gc7WUh 1ZJ1YPafUqNPUAeO54OkLoxh2xjPxoE6yjVc1a5cYyfxg3HgAi+n9G1ZaNo2zRVEQvWa RJHlDM64wKYbIDCI+ObSOCgMGHYUgGBn8mXuu29AjVMl/DsaAAfuQ5FS/gnSPKtwxnEQ sBsDz4kMv6XQH6zUW68Q4YyMNd2gOPihKZmiUPcGmci2YXBhEAUM8mpHccGgTBXF3uER bTVg== X-Gm-Message-State: AOAM533iNFiiEf9+KgW7ZehHQHRsjT0uxwV4wldVSPYOtSbhU0v4q5bW DZcnKfL44lKChsB2zyWdBxO0EtlVXi0= X-Received: by 2002:a17:90a:ad47:: with SMTP id w7mr9479225pjv.16.1636481061410; Tue, 09 Nov 2021 10:04:21 -0800 (PST) Received: from [10.67.48.245] ([192.19.223.252]) by smtp.googlemail.com with ESMTPSA id co4sm3229462pjb.2.2021.11.09.10.04.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 09 Nov 2021 10:04:20 -0800 (PST) Subject: Re: [PATCH v2 1/7] net: dsa: b53: Add BroadSync HD register definitions To: Martin Kaistra , Andrew Lunn , Vivien Didelot Cc: Richard Cochran , Kurt Kanzenbach , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , John Stultz , Thomas Gleixner , Stephen Boyd , Russell King , Marc Kleine-Budde , linux-kernel@vger.kernel.org, netdev@vger.kernel.org References: <20211109095013.27829-1-martin.kaistra@linutronix.de> <20211109095013.27829-2-martin.kaistra@linutronix.de> From: Florian Fainelli Message-ID: <6839c4e9-123d-227a-630d-fae8a2df6483@gmail.com> Date: Tue, 9 Nov 2021 10:04:19 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20211109095013.27829-2-martin.kaistra@linutronix.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/9/21 1:50 AM, Martin Kaistra wrote: > From: Kurt Kanzenbach > > Add register definitions for the BroadSync HD features of > BCM53128. These will be used to enable PTP support. > > Signed-off-by: Kurt Kanzenbach > Signed-off-by: Martin Kaistra > --- [snip] > +/************************************************************************* > + * ARL Control Registers > + *************************************************************************/ > + > +/* Multiport Control Register (16 bit) */ > +#define B53_MPORT_CTRL 0x0e > +#define MPORT_CTRL_DIS_FORWARD 0 > +#define MPORT_CTRL_CMP_ETYPE 1 > +#define MPORT_CTRL_CMP_ADDR 2 > +#define MPORT_CTRL_CMP_ADDR_ETYPE 3 > +#define MPORT_CTRL_SHIFT(x) ((x) << 1) > +#define MPORT_CTRL_MASK 0x2 The mask should be 0x3 since this is a 2-bit wide field. -- Florian