Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4150608imm; Mon, 30 Jul 2018 09:27:48 -0700 (PDT) X-Google-Smtp-Source: AAOMgpefk0cpQMoaksYPQqVKK89hBkzQNE8MjbkEAgmq0v5SC3YObBobXzXBzOKStipnJUd2R/cK X-Received: by 2002:a63:6188:: with SMTP id v130-v6mr17070215pgb.100.1532968067985; Mon, 30 Jul 2018 09:27:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532968067; cv=none; d=google.com; s=arc-20160816; b=hhlpJJq7U19aQuL4NEwCYUncIvD1Wx2EXI+2MjaZuTpnNc3iKUzKl+O0TLq4MwJei6 yxS4UOjoWWn84+qq71QwSqma4B2tUTgV8A+F83Y0N4SpJGZzOHgSf3wm3UBnlZHQcSrz V1dYLrC2+Uuak9icvRy+rkVNU4Ql9RP9Zg3WvtrnQ9QFP5mmc5wOhriVJqO0sm5NbPpd g70+zPeFMR67bG4yjGSYLWZ2tIhX/wL08Z27Lq+55Sl+RAFSQyJfSgVoc0NvYGjrazgM 4/Y+Wh9pSTCJM697aj/FApoAjCyGr3mZLrm2JP4F/JZT+tO5w1NGjQOHq+lCnygEqk9U ca6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date :arc-authentication-results; bh=/INuzqd16iE6Hzmrjxg1FnSbFMoji1G3vOInmWgJaak=; b=px1eYsl9Uj7NHAnRuJN2Ysu/4QRVtf+rnnnzybWEJ1OKQ7A1HxTjmoC1R8P+fMe8y4 vEnDRWGolNRSQYv4PQMMCQXhVCbI7OqrS3Ld/rOJgfICzEcuRg8qhvMiuc8Ow3ouoigC Sa+8ZD7FX7B4aQFN/LTUiBFbGwtYT+RGBG7EQ+vhVcG5tE7QmFs1yutiNAHtwsoATqoT FA3rT4KPCcvRBBYPIzROu38iBl8YZSzbwVh9zhJpiUTbcfJ+E/uFBivl4+7My5N+PrTH diuVCrakS95CNQ2EB8wpX73ZlrJfIw3fepOsqtpWrHKL/K5ohZQX2X9lC2Z7twzvjifZ YCOA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3-v6si1497020plz.351.2018.07.30.09.27.33; Mon, 30 Jul 2018 09:27:47 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731549AbeG3SBa (ORCPT + 99 others); Mon, 30 Jul 2018 14:01:30 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:60770 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727181AbeG3SBa (ORCPT ); Mon, 30 Jul 2018 14:01:30 -0400 Received: from localhost (c-24-20-22-31.hsd1.or.comcast.net [24.20.22.31]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id D83A613F00BBE; Mon, 30 Jul 2018 09:25:45 -0700 (PDT) Date: Mon, 30 Jul 2018 09:25:45 -0700 (PDT) Message-Id: <20180730.092545.225621578249887012.davem@davemloft.net> To: yangbo.lu@nxp.com Cc: netdev@vger.kernel.org, madalin.bucur@nxp.com, richardcochran@gmail.com, robh+dt@kernel.org, shawnguo@kernel.org, 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 From: David Miller In-Reply-To: <20180730100154.27906-3-yangbo.lu@nxp.com> References: <20180730100154.27906-1-yangbo.lu@nxp.com> <20180730100154.27906-3-yangbo.lu@nxp.com> X-Mailer: Mew version 6.7 on Emacs 26 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 30 Jul 2018 09:25:46 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yangbo Lu Date: Mon, 30 Jul 2018 18:01:54 +0800 > +static unsigned int cksel = DEFAULT_CKSEL; > +module_param(cksel, uint, 0644); > +MODULE_PARM_DESC(cksel, "Select reference clock"); > + > +static unsigned int clk_src; > +module_param(clk_src, uint, 0644); > +MODULE_PARM_DESC(clk_src, "Reference clock frequency (if clocks property not provided in dts)"); > + > +static unsigned int tmr_prsc = 2; > +module_param(tmr_prsc, uint, 0644); > +MODULE_PARM_DESC(tmr_prsc, "Output clock division/prescale factor"); > + > +static unsigned int tmr_fiper1 = 1000000000; > +module_param(tmr_fiper1, uint, 0644); > +MODULE_PARM_DESC(tmr_fiper1, "Desired fixed interval pulse period (ns)"); > + > +static unsigned int tmr_fiper2 = 100000; > +module_param(tmr_fiper2, uint, 0644); > +MODULE_PARM_DESC(tmr_fiper2, "Desired fixed interval pulse period (ns)"); Sorry, there is no way I am every applying something like this. Module parameters are to be avoided at all costs. And you don't need it here, you have DTS, please use it. You are required to support the existing DTS cases, in order to avoid breaking things, anyways.