Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3708291imm; Mon, 18 Jun 2018 02:43:13 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJUitf16iQAYM2ogSkFyRjVZURom7SgjTyAuZmT06d4UAadPyitbKSH1qE4UppJ6DeH0x/t X-Received: by 2002:a62:1fd6:: with SMTP id l83-v6mr12872193pfj.182.1529314993344; Mon, 18 Jun 2018 02:43:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529314993; cv=none; d=google.com; s=arc-20160816; b=dhQfqNLRWZ9zoROsZPX/y9ASLIsjaJHL7KGxKD09ut+iRIPeAla52W9QPCg6JayxjE iUuK1z/ftPCFZLQZfpwhsVq8SmOREuExNw7tPy4HeYoRVIZ9qkZc0ni9JQqjzSrn88Cg cKbQ37ZkoLImwxwhjOuj+if4xiVSYHFWmNbMONiw9TLH5J5QccoasaLhMAIf9gA2582B UjuhFYlEFgl05bljb4Ih4mcKDThVaVW5IWuRqdE1XxxMvEwImizMAliDS8cm6cwuSM7k G0rKbHr6DZ3aper+4g4ZXmhUVio5BPdxMd+D3GaGVpIKwoJp4nlWNEN0N75BLObbxo4u 1tOA== 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=6cDycXE/bkJpkxK6TCxxv5BrA+cJ+wEp9FjQ8OgXNP0=; b=t0R9dmA4mg1A2kU6sAoWEy408/iwMrsIbi7oeH0cUSojD2KlmKFeYoJeD3JAepT4zo M59DGvOGC7mEKtyapadPjj7cgq8d1PupUew1CZC1cUP6mG0w2W7HB89FWWs2S4FltGr+ wHPq5ufCxWjRRJZ6nzOwychNJ5hGWl7MYo5fpPPqB3QGzXBFJJ1ZhAGCDN/d+yXF0hpZ VS28UX3l7/+v/OVzbEho/ifuzQOOeWvmN6rSd5+4vhJ5sQz+PQnbDa6JKt4ESl+klV2R UtHa1fDZTexwLbXS83DXYjV5RFPkGxKd/jkyfdNFRW7Omtb+XaXvpnRIL4HtZ8dBZjXk k0DQ== 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 i83-v6si14400234pfj.190.2018.06.18.02.42.59; Mon, 18 Jun 2018 02:43:13 -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 S936042AbeFRJmX (ORCPT + 99 others); Mon, 18 Jun 2018 05:42:23 -0400 Received: from mga07.intel.com ([134.134.136.100]:60351 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935884AbeFRJmT (ORCPT ); Mon, 18 Jun 2018 05:42:19 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Jun 2018 02:42:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,238,1526367600"; d="scan'208";a="58489031" Received: from songjunw-mobl1.ger.corp.intel.com (HELO [10.226.39.15]) ([10.226.39.15]) by fmsmga002.fm.intel.com with ESMTP; 18 Jun 2018 02:42:14 -0700 Subject: Re: [PATCH 1/7] MIPS: dts: Add aliases node for lantiq danube serial To: Arnd Bergmann Cc: hua.ma@linux.intel.com, yixin.zhu@linux.intel.com, chuanhua.lei@intel.com, "open list:RALINK MIPS ARCHITECTURE" , qi-ming.wu@intel.com, linux-clk , linux-serial@vger.kernel.org, DTML , James Hogan , Linux Kernel Mailing List , Thomas Gleixner , Philippe Ombredanne , Rob Herring , Kate Stewart , Greg Kroah-Hartman , Mark Rutland , Ralf Baechle References: <20180612054034.4969-1-songjun.wu@linux.intel.com> <20180612054034.4969-2-songjun.wu@linux.intel.com> From: "Wu, Songjun" Message-ID: <539411c1-82b7-cf76-71cf-d50f3303f50f@linux.intel.com> Date: Mon, 18 Jun 2018 17:42:14 +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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/14/2018 6:03 PM, Arnd Bergmann wrote: > On Tue, Jun 12, 2018 at 7:40 AM, Songjun Wu wrote: >> Previous implementation uses a hard-coded register value to check if >> the current serial entity is the console entity. >> Now the lantiq serial driver uses the aliases for the index of the >> serial port. >> The lantiq danube serial dts are updated with aliases to support this. >> >> Signed-off-by: Songjun Wu >> --- >> >> arch/mips/boot/dts/lantiq/danube.dtsi | 6 +++++- >> 1 file changed, 5 insertions(+), 1 deletion(-) >> >> diff --git a/arch/mips/boot/dts/lantiq/danube.dtsi b/arch/mips/boot/dts/lantiq/danube.dtsi >> index 2dd950181f8a..7a9e15da6bd0 100644 >> --- a/arch/mips/boot/dts/lantiq/danube.dtsi >> +++ b/arch/mips/boot/dts/lantiq/danube.dtsi >> @@ -4,6 +4,10 @@ >> #size-cells = <1>; >> compatible = "lantiq,xway", "lantiq,danube"; >> >> + aliases { >> + serial0 = &asc1; >> + }; >> + > You generally want the aliases to be part of the board specific file, > not every board numbers their serial ports in the same way. > > Arnd In this chip only asc1 can be used as console,  so serial0 is defined in chip specific file.