Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4969244imu; Tue, 8 Jan 2019 09:14:54 -0800 (PST) X-Google-Smtp-Source: ALg8bN42iErry4FBldcJArn+07eQUNVr8TFgH1R+bfjnCPMIr+AGVitBaUmbiRWgsP1jxaLOgWGe X-Received: by 2002:a17:902:380c:: with SMTP id l12mr2503630plc.326.1546967694670; Tue, 08 Jan 2019 09:14:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546967694; cv=none; d=google.com; s=arc-20160816; b=ZQtmhiyxRwHybi8+LzjWfiCXTwk5kMIUcNriJN9hfFPiyVGZ6M6NFTsjppotyVY5/5 oNAV2ZnonX0CImbugfyLbrUo0aVbPsrFZ1gxl3xSrvRsnkrlmwFjfRiXmQ+T4z0jFbN8 Cpyi9baCQTOqpbA8CtjVlIXR0Il19N3qRw5+AhSjvmeydCP97jwMgaE0jpmVkRq+RmSt Iofru6HmP5ecswNGOWPoC29YLFM6Hld7AxbkrkjzoqEptqzYZzbNn3Ruu4FBfREQGfc/ AX4Qe/EwzxnHolyDKmFuyfgVD+81zP1tQ1aZyHrr9nINhMFb7Ca8Ij9jIF0EWvxIh6cP rLkw== 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; bh=bYHdXihxbcZn9kXyep0X7jgko/p2VddWFPjyMhNsZNM=; b=yokAmjJJSKSfCG9mBxnJHRG/KGK8sdsl5/qAfnEskFLcVh6fjd31SUXy5udcyA/np6 wWi1lc3YQ1/sPu4BetPyom/Ch5GeXyYAsOXWad+3HImvR0cnmQUFW1skpyKhZeBhC2Y9 I0oh6ugx1XO45s3sHNkYnfh9YMCj3YO3POw+BxI81LVp4I+MCip8Qjv5KLpL+pNFx3A0 0KWy9ynmwmdJEDWZRIUouYlxkcLx4oGrLpjf3dGWfre5XUrHEJyayTir5CMMroaD7tLf yl5zdyZ8TFcuhACB4x8hdaLXmKXLdnpRqV0in17F674NOxlENNvMaLGAzsz9CIwfI9cj ZQTg== ARC-Authentication-Results: i=1; mx.google.com; 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 j70si17946112pgd.138.2019.01.08.09.14.36; Tue, 08 Jan 2019 09:14:54 -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; 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 S1728746AbfAHPil (ORCPT + 99 others); Tue, 8 Jan 2019 10:38:41 -0500 Received: from muru.com ([72.249.23.125]:60692 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728403AbfAHPil (ORCPT ); Tue, 8 Jan 2019 10:38:41 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id D2E648080; Tue, 8 Jan 2019 15:38:46 +0000 (UTC) Date: Tue, 8 Jan 2019 07:38:37 -0800 From: Tony Lindgren To: JeffyChen Cc: Lee Jones , linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Subject: Re: [PATCH] mfd: syscon: Fix syscon name for device tree Message-ID: <20190108153837.GK5544@atomide.com> References: <20190108000558.54914-1-tony@atomide.com> <20190108001543.GJ5544@atomide.com> <5C34162B.200@rock-chips.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5C34162B.200@rock-chips.com> User-Agent: Mutt/1.11.1 (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * JeffyChen [190108 03:17]: > Hi Tony, > > On 01/08/2019 08:15 AM, Tony Lindgren wrote: > > * Tony Lindgren [190108 00:06]: > > > I'm now seeing the following error on omap5 during boot: > > > > > > (NULL device *): Failed to create dummy-scm_conf@0 debugfs directory > This log means failed to init regmap debugfs with device(NULL) and > name("scm_conf@0"), which likely to be called from of_syscon_register() with > np fullname("scm_conf@0"). > > So my guess would be there're more than one syscon dts nodes named > "scm_conf@0". Yup. > For omap5 and scm_conf@0, should be these 2: > https://elixir.bootlin.com/linux/latest/source/arch/arm/boot/dts/omap5.dtsi#L167 > scm_conf: scm_conf@0 { > compatible = "syscon"; > > https://elixir.bootlin.com/linux/latest/source/arch/arm/boot/dts/omap5.dtsi#L313 > scm_wkup_pad_conf: scm_conf@0 { > compatible = "syscon", "simple-bus"; Yes those are the one. > Maybe try to rename one of them(for example, rename the second one to > "scm_wkup_pad_conf@0"). Well the thing is that any valid node name should work here just like it does for devices. In this case the syscon instances are on separate inteconnect instances. So it seems that we should do something similar to what we already do in of_device_make_bus_id(). BTW, I was trying to patch the wrong function :) The right function to fix is of_syscon_register() for the dts case. Regards, Tony