From patchwork Thu Dec 9 06:59:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hsin-Yi Wang X-Patchwork-Id: 12695455 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 98474C433F5 for ; Thu, 9 Dec 2021 07:01:53 +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=BXVP6MgLplgr6Vgd3UOK/2s9nrcngMFJLbV/a7vp9y8=; b=CVhJGzksgNm7mZ Epx5chKnmteljvnOzCYq+bN8E4rewh2ujIktm1JSijOHyncTDG4tAz7YnOVGppvzyXqPQoHkfeTCn W47kdlzwCG0pPro8Rv8IwY/q1ZdUNYFsHHqNtxRf7JdMCYVwo4/d7bKruoAMd7qx7/IYDSwVOBTaL gVc3zOrl0ucv8hgBjleXcQ+doNx0f+kkjXAaP2usSgEcrAVsRLRMPFKsBVCmwe6XTFNW20tDhsBkL TvSOv0p+ysVfu4UW9eTgtPc472rO/1yvLxImWYT/X6QUP2ld/luwUgwfDEisD7x2R8y+c+MdfmjER +rc2M08aRyhE5V+csYKA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvDPK-00F6wP-AV; Thu, 09 Dec 2021 06:59:58 +0000 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvDPF-00F6vK-OO for linux-arm-kernel@lists.infradead.org; Thu, 09 Dec 2021 06:59:55 +0000 Received: by mail-pl1-x62a.google.com with SMTP id y8so3217291plg.1 for ; Wed, 08 Dec 2021 22:59:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=RW5/PiePPwGEbHeQax2XMoMOzVE/w5j3urPprFU4xj4=; b=JVbv4a01GSr23DKUbNzvViDTbkroOUJ87xix4b42EFQaiFa1zGzPOWqcwlrYW5vgLP 2ZGiJfe62HN460Hg51yFQcDuPG0SWbo/67FO3eJ1vwNyPZ+OeUXlPuupEXJAtnsZj0dS i2BZGWKeJrHSy0RM0ZGyNLL+bi05qB3ChyceA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=RW5/PiePPwGEbHeQax2XMoMOzVE/w5j3urPprFU4xj4=; b=Q67qIf0ESrn8i0Y+ZIU5qNriCipqIV4WuIIz7tqfO3kdnIvVgW1zYaNBAgxA69Ui2r qZCAbgHF4WK+YfPDOvI6m8bd4aqtFGPSgKlbZf7W/cRgIxgI87sHTgJJ2TIMrr2kKzWw APJiSAQNnPElvKp4rA6CBZyT8CEQpxWr4VJodVnSMOcu/wH0wVbnYZvV5K4xWKEBW4bA 2k9wR4XEemSW67CbXw4ZXzPEwu6/wq1RQIjaBcs9Lzj2JHVTYRWo0nijaCFA702CdKOf lFQi5ZkiA54PON8UdHpsA87mqN1zRSb/1hJnLOe2S7HVKh9w70heTIuxaNTAnOhIySAB NMug== X-Gm-Message-State: AOAM531qaMxUHsrkp+NPk7Ly3qncoZnl3PjlDkYix5R8pP3DvqYFTZRt 8Bvhw9f27z2FYRsyl4Ms1orpYw== X-Google-Smtp-Source: ABdhPJxslNIMXLet9RCsdKQS4VcDTdk1MoI3qUUFLzT/WUMx1UA0lI3LnVvI7Nvbp4pNWZtW8vIZ2w== X-Received: by 2002:a17:90b:33d0:: with SMTP id lk16mr13483577pjb.7.1639033192843; Wed, 08 Dec 2021 22:59:52 -0800 (PST) Received: from hsinyi-z840.tpe.corp.google.com ([2401:fa00:1:10:bc93:a930:2121:8bed]) by smtp.gmail.com with ESMTPSA id j4sm4463519pgp.58.2021.12.08.22.59.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Dec 2021 22:59:52 -0800 (PST) From: Hsin-Yi Wang To: Jassi Brar Cc: Matthias Brugger , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH] mailbox: mtk-cmdq: Silent EPROBE_DEFER errors for clks Date: Thu, 9 Dec 2021 14:59:48 +0800 Message-Id: <20211209065948.1796663-1-hsinyi@chromium.org> X-Mailer: git-send-email 2.34.1.400.ga245620fadb-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211208_225953_837685_4F44CA6B X-CRM114-Status: GOOD ( 11.47 ) 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 Silent the error if it's EPROBE_DEFER for clks. Signed-off-by: Hsin-Yi Wang --- drivers/mailbox/mtk-cmdq-mailbox.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/mailbox/mtk-cmdq-mailbox.c b/drivers/mailbox/mtk-cmdq-mailbox.c index a8845b162dbf..087fb7334166 100644 --- a/drivers/mailbox/mtk-cmdq-mailbox.c +++ b/drivers/mailbox/mtk-cmdq-mailbox.c @@ -573,7 +573,10 @@ static int cmdq_probe(struct platform_device *pdev) cmdq->clocks[alias_id].id = clk_names[alias_id]; cmdq->clocks[alias_id].clk = of_clk_get(node, 0); if (IS_ERR(cmdq->clocks[alias_id].clk)) { - dev_err(dev, "failed to get gce clk: %d\n", alias_id); + dev_err_probe(dev, + PTR_ERR(cmdq->clocks[alias_id].clk), + "failed to get gce clk: %d\n", + alias_id); return PTR_ERR(cmdq->clocks[alias_id].clk); } } @@ -582,7 +585,8 @@ static int cmdq_probe(struct platform_device *pdev) cmdq->clocks[alias_id].id = clk_name; cmdq->clocks[alias_id].clk = devm_clk_get(&pdev->dev, clk_name); if (IS_ERR(cmdq->clocks[alias_id].clk)) { - dev_err(dev, "failed to get gce clk\n"); + dev_err_probe(dev, PTR_ERR(cmdq->clocks[alias_id].clk), + "failed to get gce clk\n"); return PTR_ERR(cmdq->clocks[alias_id].clk); } }