Received: by 10.223.164.202 with SMTP id h10csp583218wrb; Wed, 8 Nov 2017 23:23:50 -0800 (PST) X-Google-Smtp-Source: ABhQp+Rrua++MXx+toPHR72n6rlyiSvPfQXxZLRDujOh7HDH1e9VA6Icb89mSRLuF+NmSn5g+QNE X-Received: by 10.159.197.11 with SMTP id bj11mr2970758plb.354.1510212230108; Wed, 08 Nov 2017 23:23:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510212230; cv=none; d=google.com; s=arc-20160816; b=dz0G0J+zZWVUFxKnN/pPfT0UGPuydJwfmulmxh3mGPn4ixRf0AtFx7YnG6pLzHq56u vQrxfMqNSxqkUNsMKo2+2bw5wyor1Eww3RK0hjp1+M1L+8RZc+qtzVXs04hKxStlXQnq 6yt37+Jd1MuweJJt9d9CxHU5DcHLY/PMVjxQyCaMKItMCgg888YsTEJ+NBY6l3Hn8myc ePyKqrxXFpk8EhApN3fnfz3DtCHZO6n0bD13Q3HaTkhPgP8MtMZ800BRYUWWs2KQQSZp zZJOef5fBKvxDX5Ksi/8RVI07hegSZlx+sKlnJS+XQ1udstn6+LYc2gQzu8mtpo9LH9e sbog== 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=bQFMUDe9V5H0ttYpdhxf1PsbrbWLv19epUr16E/DQ5g=; b=ZtlJrLPv76xfldm+QZv09cAGgVZbvKkQY0aNSmQvw9Y2mduGZ5EETSxOPuAjmIJuma hIKLgNRB+m3lUTxPklifOFf+eNiG8hDfv5ko9FUX9fLHVktZc52OMQILPn8EmMatFzat Jo6okQYcY/8ltc7A23JYkYcBbUyvE550gVXpvHUtBB+t5/pntCQtKLmc2AxCAOTEDjEl eRsexz6P/bX5018WokM7HdvdN2otSQZ5fhcSl+m0dPFq0yrE70QrBpaQc6tXLnatsERu ZRkgMSOZaeAU3rcK0kNI4LeEIcD9sKy84vEbSWqSqzaCKmUU4gzPX1OADzhePygw8Bvt HDQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lY5JHiLt; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m25si5827535pgv.560.2017.11.08.23.23.39; Wed, 08 Nov 2017 23:23:50 -0800 (PST) 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=pass header.i=@gmail.com header.s=20161025 header.b=lY5JHiLt; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752783AbdKIHWc (ORCPT + 82 others); Thu, 9 Nov 2017 02:22:32 -0500 Received: from mail-vk0-f68.google.com ([209.85.213.68]:53937 "EHLO mail-vk0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751120AbdKIHUj (ORCPT ); Thu, 9 Nov 2017 02:20:39 -0500 Received: by mail-vk0-f68.google.com with SMTP id k195so3348246vke.10; Wed, 08 Nov 2017 23:20:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=bQFMUDe9V5H0ttYpdhxf1PsbrbWLv19epUr16E/DQ5g=; b=lY5JHiLtabGDDB/YYzxSt6gKErMJJHE3lRCKvIuJE0gV2yC8OTRNCKpq6iVUKLd9yv 0Ow5KCR5cfp4wlDPdeHd67iZtzmbSdA5f5U79Cv4C6J1w39sIuxPG4jIVQkKu2iI38GH quIaUCk6wPzNMySgYCVDujuNqzH3TwbVlu/DoMbGH6NOvu7NjppOykDgRT1Gl4JLjUdz RKX44f730FZ9eywgFkT3RJqIp72Lfjk/l+MroZfZNpa21lAuGVZbZLqokrlHbzxfQAL5 /qyJqoneH/DODG5lj7AHnpBMvNsNTAZPmRLREDyjr/NiJO9PqDFoVQdP3Eumhtc1rywO PUYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=bQFMUDe9V5H0ttYpdhxf1PsbrbWLv19epUr16E/DQ5g=; b=VEXKxy93emTnTdck67TA5uW6W7X5GCPgF2AxXTGfS44X4QycrQw5Qpo7TJPxbz89Ac 2cyeeiVRm6pxk2P1YZQauoMfYh90xr46/PnB8pE64zh8MYwei39KMsRhg+CgTBTOU89U bkbzjamLWIfsupkWJbctM/zD7nv8hB/Q4cc+HyF0q0HEQsrbZS//lC6m/o6Lei6DmI6Q 0AZRnkZ21H0TUWjGMyVSoIQm209P0F/7ZVd29G0ecrU2XPlY/QMUnwOlNFTmldznP8r6 vpSBXr6qjs4ae+lx+bEmNzhqMWN5FTapTMdpizUNGf0yp142TpeILjA38ghKMRXo1IRt naCg== X-Gm-Message-State: AJaThX6tYGa9hspmC+R5qtP7JpYM2ZFgV76t2CyT8ahFQAnnj3jRSz7Z nRo+o/bYdAYmQyTCXRcuzMMcqWp9TP/7pznqtS8= X-Received: by 10.31.69.209 with SMTP id s200mr2349904vka.188.1510212038348; Wed, 08 Nov 2017 23:20:38 -0800 (PST) MIME-Version: 1.0 Received: by 10.159.62.8 with HTTP; Wed, 8 Nov 2017 23:19:57 -0800 (PST) In-Reply-To: <20171108094705.GK1370@distanz.ch> References: <20171108094705.GK1370@distanz.ch> From: Greentime Hu Date: Thu, 9 Nov 2017 15:19:57 +0800 Message-ID: Subject: Re: [PATCH 03/31] nds32: Support early_printk To: Tobias Klauser Cc: Greentime , Linux Kernel Mailing List , Arnd Bergmann , linux-arch , Thomas Gleixner , Jason Cooper , Marc Zyngier , Rob Herring , netdev , Rick Chen 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 2017-11-08 17:47 GMT+08:00 Tobias Klauser : > On 2017-11-08 at 06:54:51 +0100, Greentime Hu wrote: >> From: Greentime Hu >> >> Signed-off-by: Rick Chen >> Signed-off-by: Greentime Hu >> --- >> arch/nds32/kernel/early_printk.c | 124 ++++++++++++++++++++++++++++++++++++++ >> 1 file changed, 124 insertions(+) >> create mode 100644 arch/nds32/kernel/early_printk.c >> >> diff --git a/arch/nds32/kernel/early_printk.c b/arch/nds32/kernel/early_printk.c >> new file mode 100644 >> index 0000000..269c3cd >> --- /dev/null >> +++ b/arch/nds32/kernel/early_printk.c > > Could be implemented using earlycon (the 8250 drivers already supports > it) instead of duplicating functionality in arch/nds32? See e.g. the > nios2 port for how this could be done, specifically commit e118c3fec9c0 > ("nios2: remove custom early console implementation"). Thanks. I will try to use earlycon in the next version patch. I will remove this patch if earlycon is able to be used in nds32. From 1583490813232785189@xxx Wed Nov 08 09:48:38 +0000 2017 X-GM-THRID: 1583483512506029402 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread