Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp136745imm; Fri, 3 Aug 2018 00:34:57 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcJpghc6EZRMR2dBkwoAt5eUf0kptElo8x+P47+1Lpm6dAeBon4pB16+cxmt6wS8G6z4zlS X-Received: by 2002:a63:231a:: with SMTP id j26-v6mr2546186pgj.138.1533281697769; Fri, 03 Aug 2018 00:34:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533281697; cv=none; d=google.com; s=arc-20160816; b=cEWZKjbn6WeL5cx1PyoppBLQ4+ZW/rfGHOxB8B6gqqnH7Qk3BWJTmjtC4TnkO3zRse unCvHJui387nylHuqo/Ko92pFqJLHMCpyNSHG59WX7VNsKjbnjJU2AdonHorJeaT+Xl6 CtdeBjHFlmtGvZzNGtPhulJqrAj6IzqZZ49/9VkOeH8IYkDiStx24KJ2H+n33vnEgYVB fp11zRxGtIhRM7L2wYnfS7Z6zvTtC/lv9N1NpoziCbFtb0AeQj5qBxtHueJqjF2qL5tf HWrXmhBean76inmdVVHYS/q+z76WynfAAuybuq1cAI0/sk2ix1j+BANbHh8Sm4xbEpUi FBcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=dXq3w2gb/58hDs+sIXRAX+gbvZoOdADOlwDIbDxneI8=; b=yloeYUO1dcdt/P9DWFu5zq/B/kinyLCgYZkM81EvSrntmNKJxkm9pmvLKbBel0GXgI 66CPKIePqOZ4fPBACZc/LiHpxk7vlv9kCHWTw5lamtGpxs5/rMCGkCe/6LfyCeQfAqor /SeIl0TWvZyXhfbtTmYRmfqn1WDMDF9yKbC9d/Pq1H7t2uVaFH9tkkNNIvFMKDM+wnQi rKSlYaagqXwFUvlDXFNpav2rnMqXIv57L3S2rPncv3zBg8Yil6Z9gc6mjSZhGSFeZwlU keDO27JcaU5XP1GVmkhglGLVN5C5ppS63VhW2z40uro1RuvVcPEpKCl+sfKNsp7kJah6 Myng== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d30-v6si3347539pld.452.2018.08.03.00.34.43; Fri, 03 Aug 2018 00:34:57 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732459AbeHCJ2m (ORCPT + 99 others); Fri, 3 Aug 2018 05:28:42 -0400 Received: from mga14.intel.com ([192.55.52.115]:49377 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727957AbeHCJ2m (ORCPT ); Fri, 3 Aug 2018 05:28:42 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Aug 2018 00:33:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,437,1526367600"; d="scan'208";a="59394465" Received: from songjunw-mobl1.ger.corp.intel.com (HELO [10.226.39.42]) ([10.226.39.42]) by fmsmga007.fm.intel.com with ESMTP; 03 Aug 2018 00:33:38 -0700 Subject: Re: [PATCH v2 14/18] serial: intel: Add CCF support To: Greg Kroah-Hartman Cc: hua.ma@linux.intel.com, yixin.zhu@linux.intel.com, chuanhua.lei@linux.intel.com, qi-ming.wu@intel.com, linux-mips@linux-mips.org, linux-clk@vger.kernel.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Slaby References: <20180803030237.3366-1-songjun.wu@linux.intel.com> <20180803030237.3366-15-songjun.wu@linux.intel.com> <20180803055640.GA32226@kroah.com> From: "Wu, Songjun" Message-ID: <763bba56-3701-7fe9-9b31-4710594b40d5@linux.intel.com> Date: Fri, 3 Aug 2018 15:33:38 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20180803055640.GA32226@kroah.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/3/2018 1:56 PM, Greg Kroah-Hartman wrote: > On Fri, Aug 03, 2018 at 11:02:33AM +0800, Songjun Wu wrote: >> Previous implementation uses platform-dependent API to get the clock. >> Those functions are not available for other SoC which uses the same IP. >> The CCF (Common Clock Framework) have an abstraction based APIs for >> clock. In future, the platform specific code will be removed when the >> legacy soc use CCF as well. >> Change to use CCF APIs to get clock and rate. So that different SoCs >> can use the same driver. >> >> Signed-off-by: Songjun Wu >> --- >> >> Changes in v2: None >> >> drivers/tty/serial/lantiq.c | 11 +++++++++++ >> 1 file changed, 11 insertions(+) >> >> diff --git a/drivers/tty/serial/lantiq.c b/drivers/tty/serial/lantiq.c >> index 36479d66fb7c..35518ab3a80d 100644 >> --- a/drivers/tty/serial/lantiq.c >> +++ b/drivers/tty/serial/lantiq.c >> @@ -26,7 +26,9 @@ >> #include >> #include >> >> +#ifdef CONFIG_LANTIQ >> #include >> +#endif > That is never how you do this in Linux, you know better. > > Please go and get this patchset reviewed and signed-off-by from other > internal Intel kernel developers before resending it next time. It is > their job to find and fix your basic errors like this, not ours. Thank you for your comment. Actually, we have discussed this issue internally. We put the reason why we use "#ifdef CONFIG_LANTIQ" preprocessor in commit message in "[PATCH v2 08/18] serial: intel: Get serial id from dts". Please refer the commit message below. "#ifdef CONFIG_LANTIQ" preprocessor is used because LTQ_EARLY_ASC macro is defined in lantiq_soc.h. lantiq_soc.h is in arch path for legacy product support. arch/mips/include/asm/mach-lantiq/xway/lantiq_soc.h If "#ifdef preprocessor" is changed to "if (IS_ENABLED(CONFIG_LANTIQ))", when CONFIG_LANTIQ is not enabled, code using LTQ_EARLY_ASC is compiled. Compilation will fail for no LTQ_EARLY_ASC defined.