Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp50585imm; Thu, 2 Aug 2018 22:44:08 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc76CLWaMvrU/BJPBd9Id783CXzPmZIvB50EHWdHaK10++DfTb6PKT3Qe9pAn+EUDjrPSaA X-Received: by 2002:a17:902:262:: with SMTP id 89-v6mr2145706plc.221.1533275048469; Thu, 02 Aug 2018 22:44:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533275048; cv=none; d=google.com; s=arc-20160816; b=F0rxAD4FnfBOIGj//Vucya6kR6RDtx/9HM29ZFBDxtYnE8p4YuqBb9MNC6+EiMk9jb GK4zst5cV2fhYuCaolqWWWhAdOm8hfvA90kCUkbI38+JTnql4+1H5c1B+Z3C5IUNZ1wP 2NZfuOcyqQq3lRJV9jQk9UlaJZTZzWdujRZHoA6EecLmI8avSs/XQLOvvH6sCvbAHEDp l1OxMMKEfoH58v+goEEaa40VITDW0g+6iA551p+ibTY6PlNu09tU901oCNx98nZXgChZ uEsXVzQtmSO7Vi8GWjoAuTGu766SpM2fqSgha3VcXZzucFS9JLFAHfb59caxpvtnnCRt zgmQ== 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:arc-authentication-results; bh=cRjJsSXcgkNbrO4/z69ubohq8ydWa6/L2wDdUxHjTMo=; b=BeKjNAPI0qknmgTclf6omdi9plj67rLAVqlxBC4pgHoj6TVo9s/+b3IN2ET0I5fQqs hcZwiStAzzKb471FL9tTVfd/tfFZI1gIxL/PoVfMEr3y1/pCD0xlXwyR3msaGwvidcbA /BD8mnRXnnf/W7/TDMKpLwqrZ8DV9ErDI5CA8c399XSECh9zXMLauXKVdfil4S6QYtip Koz0gF4HRYJwAgABcW4lEStZ8FRfXn6X/rElJi/J7GcAVKiT4+mkzwjnNbDyPofWNHAu D2EDCFerTNSfIDMn4bJQORx0YVx4noPb+h7naIlOIMLEza4hi3zvj3I7SbhcQdWMaYim Y2lQ== 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 c14-v6si4466360pfl.319.2018.08.02.22.43.53; Thu, 02 Aug 2018 22:44:08 -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 S1727494AbeHCHho (ORCPT + 99 others); Fri, 3 Aug 2018 03:37:44 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:40604 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726719AbeHCHho (ORCPT ); Fri, 3 Aug 2018 03:37:44 -0400 Received: from localhost (D57E6652.static.ziggozakelijk.nl [213.126.102.82]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id B7B6D3EE; Fri, 3 Aug 2018 05:43:06 +0000 (UTC) Date: Fri, 3 Aug 2018 07:43:04 +0200 From: Greg Kroah-Hartman To: Songjun Wu 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 Subject: Re: [PATCH v2 08/18] serial: intel: Get serial id from dts Message-ID: <20180803054304.GA2214@kroah.com> References: <20180803030237.3366-1-songjun.wu@linux.intel.com> <20180803030237.3366-9-songjun.wu@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180803030237.3366-9-songjun.wu@linux.intel.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, Aug 03, 2018 at 11:02:27AM +0800, Songjun Wu wrote: > Get serial id from dts. > > "#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. > > Signed-off-by: Songjun Wu > --- > > Changes in v2: None > > drivers/tty/serial/lantiq.c | 19 +++++++++++++++---- > 1 file changed, 15 insertions(+), 4 deletions(-) > > diff --git a/drivers/tty/serial/lantiq.c b/drivers/tty/serial/lantiq.c > index 044128277248..836ca51460f2 100644 > --- a/drivers/tty/serial/lantiq.c > +++ b/drivers/tty/serial/lantiq.c > @@ -6,6 +6,7 @@ > * Copyright (C) 2007 Felix Fietkau > * Copyright (C) 2007 John Crispin > * Copyright (C) 2010 Thomas Langer, > + * Copyright (C) 2018 Intel Corporation. Your changes here do not warrent the addition of a copyright line, don't you agree? If not, please get a signed-off-by from your corporate lawyer who does this this is warrented when you resend this patch. thanks, greg k-h