Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3787488imm; Mon, 18 Jun 2018 04:10:55 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKAxT6uFbQHvkvXYRYNUzbAc4EGttTRz2Orq8cZQS3zLjidYsT2KcDdgvmD1Y21sPYGmfNf X-Received: by 2002:a17:902:e281:: with SMTP id cf1-v6mr13693160plb.86.1529320255396; Mon, 18 Jun 2018 04:10:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529320255; cv=none; d=google.com; s=arc-20160816; b=F5ZAtAVPgpta3lYefER60YzUUSCzmlX6FvldBbP2h/Roy4Sy8Xd2dJY89XWRK0dfX/ 7LxOdtd00OSu2ijptN2DYej8mPgqLPAjbEVQn2UeLxLZlW5ZXwR5cP7qqCuiH9cQz29/ Yr1GwAm8RwwDtT7BIFz5N+1g0lnP99Hot2704xvVel6zeu0ej7m/+ZI9WN3FhaZcN3M0 1qwxETOGRbfSbN0EuHP6TitXMZroLvd+9U+79T8+RoKbUKKu4UMk+ZGwtlnoRbVdD/En F2mQj/WZmKqzjY+biYsFKMtS7WkfdpjdnOQAL8X+O5y3S1qAre8k6ubWhQiDIaRyr20f PVmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=RqspwjyWW5d1MpGjILadsGerXh6vodVcZI2gsZCaqdo=; b=NzJ0t7gCO3ze3g5Z7LHFdBMygaCV5c0OzKoEEo1aU+9k9r6EhUrhu5Mf1gt8XBTjsD wHxbKFF/sQFK6cN9nKEAghtHS5EB8JGncW1s7PeljlPkF2WdOrfE6VrKn14y98Vpbe6g eHZB63L1xXU14DEUatkzqizKS1oidtOgQ5rsA9ZWjSfeMPgg/pIM1zgpq+AliPKd8aqr +gF6G3khYvgteP84q71xtBLFkuh9RSDfz783qvesZmdTl0D2sFSTbV2tT75L/aEtVO6V E7BfFqDj1m/evD1HHD9G+CWAY/OWHfiADJYhbWCx9YwiMefrBlOf1y2ZREzRSCA+cLjc DqRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=pCJlympP; 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 j10-v6si11791564pgq.503.2018.06.18.04.10.41; Mon, 18 Jun 2018 04:10:55 -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=fail header.i=@gmail.com header.s=20161025 header.b=pCJlympP; 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 S935707AbeFRK73 (ORCPT + 99 others); Mon, 18 Jun 2018 06:59:29 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:44247 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933605AbeFRK71 (ORCPT ); Mon, 18 Jun 2018 06:59:27 -0400 Received: by mail-lf0-f66.google.com with SMTP id p23-v6so12242603lfh.11; Mon, 18 Jun 2018 03:59:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=RqspwjyWW5d1MpGjILadsGerXh6vodVcZI2gsZCaqdo=; b=pCJlympPtgSmJqm4YVSEE05siiWyCLgTvJwL6m72jitgjwbMQ4+dag49K7BszhixYi 0T3leTIMjcXy0DN7Y5svJJyOjUBCKh66Tc+Zk0eqRG2AgTRuWR3c6vjtaZnfhRLTOQqN BO5zXdkGdydQdeMW7oryULbojFFLulpNmzZezENasb9DKk88NEjiiXnhrUbMY2IDD0A1 Zw2H8KJTjpuVd6NWUg7z59irfJtQ0Y1uNRCJ1+7P/hQv/SS9LGWxkfVuw+jogcdtqSjO ed1gWp4fgeGhObcAT8E63RvS3ToYpOMnnxoMPTxONnY4CsXei+BbdlSMJ+wdLkm6TJDm op8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=RqspwjyWW5d1MpGjILadsGerXh6vodVcZI2gsZCaqdo=; b=PQh8vKlK8HrIGIAbV3Dq2F+0e/D5FWC1vVaoSJ+afu85P3S9jZRWVMmINUOBS0wH0T efIJ6anqKQB9BCeyXXhinelaQEk/+R3/I50YB3YUVBWsQ3NR6NJgaMT3ges2FHA2YR84 Q6PWId5MH1Sw4lu2vOZ+JcoYPj68/0kgJ5KtnqxOZtCu+K4XLPz+yLYSYCfEnYXQ2EEL KyJwvWPqXPCynaTxKGI78Wseq6Q1vZxpGrckWOnghdmfFis/YVewbgX2v/JtSIIrjILb mhh+jVRJNO8eTtNLCsnUxbuynoFpeEUtMxQxmT5q52wkGdG2mHBoIKdJwkDMj5S3ZtbN DQoA== X-Gm-Message-State: APt69E23kx73r+t4+j1Nb+0L9uL1XdK6MfQy8fuIOAqB2xDqVgj7AN7N 38qMPY1eWYnpOIw0/D/eGx9N7BGbGOTgfHMELwc= X-Received: by 2002:a2e:40d9:: with SMTP id r86-v6mr7852423lje.19.1529319565609; Mon, 18 Jun 2018 03:59:25 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a2e:56c8:0:0:0:0:0 with HTTP; Mon, 18 Jun 2018 03:59:24 -0700 (PDT) In-Reply-To: <539411c1-82b7-cf76-71cf-d50f3303f50f@linux.intel.com> References: <20180612054034.4969-1-songjun.wu@linux.intel.com> <20180612054034.4969-2-songjun.wu@linux.intel.com> <539411c1-82b7-cf76-71cf-d50f3303f50f@linux.intel.com> From: Arnd Bergmann Date: Mon, 18 Jun 2018 12:59:24 +0200 X-Google-Sender-Auth: gu4KI2rTFfqxs5zpg0x6cE7uD9o Message-ID: Subject: Re: [PATCH 1/7] MIPS: dts: Add aliases node for lantiq danube serial To: "Wu, Songjun" 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 18, 2018 at 11:42 AM, Wu, Songjun wrote: > 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. >> > > In this chip only asc1 can be used as console, so serial0 is defined in > chip specific file. This was a more general comment about 'aliases' being board specific in principle (though we've had exceptions in the past). Even if there is only one uart on the chip, I'd recommend following the same conventions as the other chips that have more than one uart. Arnd