Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3881148pxb; Sun, 24 Oct 2021 13:43:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYiPgGQp9BNPmUW1vETUEA690HB0xJ7F9N+qDWu/eK2F4t5PTZ1l4IiX/WTEJsnR7u4KH5 X-Received: by 2002:a50:e183:: with SMTP id k3mr20670733edl.22.1635108188307; Sun, 24 Oct 2021 13:43:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635108188; cv=none; d=google.com; s=arc-20160816; b=DcOGj5OoaV2AJ6N2ZD/9Dz2g6Rc2dPmi5VEQm69XXKzjEmbNwlN0H6Xd7PIC4PjovX 8hkMXgDxe+6PrN3InKX+sFPG47CLp/zYJrxTA/7X0jvTCsaxVDMPe6O4MT+iGrxzKt6P oszIhJCU6Hcy6nMCHisrcft4n5oS8bvLVdZ3x5vWpHacrLPCzm03uRRYD8+1dH+rLlC/ eQMrzXrHvrWXMoFoptHfEFs4zguffVU61WrkKnqnfkD25qvs2wwUY9Y1OIy9zvDuYi5K kbWFJhA70Yn/fA4OqTaLuWkh6j6CQZL7OQXnxc7NPFiDjxy8l2GkYJK60DqGAppC6e3x 0Z0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=8O9gkYAmFcVK2IsDTWyn2VcW39mplgtD5t4PDmHXu1U=; b=xLG6aKcV/YyQ+7+OAk1dEU7eh7/pgJLZIyz85QGnH5EqaGD2hGkbxcEuTMV0PXbcYy mybcAeGA+EWJbBWI/kuK9PccAAzy2RdLJAHUZJAiJWPQUx3Lp+Wn3UM0xyaTNwyYsPKT ex35gOcON67RcawRTfIchswjockVSIw9xMhaLqhVBIiN1eKGjFwxhUXj3yfhfE/VXgGH 20lhb+XEMKBdcBTkusCT7N0AUgv+TQ62VAYrCExXJVXsZnC3fHaJC8ZZURY7EJIamRd0 qz69MUPN2jccB+j8ruHO+ynuQjv2w6fzldffM5BREz4vcr0bo+yh2GUg98comLXb0sHS KlHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=nSaHE3Dk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dd9si15554439ejc.757.2021.10.24.13.42.44; Sun, 24 Oct 2021 13:43:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=nSaHE3Dk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231969AbhJXU2t (ORCPT + 99 others); Sun, 24 Oct 2021 16:28:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231872AbhJXU2p (ORCPT ); Sun, 24 Oct 2021 16:28:45 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AE26C061745 for ; Sun, 24 Oct 2021 13:26:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=8O9gkYAmFcVK2IsDTWyn2VcW39mplgtD5t4PDmHXu1U=; b=nSaHE3DkXdmeZ1O0lor5XmoZPe AW5ZCFNAxuvaGwR9xicRQr5bwZzNSKltIJlzzKIfb2B41sFIiWKNLHMxaykVDRj1MhManwnqgrj/S x9ZQedtZPEiyRNOygnlTPudecxV3ArZrm3/abUvlXCE5ztjj0qNfwUwjLOdeaytVsz4+BQmuUtfKu IfshdYkYPo3di9x0o2/Dswha1avGXlmWtX9n1EQwYW5XDl8OuvEs3VIR+MXA4vtI6SMeI7B4nhLi/ bCUHBXPGkqMQcySiXD1C4DcC1niCP7nlV+Bx4tLMqyIEP53flEsPKfa2yZXIi/Rn42ghwVnMeRJf4 FofPugpg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:55272) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mek49-0003Y2-8V; Sun, 24 Oct 2021 21:26:01 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1mek46-0003JU-0B; Sun, 24 Oct 2021 21:25:58 +0100 Date: Sun, 24 Oct 2021 21:25:57 +0100 From: "Russell King (Oracle)" To: "jason-jh.lin" Cc: Chun-Kuang Hu , Philipp Zabel , Matthias Brugger , Jassi Brar , Yongqiang Niu , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, hsinyi@chromium.org, fshao@chromium.org, nancy.lin@mediatek.com, singo.chang@mediatek.com Subject: Re: [PATCH] mailbox: remove the error message when gce clk is defer Message-ID: References: <20211023164831.25690-1-jason-jh.lin@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211023164831.25690-1-jason-jh.lin@mediatek.com> Sender: Russell King (Oracle) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 24, 2021 at 12:48:31AM +0800, jason-jh.lin wrote: > Remove the error message when gce clk is defer. > > Signed-off-by: jason-jh.lin > --- > drivers/mailbox/mtk-cmdq-mailbox.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/drivers/mailbox/mtk-cmdq-mailbox.c b/drivers/mailbox/mtk-cmdq-mailbox.c > index fd5576a9f8b4..684b8aa1e445 100644 > --- a/drivers/mailbox/mtk-cmdq-mailbox.c > +++ b/drivers/mailbox/mtk-cmdq-mailbox.c > @@ -577,7 +577,8 @@ static int cmdq_probe(struct platform_device *pdev) > snprintf(clk_id, sizeof(clk_id), "%s%d", clk_name, alias_id); > cmdq->clocks[alias_id].id = clk_id; > cmdq->clocks[alias_id].clk = of_clk_get(node, 0); > - if (IS_ERR(cmdq->clocks[alias_id].clk)) { > + if (IS_ERR(cmdq->clocks[alias_id].clk) && > + PTR_ERR(cmdq->clocks[alias_id].clk) != -EPROBE_DEFER) { > dev_err(dev, "failed to get gce clk: %d\n", alias_id); > return PTR_ERR(cmdq->clocks[alias_id].clk); > } So when you get -EPROBE_DEFER, you omit the error message _and_ ignore the -EPROBE_DEFER. Is that really what you want to do? -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!