From patchwork Wed Mar 8 18:46:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 13166317 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C5706C64EC4 for ; Wed, 8 Mar 2023 18:47:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From: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=2bq83w/LQCydVYTEzxdtXMGD+WDu5e8uhqry0fgY68w=; b=QlktPCW4S3KP4E n7lzHQfcXjB2gZfSK67eOhqKtM/WBZopi/BiipQ45av3u9noGofgPXY+QpJQNyFKz2YAeULcKGE31 CPC2c4wEbpr6myq7D+ikq0s8U7sIydpVJ+D6zdXLKQgGlLWUGdj/rX2EqEIs1RlJhY6GjFULfKxlx MpRXQQbzUKD1J7uF4Z8Jchur8Z/XbhKcnD5toJqvTn8E8jVDmaLrJIVkJhuP300pXZxy8Cg/3IVtg DIxy+yLw+eqnT5YHSUufNQ88nX5eCBdtNZjEcSqHZ7Af5slL2O0XBREJN5yvmo2yj+FzvVQvPPvQx pkH+21O7Kd4MaM1MdKTQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZyoD-006P9Y-5Y; Wed, 08 Mar 2023 18:46:41 +0000 Received: from mout.kundenserver.de ([212.227.17.13]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZyo9-006P8w-Qv for linux-arm-kernel@lists.infradead.org; Wed, 08 Mar 2023 18:46:39 +0000 Received: from stefanw-SCHENKER ([37.4.248.41]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MatZt-1q7ezx0LoR-00cTgR; Wed, 08 Mar 2023 19:46:26 +0100 From: Stefan Wahren To: Abel Vesa , Peng Fan , Michael Turquette , Stephen Boyd , Shawn Guo , Sascha Hauer , Fabio Estevam Cc: kernel@pengutronix.de, linux-imx@nxp.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Stefan Wahren Subject: [PATCH] clk: imx: clk-gpr-mux: Provide clock name in error message Date: Wed, 8 Mar 2023 19:46:03 +0100 Message-Id: <20230308184603.10049-1-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Provags-ID: V03:K1:l+FAs1mpJfR268hEJgY5XDzD9Ul/vUp0E/XeiPUFFMnqWuytiTY 2jhPF23J1tEoF7BnauHiBO6wh+ZIYSS+4dTLtmH/Jbs/wridXJLegHA0QqrfcKXEboHFoMU Cbn4eMiB31KKWGip8Qvugv7hY8huGpNSSj0Mlp9gptNL+IBHeLci0en6hDGqY0Myu116Xn2 iyQshkUS8Qk1cIunlhr0w== UI-OutboundReport: notjunk:1;M01:P0:LpvtYsa8VMA=;EC05rcyryY4iBFX6fb4Kcj60kq/ EhGeTiMJqmv1Zhq63u9LuvOgKJAKjkWAzu/n66AWUSFD8PmEtX4gtZlS+kNl4B+kVa/aik53G qlvbBv+gixGm2FyNET5jHYcWOKqpEgFhnev6KHbninfLASEpjtPYIj0NlJaEQZAGZn4vzRVyv c59B1bQ/sOubf1LRPCIAPtFIDEiQyufBYy6YwePjt1L3M/vjsr+lvgv6XlMg7KY3hgwG6kj+P ItY0k3tNHINw9idhWEZCFW6B8VeuiippjUWpkUzV+S0bw37njmUbC+FpnjxkORsm7AMNHVt6Q 7uSmAPzcO18vIlzChsuN0CHeiKBP2xtxe1gqfkXt/POsxQicGStrM/zAuN+ipeDgNL+9vBAr2 5mP2gBDj5CTMi5ZV2+0LVJo9RQJ+ENFXWktw3XTph34ac+TQgnyxunpsARjtU0rdZ53GUJQhM YJeVQj9qIuDZh698DhGnTSNjSq0bMU3znYjEuFBBFxsw+EWar0wV9ugEzvrDaocmGJVWo7mdo DngCSrCtQN6PiOluw4jEG8ddS98dvlX8fYZD2Ld4VSNn34FLs1EecujqFKHEOOj+3i/L6ir/7 rKKa6mCjnXVcrYon5S1RXG10r/gG2yCKf8+5OzXLN3up2YlL7J6hfu9rGyUZZvZ1437ZpmEOU +T1MUJ+jULJyKwDe6LEmHF5O1BIhcv3JKcsGd12bvg== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230308_104638_191992_62B76A6C X-CRM114-Status: GOOD ( 10.66 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org In error case the error message doesn't provide much context: imx:clk-gpr-mux: failed to get parent (-EINVAL) So additionally provide the clock name in the message, in order to simplify the further analyze. Signed-off-by: Stefan Wahren Reviewed-by: Peng Fan --- drivers/clk/imx/clk-gpr-mux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-gpr-mux.c b/drivers/clk/imx/clk-gpr-mux.c index c8d6090f15d6..0b5a97698b47 100644 --- a/drivers/clk/imx/clk-gpr-mux.c +++ b/drivers/clk/imx/clk-gpr-mux.c @@ -48,7 +48,8 @@ static u8 imx_clk_gpr_mux_get_parent(struct clk_hw *hw) return ret; get_parent_err: - pr_err("failed to get parent (%pe)\n", ERR_PTR(ret)); + pr_err("%s: failed to get parent (%pe)\n", + clk_hw_get_name(hw), ERR_PTR(ret)); /* return some realistic non negative value. Potentially we could * give index to some dummy error parent.