Received: by 10.223.164.202 with SMTP id h10csp14197wrb; Thu, 9 Nov 2017 01:51:01 -0800 (PST) X-Google-Smtp-Source: ABhQp+Qoum/hkEFrvT75zpbcG50DH4WiLRIKvWdguop7ohkUcXvRC6wkqvI8amAhBprtAb0WyAia X-Received: by 10.84.129.36 with SMTP id 33mr3345436plb.303.1510221061429; Thu, 09 Nov 2017 01:51:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510221061; cv=none; d=google.com; s=arc-20160816; b=Bx2wbQt2rmtkjzhg95SxG9PcBcB1VQUEJK+nXcAvkd9jvzWsvOekCaQ9qIKicuOf2M ii5A772vFN9IUivuPdmrbo8YDhtLksIehfMLUrhHFpl9Pvh9uoq1Zdtk/ZzRGK8uGpUU 9yhjUvZANeFfKZCU5WP9Plz2RSWx1dFU5U/1bXWIGystxJo9nd3GgcEZmr0oWNhi1oJy VoCfC25SG4rlibIBEmKx0jAIMZFpXctgdGz0/PNo0qP8L6QSlJIgZZT89UiDYa362RV+ 1qNrXKvH3HqPKpG3BT9oTeCayHLuk22l3oCx5EuLT75ygE4rAcwdcHuFAhoh8AqlCmPf rVEg== 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=Ke5vh/hVtnOy5XvBfl9eMvwrx+ZdbJyxf/elov6kceE=; b=x6nEsYes/560W+ZkODLNBL9/7OkuczOwQtILKtDQBBkvdJJL8ULrA8ov8sZ1A4AEKg Ux89t3eyZlVQ8zu30eX7/G9JXOdH/KyjI6hpiCryklaSQCRT1ReQUT9rBeZs4z4nhgyo hRnsIkTZUK1LSib/zufKGmeB3WjM4vPq5BjkoFOGG2PFlbaub/kc5mF3GYL0/ZMHqaJv WxIYpPhfff7HKG9qusIDuM1Qz2sOULi2LYSjjXlD8pT5HxmGJIN4JEwDWNQ7Cq88kwLa Cni4hdw93DdXb+FuSyJvSPjijesS6S8tXUnnXSCOou6i9wNf9nSVNJR1kqZs1M4F7U0/ zMZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MUpBPd5R; 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 b3si6283028pff.393.2017.11.09.01.50.49; Thu, 09 Nov 2017 01:51:01 -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=MUpBPd5R; 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 S1753515AbdKIJuI (ORCPT + 82 others); Thu, 9 Nov 2017 04:50:08 -0500 Received: from mail-vk0-f65.google.com ([209.85.213.65]:44486 "EHLO mail-vk0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752539AbdKIJuF (ORCPT ); Thu, 9 Nov 2017 04:50:05 -0500 Received: by mail-vk0-f65.google.com with SMTP id x65so3578373vkx.1; Thu, 09 Nov 2017 01:50:05 -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=Ke5vh/hVtnOy5XvBfl9eMvwrx+ZdbJyxf/elov6kceE=; b=MUpBPd5Rwt10aTU07vKW0V/x+hd8vm6M/tEwVq4Hc9V6B7VyjcDgSD1A/z0HJGb7G7 dQnLVcdUde9448LgD7K3Z6aBq3lz2gdQ7N2Pg4njXg+4ECN9b8K3/OzdfFEFvMRYdS6V PgmE3XmQUaD9rZEopgq6iWA+xaUigMUfSY7NBkSUc/5t1EHkPhtbq2Ua/MkTOa7FFQ06 f7z/vXh+ITC6FktmDsIad8qIaovdtHzo39GmzE/qKOe8CQGJUq52zIeHg0h06dPPGAyQ 99nQSRectXOYv0LK9liXOqS+BFtUIOQIcnJy7HZ0ApEDR86lRDA4dN8f1XYQwfXSvWym BGZg== 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=Ke5vh/hVtnOy5XvBfl9eMvwrx+ZdbJyxf/elov6kceE=; b=bgaZMXe9PEuxhtG5gho6sFvvf3vh2puUjY40R4Ai/E7LVJ2XlmNugasUaEFMKTy3BT 9tf6yucIslTMxtI2z8yCFuKDX4aKxQTWF1vk65WeOxtSIaNoID6oS+ApkMdjqnTkRw/9 UYZrXuv9z4jOZCCHasq5FrfeqeGdqt34Z5R0GgeLiKIidN3DSyRerLVZygECijOpXe1j YfA50x7sRdEPaXbbGuVV0EbdiugOU02y7RPc+Pn6zVSJoWX+r9ZFi2RenoUTFNNo8rP5 z7mhwsgpQdCKngL+1I9NCTVfXRacSYD7bRjw8gyxgZTHNjT1EpYwAOXCnAU6GyiDvCwj +OsQ== X-Gm-Message-State: AJaThX6CucwsaVGcYVJpEhziT6Pbmy9EZBnW8P7DlmTb8Rk8koGdAzAM rBh5WeC/bwYl0hCZNvQPJsz3c2w7rZJNzbth8j4= X-Received: by 10.31.170.142 with SMTP id t136mr2725887vke.198.1510221004957; Thu, 09 Nov 2017 01:50:04 -0800 (PST) MIME-Version: 1.0 Received: by 10.159.62.8 with HTTP; Thu, 9 Nov 2017 01:49:24 -0800 (PST) In-Reply-To: References: <5d06ac8d2a19c78a445b958a1b0a925559bd9f9c.1510118606.git.green.hu@gmail.com> From: Greentime Hu Date: Thu, 9 Nov 2017 17:49:24 +0800 Message-ID: Subject: Re: [PATCH 02/31] nds32: Kernel booting and initialization To: Rob Herring Cc: Greentime , "linux-kernel@vger.kernel.org" , Arnd Bergmann , "linux-arch@vger.kernel.org" , Thomas Gleixner , Jason Cooper , Marc Zyngier , netdev , Vincent 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 21:38 GMT+08:00 Rob Herring : > On Tue, Nov 7, 2017 at 11:54 PM, Greentime Hu wrote: >> From: Greentime Hu >> > > Commit message needed. Thanks. I will add more commit messages in the next version patch. > >> Signed-off-by: Vincent Chen >> Signed-off-by: Greentime Hu >> --- > >> + /* it could update max_pfn */ >> + if (max_pfn - ram_start_pfn <= MAXMEM_PFN) >> + max_low_pfn = max_pfn; >> + else { >> + max_low_pfn = MAXMEM_PFN + ram_start_pfn; >> +#ifndef CONFIG_HIGHMEM > > Use IS_ENABLED here and other ifdef's if possible. > Thanks I will try to use IS_ENABLED here in the next version patch. >> + max_pfn = MAXMEM_PFN + ram_start_pfn; >> +#endif >> + } > > >> +static int __init nds32_device_probe(void) >> +{ >> + return of_platform_populate(NULL, NULL, NULL, NULL); >> +} >> + >> +device_initcall(nds32_device_probe); > > You can drop this. The core code will call of_platform_populate for you. Thanks. I will drop this in the next version patch. From 1583505379406955528@xxx Wed Nov 08 13:40:10 +0000 2017 X-GM-THRID: 1583483485147725708 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread