Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp476101img; Thu, 21 Mar 2019 02:12:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqwQYQsNX4nIURLLvrk1Gw/EsYnf6Lse+cMNMQu4hSZOghSrVyBzvLkoAlqbKgyDX7xFfRzU X-Received: by 2002:a63:ee04:: with SMTP id e4mr2384992pgi.310.1553159547477; Thu, 21 Mar 2019 02:12:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553159547; cv=none; d=google.com; s=arc-20160816; b=eTz5F/BZ2AD15qk6JTNhiRzkZE2Op9Hc7tpLIVXDnFX+35VQec01rFWMb59MpaBrI2 8O0NeLzq/KTo+H2mkIB4SD2lQLxxu8h3AzjKRDFaJEEyPSlncSnUUwGYRndEKgHWE+w+ 182oPsQQC4zC15IILPeO/lW28RfcQgi2QGsZ0AvCLPIZK0cHn4fCFLpAyRo7tHdBgNPj bEzhri53FJlRFMUcp98KHHkNmtCk4JFzi2C3BmYi7MwphW05pF5WRqar2jh4XNXWxE+R f0hhOyR7kllsTIxXOiw3G3By4XqcUolDrg7Gq4fe6rYO8kmjQcTt91pRDy0CyNM5EAoH c85g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=0vztV3LLxJ1o7DaMS2Pmhz7pKoH2V5j9fN3zHx0PM/E=; b=DqB9X+a2XwqXefsjkyW5W5dhcZNq5K0d+Y5UnKlSu5F+FwmisJlKVntro4pmd7YrSa iYcXRN43pwGy0PLwx19rFR6NRes1+AaEvp1fhv9umlBmrI66cLhGyKGnyBHQSNBpPpxJ apRAErXaBtZy58X2zCFHbIXobNSX4h9riTXQwAJu4ZNxCAu0DBmzZBIsVxpdVBSTbDi5 hQ7t0EQ/Q50En2bSBZlXoCEiOyGeHk6mQ2cdMl/+H+/xE4dmkjUL/uuB0OsphMnLbxEO ApXHkYDEaPzS6FuTyj3biSzV0jJAU2fEGf7LZk+qwdOAajB/KC/MuR2QKFIidzvKQlFB juDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Vsq7RpkF; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 4si4136312plb.395.2019.03.21.02.12.12; Thu, 21 Mar 2019 02:12:27 -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=pass header.i=@kernel.org header.s=default header.b=Vsq7RpkF; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728139AbfCUJLQ (ORCPT + 99 others); Thu, 21 Mar 2019 05:11:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:39086 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727948AbfCUJLQ (ORCPT ); Thu, 21 Mar 2019 05:11:16 -0400 Received: from dragon (98.142.130.235.16clouds.com [98.142.130.235]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A968F20850; Thu, 21 Mar 2019 09:11:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553159475; bh=28qAqVoFdBiu3V9bam+dmQS/oH4gOWAuy9KodkPpn9U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Vsq7RpkFJyT2Ik8keJi9osawTkLmwZYrZr608XjApAnaGUxtqL1ZRRNUiZJooms2P RHvzeSKTlKF0YuLYLvTXDa/2dmgQ5tO5s2G0BouvGgknl5RrbFDJxuUMmcrNijsw3m BhO0BOZ1W1VLHYTJ21at1Fn542g0cz1DoPYX6J3Q= Date: Thu, 21 Mar 2019 17:10:51 +0800 From: Shawn Guo To: Peng Fan Cc: "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , dl-linux-imx , Anson Huang , "arnd@arndb.de" , Aisheng Dong , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "van.freenix@gmail.com" Subject: Re: [PATCH 1/2] ARM: imx: drop uneccessary of_platform_default_populate Message-ID: <20190321091049.GH12513@dragon> References: <20190313091757.16410-1-peng.fan@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190313091757.16410-1-peng.fan@nxp.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 13, 2019 at 09:05:52AM +0000, Peng Fan wrote: > "arch_initcall_sync(of_platform_default_populate_init);" could be The code change looks good. But can you please mention commit 44a7185c2ae6 ("of/platform: Add common method to populate default bus") in the commit log, so that we will be more clear about the story. Shawn > used to populate the device tree, there is no need to call > of_platform_default_populate in machine code. > > Tested on i.MX6Q-SDB i.MX6SL-EVK i.MX6UL-EVK board. > > Signed-off-by: Peng Fan > --- > arch/arm/mach-imx/mach-imx6q.c | 2 -- > arch/arm/mach-imx/mach-imx6sl.c | 2 -- > arch/arm/mach-imx/mach-imx6sx.c | 2 -- > arch/arm/mach-imx/mach-imx6ul.c | 1 - > 4 files changed, 7 deletions(-) > > diff --git a/arch/arm/mach-imx/mach-imx6q.c b/arch/arm/mach-imx/mach-imx6q.c > index 7d80a0ae723c..655398c20256 100644 > --- a/arch/arm/mach-imx/mach-imx6q.c > +++ b/arch/arm/mach-imx/mach-imx6q.c > @@ -278,8 +278,6 @@ static void __init imx6q_init_machine(void) > > imx6q_enet_phy_init(); > > - of_platform_default_populate(NULL, NULL, parent); > - > imx_anatop_init(); > cpu_is_imx6q() ? imx6q_pm_init() : imx6dl_pm_init(); > imx6q_1588_init(); > diff --git a/arch/arm/mach-imx/mach-imx6sl.c b/arch/arm/mach-imx/mach-imx6sl.c > index 99be4225297a..9743bdbb68fa 100644 > --- a/arch/arm/mach-imx/mach-imx6sl.c > +++ b/arch/arm/mach-imx/mach-imx6sl.c > @@ -56,8 +56,6 @@ static void __init imx6sl_init_machine(void) > if (parent == NULL) > pr_warn("failed to initialize soc device\n"); > > - of_platform_default_populate(NULL, NULL, parent); > - > if (cpu_is_imx6sl()) > imx6sl_fec_init(); > imx_anatop_init(); > diff --git a/arch/arm/mach-imx/mach-imx6sx.c b/arch/arm/mach-imx/mach-imx6sx.c > index 7f52d9b1e8a4..19b9f2dd309e 100644 > --- a/arch/arm/mach-imx/mach-imx6sx.c > +++ b/arch/arm/mach-imx/mach-imx6sx.c > @@ -72,8 +72,6 @@ static void __init imx6sx_init_machine(void) > if (parent == NULL) > pr_warn("failed to initialize soc device\n"); > > - of_platform_default_populate(NULL, NULL, parent); > - > imx6sx_enet_init(); > imx_anatop_init(); > imx6sx_pm_init(); > diff --git a/arch/arm/mach-imx/mach-imx6ul.c b/arch/arm/mach-imx/mach-imx6ul.c > index 6cb8a22b617d..c57b9df791b1 100644 > --- a/arch/arm/mach-imx/mach-imx6ul.c > +++ b/arch/arm/mach-imx/mach-imx6ul.c > @@ -65,7 +65,6 @@ static void __init imx6ul_init_machine(void) > if (parent == NULL) > pr_warn("failed to initialize soc device\n"); > > - of_platform_default_populate(NULL, NULL, parent); > imx6ul_enet_init(); > imx_anatop_init(); > imx6ul_pm_init(); > -- > 2.16.4 >