From patchwork Thu Nov 5 02:54:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TWljaGHFgiBNaXJvc8WCYXc=?= X-Patchwork-Id: 11883043 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_ALL,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 94C6AC00A89 for ; Thu, 5 Nov 2020 03:33:34 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E74202078E for ; Thu, 5 Nov 2020 03:33:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="O8aElHCX"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="q1nsJ5Io"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=rere.qmqm.pl header.i=@rere.qmqm.pl header.b="fCjP2YRy" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E74202078E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=rere.qmqm.pl Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:To:MIME-Version:Subject:From:Message-Id:Date: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=/T31lrIHVTGo/PWSW0pfkvPsCiWUxJRo0Y7IXRDvnC8=; b=O8aElHCXkdGr27jPlWllmfbRcm 6XZ4/w+gv/ggMym4fG9zUMDH498wmL66a9/jYxKWATGZDJZF8tZqOmkwaZ4ybDQW4gOV063oqt3sH 1K8AFP3aVAFmpe4hE2unKYkdVwJ4j2FNXLhsL/r0uxlScSRuPaQ4UE9ZoNhX66QkA9L8AepJgqDF9 0KLAq9zioJbuX7DClYmvjRoS1Hc4tDrJ27usPlUyFi9pNxCXfgKqVw9Rhm/NEQO4UO8OvyaGOF8uI /VLyl+ivUgO240nyddIbnF9IOaJAdYcjlfwBmRB+xkclUo2Z7FkfbJ15NIrYu7W3tjLkWNJGA95Jj zT+m/NaQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kaW0z-0001L7-F0; Thu, 05 Nov 2020 03:32:45 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kaW0u-00016k-Mx for linux-arm-kernel@merlin.infradead.org; Thu, 05 Nov 2020 03:32:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Cc:To:Content-Transfer-Encoding: Content-Type:MIME-Version:Subject:From:Message-Id:Date:Sender:Reply-To: Content-ID:Content-Description:In-Reply-To:References; bh=1OhlmIH9QrTRD8Pq5vgwgPHSD8CQrMEzJoMH/8m+if4=; b=q1nsJ5IoTIyelbNAXTs9steD8/ l5yhK/FHnXniBYk2gDg0nzdVJuRmbgy88v4haQLwnU0GBbVyC5Hl5FM2PzaJGYOwBo5vE/AfLEKpo +mGZe7lT3DqKTow5EJxRoBgQcabbUCQcBcr9l5TkD0DZqPG9PfN5wMlfy+lbBRk0kh7kZGDL8JWm7 2w6K7sbf0EyCo1z5N1XgsgoCC1Z+Z5S8/1CvKeXIJ2UnUq+sWe0oLZM2gcGpXFJIFT04vZZ21F7AH 8mcrMRKyLjTanNqWlg6rqQK0DKYd0IiFTI/cN5h0M/6G6ZlcraRxUC/6/mZYqUhMPl8lrOKr+ZSln B/2ZvI1g==; Received: from rere.qmqm.pl ([91.227.64.183]) by casper.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kaVPl-00011E-LF for linux-arm-kernel@lists.infradead.org; Thu, 05 Nov 2020 02:54:19 +0000 Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 4CRSlg554vz8p; Thu, 5 Nov 2020 03:54:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1604544850; bh=Iju+iBATdmDfQ4OsSyAkY4bpLERQ5SJXyrehln6ZXhQ=; h=Date:From:Subject:To:Cc:From; b=fCjP2YRyVLi9HR9jvBZEGU69UoTDXSiAgzwssbTSnUbw4r7VdErU1NjD9MR9zGbOQ 0U44JjSICzkhByj3UHy1c3s52Rawdel+4+oHQDZ5TRiMwSxyCRCDa+/MPlGk9Go+m+ n+jmvPL8C7tJsxDamyo0IL3CasVR5PxRxNnvrnM6PGpYES5obL1sl6QcNOuPfA33Bm dGdvLNheiRNpNpzw69E6WeDGWs0DiRJ0kxzo8lXYQttbFZw4reVS7zh1pt1WMeRTOi 1DQsZJUnWsHokOFj6FHz1Nb6JBqhHM7j2ZObLm7yN6C43lqU3uds4mXVnUBDJ2VdUR 6vYdt7KuJakBQ== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.4 at mail Date: Thu, 05 Nov 2020 03:54:07 +0100 Message-Id: <7ede83e8d78414d8618e1044fd8fd11e8ed7a09f.1604544767.git.mirq-linux@rere.qmqm.pl> From: =?utf-8?b?TWljaGHFgiBNaXJvc8WCYXc=?= Subject: [PATCH] regulator: debug early supply resolving MIME-Version: 1.0 To: Ahmad Fatoum X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201105_025417_880500_86F62677 X-CRM114-Status: UNSURE ( 8.80 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: lgirdwood@gmail.com, mripard@kernel.org, linux-kernel@vger.kernel.org, wens@csie.org, broonie@kernel.org, Corentin Labbe , Pengutronix Kernel Team , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Help debugging the case when set_machine_constraints() needs to be repeated. Signed-off-by: Michał Mirosław --- drivers/regulator/core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 402a72a70eb1..c84e3b0b63de 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -5271,6 +5271,8 @@ regulator_register(const struct regulator_desc *regulator_desc, /* FIXME: this currently triggers a chicken-and-egg problem * when creating -SUPPLY symlink in sysfs to a regulator * that is just being created */ + rdev_dbg(rdev, "will resolve supply early: %s\n", + rdev->supply_name); ret = regulator_resolve_supply(rdev); if (!ret) ret = set_machine_constraints(rdev);