Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2485408ybf; Mon, 2 Mar 2020 09:33:35 -0800 (PST) X-Google-Smtp-Source: ADFU+vsY2wIe//pGPxTqYzlQakJNYOvQ0Z1gTl0AKBcIw0At0Hoou+3CfL5eXjeHWe61Jmc2u5ZV X-Received: by 2002:a05:6830:1c8:: with SMTP id r8mr217528ota.63.1583170415818; Mon, 02 Mar 2020 09:33:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583170415; cv=none; d=google.com; s=arc-20160816; b=f+lcaJnjBRbaI1EzA8Wvkfzyt/ljoMeodVddUbUNmk0EOxS0L1hNGgB0nIWBEqKyDz rJvADiHvMCl2Gan4AumXXxkPZ8ifCAv1GzycT6DGo1GPczehreWfGMJG5TXXLHZBxPb+ jYHXFGXKNGNwWzcaHFa25x2E3dgHwWzp9rTFeUMQpb50CwuzpcTn+3TAA9xP57zRpOtG bkLCzCwzemNzcw9uG9Ah1o3G9x3sVG/nUptSXdMKDKvOjtNjIG+DkiTrw95Vaugc/DWd Lbnb9Kz2Fl9veEfR+hDAgxTluAVmvorcXH/neU9D5PABx5u4naLPbb/2YqH706sXdInl fzPA== 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=nceDhubgEx2PRo1oS71egJ8r44PsaL0PBb2aHnuBV9I=; b=oWTFSDFTVtcGmV6QR41MQYp+eIqj7DEh0gT0qOI47/Tu03hqkjXUrNG/oDPcbHJyZe OfTd726j24G26lnXa3TfOWwCxX/tTMdnT3i6IVkNr1iMVlVrC2R+Wn0DiF/eR8WhwJm9 3VNAOAoJod9yguAvZE4yi0+sR9VKlR12u13m9tpShAvKO8cfYHS0RF/Qp7GFNF5PppBw abX6IMbR27WxUyQQKfjDo/DH9xY6eOxd/aNMixgfO7JcK99dsUKcVPEDnWGC2sJHWQoE sMWgJd3w7usCi/MV3ZIqb/HQCYhi3/O3n8YryeOuCsEJkhNCTO1It4sU1lv+e/0ohmbd 0DTw== 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; dmarc=fail (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 w186si3344909oif.149.2020.03.02.09.33.23; Mon, 02 Mar 2020 09:33:35 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727384AbgCBRbr (ORCPT + 99 others); Mon, 2 Mar 2020 12:31:47 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:33071 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727075AbgCBRbr (ORCPT ); Mon, 2 Mar 2020 12:31:47 -0500 Received: by mail-ot1-f66.google.com with SMTP id a20so80661otl.0; Mon, 02 Mar 2020 09:31:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=nceDhubgEx2PRo1oS71egJ8r44PsaL0PBb2aHnuBV9I=; b=ssTHS2vNiRSr6ckobTQ9XZ6wQrsCnSTANQJ0Qz1/MpYkowb1TIQ8hN+OJy8oXmMCCT mMnc8VxCZxCJdCiU+0iPUtrAOCvH1kwBlKTsUkj+pUa8XyXFcuAiut1bjs/JOHQFo3wZ GM2Jsuhovd7htVPGlqse2Pc0LRmktNVDrPMwIppYWHGHzYcxsuLbG1MIy27fBX2knxdr pJUcDCwuROVKzFmxhjCNsYVHTx0Y/2YDR5Rd2yIkMD3v5+6Dc+Ypw1eRpe4chfoSg3mS pRkX1PU4sQqm1BwL97Rp9ZN4xOQSxVXxLbktNo+CBe6JVLmUx0m887/bImjWptAZ5xCc A/Tw== X-Gm-Message-State: ANhLgQ1QAylhsVQMb0sa6Bq3Dn/Le/tpSE9u2rCnRJwgzJwDXGPfXRZ7 PQDBv41hALnnWOk7VuMByA== X-Received: by 2002:a9d:6ad1:: with SMTP id m17mr236956otq.198.1583170306360; Mon, 02 Mar 2020 09:31:46 -0800 (PST) Received: from rob-hp-laptop (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id s23sm1523341oie.0.2020.03.02.09.31.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Mar 2020 09:31:45 -0800 (PST) Received: (nullmailer pid 13106 invoked by uid 1000); Mon, 02 Mar 2020 17:31:45 -0000 Date: Mon, 2 Mar 2020 11:31:45 -0600 From: Rob Herring To: Luca Ceresoli Cc: devicetree@vger.kernel.org, Geert Uytterhoeven , Pantelis Antoniou , Frank Rowand , linux-kernel@vger.kernel.org, Luca Ceresoli Subject: Re: [PATCH v3] of: overlay: log the error cause on resolver failure Message-ID: <20200302173145.GA13073@bogus> References: <20200228084027.10797-1-luca@lucaceresoli.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200228084027.10797-1-luca@lucaceresoli.net> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 28 Feb 2020 09:40:27 +0100, Luca Ceresoli wrote: > When a DT overlay has a node label that is not present in the live > devicetree symbols table, this error is printed: > > OF: resolver: overlay phandle fixup failed: -22 > create_overlay: Failed to create overlay (err=-22) > > which does not help much in finding the node label that caused the problem > and fix the overlay source. > > Add an error message with the name of the node label that caused the > error. The new output is: > > OF: resolver: node label 'gpio9' not found in live devicetree symbols table > OF: resolver: overlay phandle fixup failed: -22 > create_overlay: Failed to create overlay (err=-22) > > Signed-off-by: Luca Ceresoli > > --- > > Changed in v3: > - add only the message from v1, but as reworded by Frank > > Changed in v2: > - add a message for each error path that does not have one yet > --- > drivers/of/resolver.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > Applied, thanks. Rob