Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1738972imm; Thu, 14 Jun 2018 03:06:08 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKUTftFcrkasZ70PfXorHQzsJT8L+uu9NgoOihRNjf5XrhY8t6Y6wKfjz5LSBoiejOt3orB X-Received: by 2002:a65:5c89:: with SMTP id a9-v6mr1695697pgt.51.1528970768256; Thu, 14 Jun 2018 03:06:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528970768; cv=none; d=google.com; s=arc-20160816; b=HSxnsHBRE8433yPYV5zfK7ndZI1nDTxzJW4swYJJnlpK6t2KjTJMa2vuCiEWm0joxC dqcHeYSHabDbMAa6ww1sbnDu0bDp1WzvKSEFB6mfVL8LGCP6le6Rk9iXTmmdvVy9JpSU oSniBUWmaJgcxg1LBwXWSGRrb/Fe+Gk+GTsz+yx+cDCU0cqg69SGB/ptWhbPdkX+dSxY R5koQlBK5hFt8NdIlksUiyaEkkQBDmEJtuVgmg6WL9Zr8R6TbZ7wBHa0QfWib7+zZm+/ U3/5Vb19UUKZ1OT81epm9v60oegFP4BFVek5xjhAVHdE/yTmi3MOcEpDsifGzBuSplID Lvkg== 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=vodbzBKpJhhpe4g90mTwqzCE5CjR0xvzILkSUKy7L0Q=; b=CNjcYGib+8tdSEA/VPX02JyEm8sRGQrV1qXpk96keyKjDV+nwsE8N4L24mU0L4pYNT 0CltfNOIfA2iJmCUxs+IYrSJ27Nm7QKtt3c7HVu23d3hbwVPlyDUIsdwSCTFc9I8YVdL P6l+ncn8Reo/ymp+tADYxkXb/eJOErTkFZq5fHEy6pM8wqxeWTL0ZIQ1hfD7NkFWU8Kf ZsPz681DzN8srOEunGWtlKtLLz8V3SESRjd940I2M4EZrpfrIQldxnn5SHloLGfuo21X VmEWLegAGmb303+a6c2M4PoSlo3iwZ9Wy04gP4um96rpj9PEd+E7kxuVe4dsmLtN2DlE Z2lQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=uFYl72z0; 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 v66-v6si4177368pgv.57.2018.06.14.03.05.53; Thu, 14 Jun 2018 03:06: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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=uFYl72z0; 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 S1754946AbeFNKDn (ORCPT + 99 others); Thu, 14 Jun 2018 06:03:43 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:39234 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754910AbeFNKDl (ORCPT ); Thu, 14 Jun 2018 06:03:41 -0400 Received: by mail-lf0-f68.google.com with SMTP id t2-v6so2088244lfd.6; Thu, 14 Jun 2018 03:03:40 -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=vodbzBKpJhhpe4g90mTwqzCE5CjR0xvzILkSUKy7L0Q=; b=uFYl72z06Tow+SFEHzvDIeMKpYgz8lEHFq3Tjw5GKdQLWGancG0Rtb0M4joS/yNI78 GOfW5vUt7Ckz8MA1tkY7k9h5n1fiETCIuyLl/lyB8jkTKiPJNXLaeMLL9Ntl6gg5ZLUp zgV5PZOqwyrwvBYkh4Yxrwxuu81dA+HWLj2RzSfAkgfF/jsW2FYZYsJFb6BhzSgq2K2Q n/xazhuAgXdoplk//9rAri8q1fKc3KuLqJetKcpliQKlQ+aPKk5Ak2Ej7oy5jHjSNzcG zdIjnHLedItQkD9NSbDGYrwUNb0LmCJ2dxewOAcVH8HbavZo6zt1sAOlJyoVC3doi9QH cZDg== 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=vodbzBKpJhhpe4g90mTwqzCE5CjR0xvzILkSUKy7L0Q=; b=HW3FVjPCke0f/AsJI1kKapTxg9DITWyYQgfvPXjQ0YxEcqXKusSq6zaq+/hYSruIoC BxwsolWrljF+lo9Ma8sLZf8I0WUVo2CvMwO99ZGXtWx1oMNGOcBn3pQIoHL6/XYdNVEc uX6pR/B/KYitEc9acCQp7mUA1rmlLFd8OsJzVBMIyLbukocrC0lqIOpmrTw/3Swkwz1/ 6Z4WbZyTW511f5iHipatd++yFGu9UhghlhzEj6TrZpvKqJzadS6mt76l9r45GwI4fWCr WcXVJ6Bbt1+9Iw5JZVUgW21uYKbH7T3gikGYpOfOuJQWMzaCl+sjQWmWqG3mU6eRlMxX EViA== X-Gm-Message-State: APt69E3+Ek+hb7/2qHBWUcWgGsO1qn7yjF/PavFezR25WyBitK520lsL NA8TXTxA+LGfb7Dv5xzkyej99QzvqAblvikr3TU= X-Received: by 2002:a2e:5453:: with SMTP id y19-v6mr1234608ljd.11.1528970619879; Thu, 14 Jun 2018 03:03:39 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a2e:56c8:0:0:0:0:0 with HTTP; Thu, 14 Jun 2018 03:03:38 -0700 (PDT) In-Reply-To: <20180612054034.4969-2-songjun.wu@linux.intel.com> References: <20180612054034.4969-1-songjun.wu@linux.intel.com> <20180612054034.4969-2-songjun.wu@linux.intel.com> From: Arnd Bergmann Date: Thu, 14 Jun 2018 12:03:38 +0200 X-Google-Sender-Auth: e6NBsyed01hqbvTPE9y-orQf8xk Message-ID: Subject: Re: [PATCH 1/7] MIPS: dts: Add aliases node for lantiq danube serial To: Songjun Wu 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 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