Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp606295ybb; Wed, 25 Mar 2020 06:16:15 -0700 (PDT) X-Google-Smtp-Source: ADFU+vv7aJsfNTc7LRCjRWCMvfhXkHPVTrh6l+RxwUncfRYboKZX1bOEJSv8WbfKO4HySO/hD+J5 X-Received: by 2002:a9d:469d:: with SMTP id z29mr2430058ote.320.1585142175070; Wed, 25 Mar 2020 06:16:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585142175; cv=none; d=google.com; s=arc-20160816; b=zTGGd76ZsGHCNBk0M2j9yXi5Xmk6JMEzy3UykUVz2JLlh2dnH9Y1vaQkQuy2hRmnsj Jcy43lj0jCch6xK5m/BxrEhFanoDedoUGyI9nLOoMHTWPxCYSkprCQdfo5I3neBtxj6J dEl6o9kP4VRVNxZg5qlLh/ZaeyfAl7qh7ne69H7fsQqWLfZwPfmONsxJnEpPrSGWs3Av ld0CHNNyR2de3uq2w2Kg4Ub4bIA3U7MiJZdUYWJsG/Zu2IVPiKaTr5okfE9Pn7X5wmys B1kwuEJCgogt0ZBDNpAwUz+PBc03g5e5cd3+QrIVe+7/k7NZcipaxgeT+okhl/XWxyno mUng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=t7sQNLDClv/p225mmH86mWwak+RRxG8EEmHT60ENRjM=; b=VcAXqWaHSxz3eiotbgreH6VBKHxHbyWSIx7sGqA2kwYnmhxC9yL4/szRRazNHF6+Ul dbwZyUeBfWOdVhR7jkOfV2T2bdxp5DnVWh5TxGctSzSwv0834uiUrDARsOKUTVthOfqT ufljY4Sopye/Mjc+N8tJjxsp0QQBs/g+WhRrI2urfWXKPZ/Lv4ippjXNQchbixT2lUHr I8ezh4LFxuza591LJUIJbytymz0YR8aDueUPx7mk488zSbL740z4pQUQ6kwRLxozsRRe M48s/R5NZD1HOYTAkdzK2JreIWiIaDLaeFmz5OFYV+dYZEgpsMOlqf3TL/a26LkkXbjG R79Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gEY7UqPM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id l15si10468715oil.50.2020.03.25.06.15.58; Wed, 25 Mar 2020 06:16:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gEY7UqPM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727384AbgCYNPj (ORCPT + 99 others); Wed, 25 Mar 2020 09:15:39 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:44659 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727046AbgCYNPj (ORCPT ); Wed, 25 Mar 2020 09:15:39 -0400 Received: by mail-pg1-f195.google.com with SMTP id 142so1119299pgf.11; Wed, 25 Mar 2020 06:15:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=t7sQNLDClv/p225mmH86mWwak+RRxG8EEmHT60ENRjM=; b=gEY7UqPMftwY/H7TBRSQpBZ6VGvDIckFDkKb6LBage0Y9kIawsp3wCMJighgviDumi lHUjUHw52J9Wkd7YGTFQ91NQNQyDT7GhEHixfb0+ALrQQ7QH7nJuBeOLj1KwZQYPCJQQ sUTM91E4P0el/7i6/+I+AgVPdz3Tii5bq/fh3jjhQVBMxp4uROnW577YJWWHHNnQl+SH x81vgyOAh6aj9iPz0v7g/+hBpTmhhlHQvDliW1XVkHluIjKsGNOByVkxF2iZdiFIHbdN PFXDn7OY+XOaO+dr5kuCYs38YgHdxcnCDzWPQ/PwGTcAmQHYkQhn3gB7KiQgLiiFakUC hV4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=t7sQNLDClv/p225mmH86mWwak+RRxG8EEmHT60ENRjM=; b=Ggtq8/waWulpUVQwVhJNwU2Zel0GFVxdmlLBCfUwBlJJzyRZmDRoOSovvdPABFVn8S OHGTXLbn0od7W1wqh4h19Mrt/44E5R4ozq89rXkOWPCXTMlNIRjGTKg266rx8JHISrDy VjLVDhkyUAjfgiou/NJKb9DZC6Df7+4N44Ts3PRI6/23V6OUenzCFfUgF4MIYFMDeMjN kCEIKvYuzd+ww7pH8gjWIziJOelCoWd8yc74kRLivhlmc92wg1FWigSkwwq/FOb0fL/n Tksrka3ZHNRVrVCx1sttBNYOamfw3QDYEDP58ll+qMKniyYjy/sjwqsFXyefxW5Xs2Ao mObA== X-Gm-Message-State: ANhLgQ0Zhi4uCBxM2L/qMTweCN6XM4MuFu5X5BsDi44Y/qRitFi4+Osa qFAt6IQ4KyorV7Ga0j69fAI= X-Received: by 2002:a63:5f10:: with SMTP id t16mr3117029pgb.20.1585142137979; Wed, 25 Mar 2020 06:15:37 -0700 (PDT) Received: from localhost (c-73-241-114-122.hsd1.ca.comcast.net. [73.241.114.122]) by smtp.gmail.com with ESMTPSA id w27sm18520140pfq.211.2020.03.25.06.15.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Mar 2020 06:15:37 -0700 (PDT) Date: Wed, 25 Mar 2020 06:15:35 -0700 From: Richard Cochran To: Yangbo Lu Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, "David S . Miller" , Vladimir Oltean , Claudiu Manoil , Andrew Lunn , Vivien Didelot , Florian Fainelli , Alexandre Belloni , Microchip Linux Driver Support Subject: Re: [PATCH 6/6] ptp_ocelot: support 4 programmable pins Message-ID: <20200325131534.GA32284@localhost> References: <20200320103726.32559-1-yangbo.lu@nxp.com> <20200320103726.32559-7-yangbo.lu@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200320103726.32559-7-yangbo.lu@nxp.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 20, 2020 at 06:37:26PM +0800, Yangbo Lu wrote: > Support 4 programmable pins for only one function periodic > signal for now. For now? > +static int ocelot_ptp_verify(struct ptp_clock_info *ptp, unsigned int pin, > + enum ptp_pin_function func, unsigned int chan) > +{ > + switch (func) { > + case PTP_PF_NONE: > + case PTP_PF_PEROUT: > + break; If the functions cannot be changed, then supporting the PTP_PIN_SETFUNC ioctl does not make sense! > + case PTP_PF_EXTTS: > + case PTP_PF_PHYSYNC: > + return -1; > + } > + return 0; > +} Thanks, Richard