Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp33806pxb; Mon, 8 Nov 2021 09:17:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJzzM/NO4j1j/tpEGKcBW3W1AwhDjHiv2m27QWEE45VMb7LKZbma5tn/KWV85KzhrvzXCEde X-Received: by 2002:a92:d706:: with SMTP id m6mr426824iln.155.1636391863999; Mon, 08 Nov 2021 09:17:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636391863; cv=none; d=google.com; s=arc-20160816; b=pMwZ+PaMz2MseEJAYO74QnODJ5Gf4yLxl4/5yC/3qW7dJOH4mo53ZqGTTAt1xnibqG FGuX0cXirb8ZCNuv50moQaU1oUd4lr/KQoj/VnaYkcxW3Ej+ajwWjbGd+4yVzT1P2Xt4 tdES2LdDPC/U6XRPqzBXs1Mn99ZnFHBiptknGoy+nIBCwfKs+HJWLuH0H0+DqseMiHGD SDN7OdFPMNz81Bjsxtxu7gP6VZAJZgRg+VrS+Br7OVaDD3z8Yu8ZhEwv+dMY6qNctq8j TJ98C3WoLgWWG+WWD13/NegnPE/Hro1IsOTnZ9qgqOJulzL2hKWfNxPyfoWlBkwHpSUH cNbw== 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=eXl1H2PvB/dAhQZfxa5AWUQCdZb9d4W9i502eO8U1g4=; b=ZIDto1mCtuBqU6CikHSNr23u5ZnIFEQtIVxNzlw2vzjAnpARpRtFhleF+Q0IH1MCYZ wQv6WzZHJVe0ZidBUqidPeNOYxIRq2dOnfvf3sFG5NIo6OOomI9vSkPMfiE2BGsaq81H kSWLnEDPFQUbadAikI9pZwSFJ2GgpzB3mF32CzjoxcB4rQWRe02iiWtl4QWS4VG4KRv8 ftE0fHSEhxldnzPNV7wAPs054Pb4JEp1Ul0yazZ+eMlUSfFnnInwafsMtr3XcRa7/IjQ J1/stxFimovqo9SyeO0+/AG3IHaNHpwyOUwv/t5a3dhwYoRrL4FQeok3eQBrNWAg5D45 tPgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=R2IIgFxR; 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 i4si38342886iov.75.2021.11.08.09.17.28; Mon, 08 Nov 2021 09:17:43 -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=R2IIgFxR; 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 S240607AbhKHOvO (ORCPT + 99 others); Mon, 8 Nov 2021 09:51:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240587AbhKHOvM (ORCPT ); Mon, 8 Nov 2021 09:51:12 -0500 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AB50C061570; Mon, 8 Nov 2021 06:48:27 -0800 (PST) Received: by mail-pj1-x102c.google.com with SMTP id gb13-20020a17090b060d00b001a674e2c4a8so11782pjb.4; Mon, 08 Nov 2021 06:48:27 -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=eXl1H2PvB/dAhQZfxa5AWUQCdZb9d4W9i502eO8U1g4=; b=R2IIgFxRPxZ5UampCEqIXTw0RkteoV+w12Kh/0cHaxc20HtiMEgTePNEy58s7xwJEa jlhmkCHAb+3D9or0CFioNkIFj3LpCuQuSAbHeOOhjqVRp5VOMfIYaZG2qzG8C5bfTQh1 nq2wr+ZykNiqMMFd+lp4SJ0bakErXlCDMebmKqYSKSGbJ1HGYBLeDBvzVN+PGSls4OLs UuGVDRtMUYunQatN+M88FT0rHocSOqyQmSpzi/xCfc/psa1fN4mornoYszDmKjRUN8Am /xyNvzlWpeEqBLHUavPoi0mUNvAJrR3xu8gzZRxFOCzhNuNjPslIOX6KPRiJrJJVKhC0 CGNA== 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=eXl1H2PvB/dAhQZfxa5AWUQCdZb9d4W9i502eO8U1g4=; b=OU205Tsy4EDQfBj0zomaCVZIUUf4RIHY2WXrsLhiFXElVVdz6rUVWgwqZnKv4daFkp qFDLxz5pAFlFZwR9Hb1IWk7spr0chJIyi8Hxl8MArAgdR6EgjzAOPOGHWwlM9vs/kAzK qWwDaIAY5/olZdpljsNYu9an9US6lHomUEgK8Byan1+sFkWXHygHYaFH1l4G1ZqvgH7E ByUqhxs8WrFj5YCPe3eo/U8w/bSRPN9BMG8d9ycQxJjeBZW16aTc4Oi4PEOx284cJQ4i W5p967w53lmoeoY3np1ubU66RfHOSoztlz/wbz6Lt91uBFiy+FFZyJ9Xib93IqjkJLW1 Rf2Q== X-Gm-Message-State: AOAM5308+lGGZFB6EA6c3xtCnelcEUMze++FZ3GayOkKX1dvYOysLqnu Rpv6mLL2MCAgflVv1DwOo9o= X-Received: by 2002:a17:902:e842:b0:142:dbc:bade with SMTP id t2-20020a170902e84200b001420dbcbademr227691plg.45.1636382906902; Mon, 08 Nov 2021 06:48:26 -0800 (PST) Received: from hoboy.vegasvil.org ([2601:645:c000:2163:e2d5:5eff:fea5:802f]) by smtp.gmail.com with ESMTPSA id o134sm8330185pfg.1.2021.11.08.06.48.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Nov 2021 06:48:26 -0800 (PST) Date: Mon, 8 Nov 2021 06:48:24 -0800 From: Richard Cochran To: Vladimir Oltean Cc: Martin Kaistra , Florian Fainelli , Andrew Lunn , Vivien Didelot , Kurt Kanzenbach , "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 Subject: Re: [PATCH 7/7] net: dsa: b53: Expose PTP timestamping ioctls to userspace Message-ID: <20211108144824.GD7170@hoboy.vegasvil.org> References: <20211104133204.19757-1-martin.kaistra@linutronix.de> <20211104133204.19757-8-martin.kaistra@linutronix.de> <20211104174251.GB32548@hoboy.vegasvil.org> <20211105141319.GA16456@hoboy.vegasvil.org> <20211105142833.nv56zd5bqrkyjepd@skbuf> <20211106001804.GA24062@hoboy.vegasvil.org> <20211106003606.qvfkitgyzoutznlw@skbuf> <20211107140534.GB18693@hoboy.vegasvil.org> <20211107142703.tid4l4onr6y2gxic@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211107142703.tid4l4onr6y2gxic@skbuf> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 07, 2021 at 04:27:03PM +0200, Vladimir Oltean wrote: > On Sun, Nov 07, 2021 at 06:05:34AM -0800, Richard Cochran wrote: > > switch (cfg.rx_filter) { > > case HWTSTAMP_FILTER_NONE: > > break; > > case HWTSTAMP_FILTER_ALL: > > case HWTSTAMP_FILTER_SOME: > > case HWTSTAMP_FILTER_PTP_V1_L4_EVENT: > > case HWTSTAMP_FILTER_PTP_V1_L4_SYNC: > > case HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ: > > case HWTSTAMP_FILTER_NTP_ALL: > > case HWTSTAMP_FILTER_PTP_V2_L4_EVENT: > > case HWTSTAMP_FILTER_PTP_V2_L4_SYNC: > > case HWTSTAMP_FILTER_PTP_V2_L4_DELAY_REQ: > > case HWTSTAMP_FILTER_PTP_V2_L2_EVENT: > > case HWTSTAMP_FILTER_PTP_V2_L2_SYNC: > > case HWTSTAMP_FILTER_PTP_V2_L2_DELAY_REQ: > > case HWTSTAMP_FILTER_PTP_V2_EVENT: > > case HWTSTAMP_FILTER_PTP_V2_SYNC: > > case HWTSTAMP_FILTER_PTP_V2_DELAY_REQ: > > cfg.rx_filter = HWTSTAMP_FILTER_PTP_V2_EVENT; > > break; > > default: > > mutex_unlock(&ocelot->ptp_lock); > > return -ERANGE; > > } > > > > That is essentially an upgrade to HWTSTAMP_FILTER_PTP_V2_EVENT. The > > change from ALL to HWTSTAMP_FILTER_PTP_V2_EVENT is probably a simple > > oversight, and the driver can be easily fixed. > > > > Thanks, > > Richard > > It's essentially the same pattern as what Martin is introducing for b53. Uh, no it isn't. The present patch has: + case HWTSTAMP_FILTER_PTP_V2_L2_EVENT: + case HWTSTAMP_FILTER_PTP_V2_L2_SYNC: + case HWTSTAMP_FILTER_PTP_V2_L2_DELAY_REQ: + case HWTSTAMP_FILTER_PTP_V2_EVENT: + case HWTSTAMP_FILTER_PTP_V2_SYNC: + case HWTSTAMP_FILTER_PTP_V2_DELAY_REQ: + case HWTSTAMP_FILTER_ALL: + config->rx_filter = HWTSTAMP_FILTER_PTP_V2_L2_EVENT; There is an important difference between HWTSTAMP_FILTER_PTP_V2_L2_EVENT and HWTSTAMP_FILTER_PTP_V2_EVENT Notice the "L2" in there. Thanks, Richard