Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp478885img; Thu, 21 Mar 2019 02:16:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqwK/9CnNOYi1HS0GZQaDimqGxQwDL4PgGhb2QKPOGomCkd1XXIfmhhmfkOwsvCMSlbcz7v0 X-Received: by 2002:a17:902:8bc6:: with SMTP id r6mr2501669plo.235.1553159808830; Thu, 21 Mar 2019 02:16:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553159808; cv=none; d=google.com; s=arc-20160816; b=ayedb0erxmUXFss4Ty8cmzPrDxo/P2lFSl4SidM80ngu8s5iyBmgfaYqHiSQMT0ZY5 w2Qme2tCIgUkeIeJTvGEE46XfhDuOyNnmLpz9hRr2wo6PIDt1T0z7CEldiwdHT3tjwzS KTw6QQefGNFjZwmovdzWaa3VIkWQNgBtznvpyQZUnDId2B+L26P+A8KGXlFln0rcjGao BLt1U/mR22bLqlv+SiiFeMC4xFNDC0pe/HFKCR4rm8OorBTB0e/XbCQ+1qsaCS0PMfC6 PP/F0J/GzPN783B7E0ClIwcBSPZs3tPQVrS1+m7gzg2LxezY8qj5jHyplRx2EBmnzyFI tD1Q== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=u+iPjHfA8U0ZA7RIo6VN/RGtUdZCKdNdc0FxXP+Va0k=; b=HFxQkExsuUKNL5hPVA4XNNmUOx1UppFwsrF+/geCL45Hzvtv0tncLJLElq9OcNY3yH IJs/HaPT8ZdaHQLfZe8OX+4ersmsdDmDjybjje5LVyiMJm/qK22dXjozxFzRfrw1sem+ 1GiADKfrFARIiR6fWei2yxvStDBMCLoAgDHfmxf6Ma6Dj+q6Fz4cSXwlH4LDopSm/tME MNJ53dLs8BkhChRnpzcc5fDJ4A9KGhGDj0w4rCabWIlWsBNC4Pod59txNOVjw2sfbgxc X4oi1zoqfYTF6veQQEFiu/PBKwTv+agtZEoarh5BjHh6xczOIpDoQQX5jqGr/DAkcmIf TMgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1a45h0rY; 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 y10si3987694plt.287.2019.03.21.02.16.33; Thu, 21 Mar 2019 02:16:48 -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=1a45h0rY; 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 S1728104AbfCUJP7 (ORCPT + 99 others); Thu, 21 Mar 2019 05:15:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:41248 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727948AbfCUJP7 (ORCPT ); Thu, 21 Mar 2019 05:15:59 -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 7D19E218A2; Thu, 21 Mar 2019 09:15:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553159758; bh=wUKuAWU9MFbl1sZC/bY5wvmpAWFvPyw0E4/t4/I8rFI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=1a45h0rYIrvlFhRlOMO1B8kL+w0GDQBAal/l1XXtTggaPYuIkj8vX6e9CC90HBPhl hx8rsqSDI3LfiUVI1AijU7HQEPKWZ4qavRodyjPcb9CPYMTr9E+HNam2C1GM0Er39m u0N9aipC7xcwhCh2milT+XWCovBAj8cv8cqggoww= Date: Thu, 21 Mar 2019 17:15:31 +0800 From: Shawn Guo To: Peng Fan Cc: Aisheng Dong , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , dl-linux-imx , Anson Huang , "arnd@arndb.de" , "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: <20190321091530.GI12513@dragon> References: <20190313091757.16410-1-peng.fan@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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 Mon, Mar 18, 2019 at 02:31:34AM +0000, Peng Fan wrote: > > > > -----Original Message----- > > From: Aisheng Dong > > Sent: 2019年3月15日 21:39 > > To: Peng Fan ; shawnguo@kernel.org; > > s.hauer@pengutronix.de; kernel@pengutronix.de; festevam@gmail.com; > > dl-linux-imx ; Anson Huang ; > > arnd@arndb.de; linux-arm-kernel@lists.infradead.org; > > linux-kernel@vger.kernel.org > > Cc: van.freenix@gmail.com > > Subject: RE: [PATCH 1/2] ARM: imx: drop uneccessary > > of_platform_default_populate > > > > [...] > > > > > > Originally devices are registered in arch_initcall. Now it will be a > > > > bit later in arch_initcall_sync and this may cause a bit risk if the > > > > code under the default_populate want to access the device service > > > > provided > > > by early probe. > > > > > > > > Probably it's more safe to leave as it is unless you can double > > > > confirm there're no such code depends on accessing early probed > > > > devices as follows before we can make the change. > > > > > > This has been boot tested on 6Q-SDB/6UL-EVK/6SL-EVK board. > > > For i.MX, I only see pinctrl driver use arch_initcall from the link, > > > https://elixir.bootlin.com/linux/latest/ident/arch_initcall > > > > > > From my boot test, the pinctrl driver probe will be delayed a bit, but > > > I do not see issues. > > > > > > > From what I saw, imx6q_1588_init() and imx6q_axi_init() will use syscon which > > is registered with postcore_initcall. Without having syscon devices populated, > > I wonder those calls may fall. > > Can you double check it? > > I do not see failure in imx6q_1588_init by adding a return value check of > regmap_update_bits, But the imx6q_pm_init will find ocram device for > suspend usage, postpone the device population will make imx6q_pm_init > fail, so drop this patch and leave the code as it is. Ah, okay. Thanks for the careful review and the check, Aisheng, Peng. Shawn