Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4030728imm; Mon, 30 Jul 2018 07:33:19 -0700 (PDT) X-Google-Smtp-Source: AAOMgpda4g/bgCtp2yYEYIa/JdPEPbfP6TvlGxPq8dA4WB272z9r7TNSyXfsnGXh/6miW+j7Mf1y X-Received: by 2002:a63:d5b:: with SMTP id 27-v6mr16387496pgn.107.1532961199121; Mon, 30 Jul 2018 07:33:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532961199; cv=none; d=google.com; s=arc-20160816; b=p9iwtG5riK7T1Pzbz8Kw8us/Tcvmkl+YXa0sQ2h4Mqm1yp4DxkGmQ6GGNB6gqiNyYy kAEvuEYdBjBX2k1i8zdlSNU+236JA5no172PlNwSVpnRLCOjniCTsCBN5Uhl5Kxa7IBx wpgxbx4VhuWUe3bMeTeTFRdBfIFBKnaBXbFWMTIcugwL0IJ++bSlw4i2WmVk0+3Ld1ys UdGjh8UlHTys8wtakaN3m71BurWNl8xWN2s7sBFrUqvCxwCjnVrYsYmwjec0D7MjBciM PjuUvg8Gz3pWAxXBbnONMzem2IbkDXlW1xOW9A+Db32pqKknlg8zHhnQ4hr5aglHlPFh lR8Q== 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:arc-authentication-results; bh=1hWa1mX8s05v3DYpMzpwCXIWjKn9aExRyXaVZHcy3/k=; b=nalfVb6v+K4/L+D8o8hpwmmcU06JtsO6TFI343+CSUCOTwU00iZKdAAKd3WCk6dUdZ DZGCNlXtHJPnWrNUNWmUy4SPZXJH8p4ujNOU7/dgimEmwkKxKJ1ZuzTPJVhet5P88c29 uiE7W8kPzxLDsPI6lt6o+233b2+/QxVdhSWsj3ECOeghMU8WF0LgeejrsL9AmsOZDjyr YxNePZmn61Lm72PHo2MK5SdAFbPrcNyXsBZcw9bKuTL3uNLZlQ2lunjEvonWQmDqyZq/ Uzw7Jg6xozAWLET/bb+PNW43JnUFvNId6IWGgXXiK+QH6AmTp26PdtOKvVKB4Of0wSvx lRyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=K1UxaopC; 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 t5-v6si10648484plz.286.2018.07.30.07.33.04; Mon, 30 Jul 2018 07:33:19 -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=K1UxaopC; 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 S1731864AbeG3QGC (ORCPT + 99 others); Mon, 30 Jul 2018 12:06:02 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:35717 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726860AbeG3QGC (ORCPT ); Mon, 30 Jul 2018 12:06:02 -0400 Received: by mail-pl0-f65.google.com with SMTP id w3-v6so5640330plq.2; Mon, 30 Jul 2018 07:30:46 -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=1hWa1mX8s05v3DYpMzpwCXIWjKn9aExRyXaVZHcy3/k=; b=K1UxaopC5P9vJGepF9IHO6j3i6v8PWJ3F6jjjOXGUQq9RzRRnsbfyBhOfqen08mB8r 6Qx+e3AMJFb180l11V2AMHvLDrhlzNQoA39s3nuKcIKG484svcMlXSnOWW35j6IpGIf2 jYT62PDy73FmlN8dpgYbTTSr3wO7YFBLeYuEcPIPjkuoBVI3Fybg7T5sP6CO0ALO1+Mf PI2PiYjF8/Uc2PdzR+bjDiRGlUHv6oStsH+Qnrri0ZCFtLAKDNh1r6qGGYMcYZKuv5K3 d8Ed4frPSW43dfxFKiAcu7StCJCTAdAF18kiJhj7OBSGGiXS0J8Ew1MuzaqK8cnL0Rfn 1p1g== 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=1hWa1mX8s05v3DYpMzpwCXIWjKn9aExRyXaVZHcy3/k=; b=oEevBD/djjYWcNOAaJHqybXzWPKSXfkZUmz/eTEU79bcjWuMJ+atLvSCWJ52V+tweB 6yZn0RyqBrVSyalHfgZQ44pnpzMA45lUOP8IpsTDa67Z7q0GqB8H13oO/hdwxl5RAGK/ tqxIWpnNhPHMHBzKZke0ZkHUQ2KPV2eO92aRc6/5fRKiW8U0GOkF4y1meH6FJFVZqHc2 hIttnPlpw05m2sVQPfjYEqSZCTnX8wmaJvd6M1Qi9GsgW0NNeJGhC6073YHRgFk0ngkk PJis1Z8R2Zvcd3XMEw57edsTCDdPRISx37jghetAvydmrtBIovULFogxOLPkUFOv4jZX zOGQ== X-Gm-Message-State: AOUpUlHXKP75228vbM2uRyqZj5GJeXeofExrza6HBNdEB3xqMkzPnXA1 xNknttzRSN8cqS1KLiC0+ds= X-Received: by 2002:a17:902:1703:: with SMTP id i3-v6mr16392697pli.263.1532961046116; Mon, 30 Jul 2018 07:30:46 -0700 (PDT) Received: from localhost (c-24-4-233-174.hsd1.ca.comcast.net. [24.4.233.174]) by smtp.gmail.com with ESMTPSA id n24-v6sm24781375pfi.161.2018.07.30.07.30.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Jul 2018 07:30:45 -0700 (PDT) Date: Mon, 30 Jul 2018 07:30:43 -0700 From: Richard Cochran To: Yangbo Lu Cc: netdev@vger.kernel.org, madalin.bucur@nxp.com, Rob Herring , Shawn Guo , "David S . Miller" , devicetree@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] ptp_qoriq: convert to use module parameters for initialization Message-ID: <20180730143043.qu66ttzwyjbw6si7@localhost> References: <20180730100154.27906-1-yangbo.lu@nxp.com> <20180730100154.27906-3-yangbo.lu@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180730100154.27906-3-yangbo.lu@nxp.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 30, 2018 at 06:01:54PM +0800, Yangbo Lu wrote: > The ptp_qoriq driver initialized the 1588 timer with the > configurations provided by the properties of device tree > node. For example, > > fsl,tclk-period = <5>; > fsl,tmr-prsc = <2>; > fsl,tmr-add = <0xaaaaaaab>; > fsl,tmr-fiper1 = <999999995>; > fsl,tmr-fiper2 = <99990>; > fsl,max-adj = <499999999>; > > These things actually were runtime configurations which > were not proper to be put into dts. That is debatable. While I agree that the dts isn't ideal for these, still it is the lesser of two or more evils. > This patch is to convert > to use module parameters for 1588 timer initialization, and > to support initial register values calculation. It is hard for me to understand how using module parameters improves the situation. > If the parameters are not provided, the driver will calculate > register values with a set of default parameters. With this > patch, those dts properties are no longer needed for new > platform to support 1588 timer, and many QorIQ DPAA platforms > (some P series and T series platforms of PowerPC, and some > LS series platforms of ARM64) could use this driver for their > fman ptp timer with default module parameters. However, this > patch didn't remove the dts method. Because there were still > many old platforms using the dts method. We need to clean up > their dts files, verify module parameters on them, and convert > them to the new method gradually in case of breaking any > function. In addition, like it or not, because the dts is an ABI, you must continue support of the dts values as a legacy option. Thanks, Richard