From patchwork Mon Dec 13 07:05:01 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: 12695817 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 BDFA3C433EF for ; Mon, 13 Dec 2021 07:06:38 +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=Cg+ZRQdwzA5TQ4BLjgt8zI6cr0Plo9H+k9P0NRK4G9M=; b=p73OkZgtiVmTzd /9eOmgva7+Wwngg/ZADjjhamGv5lApnDhGKEc5AVxsZVLXN/8DQzSq3kSK35Ct47BX2Hwa6+Ga7lN QmsagaRYq0fcgTdXmflmIh4oWeib4vj/6QjPwJEirbqfHoIyA6YoubfTJAJ0150QNIwOu/LWQOFyt 4NQ3Ra7qHH7+2XYUIkhq7Iz/5Pr4X563BFmkzi4zEogkL7r36UkQh4KBL5U4qgK8k5LdnunISg0JQ NgxONCkQRf+biptHupZDzQIP+CWJJkwg8HVy5661ABR8Gbuq7DWQ1xwjLWMIQguv8SfR0JnNMe44s T2JgpDqZzwRMBLRmQ2Pw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwfOf-0080xy-Du; Mon, 13 Dec 2021 07:05:17 +0000 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwfOb-0080wG-3t for linux-arm-kernel@lists.infradead.org; Mon, 13 Dec 2021 07:05:14 +0000 Received: by mail-pj1-x102c.google.com with SMTP id j6-20020a17090a588600b001a78a5ce46aso14004424pji.0 for ; Sun, 12 Dec 2021 23:05:12 -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=m/kc7ebJlnLqfaZVU4eMOkFHSZDqfSXCTb3+LTn6SwU=; b=LShxVAZyIyqYus7DPwCbQTlPaaUHZLiGxYbFJH10V2CQ1IHefDJR6+7Fo49/Qzh6AU Lbw76mOSk/+soRdakEt0fsh8z0H9XwL21N9buUkkH8K50PN+8cDX4wcvo9eT4Dt9MGJW Ej0LzjYq6a6JUzQ9qzY5r/Yhavs06Cs6ltLCw= 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=m/kc7ebJlnLqfaZVU4eMOkFHSZDqfSXCTb3+LTn6SwU=; b=EzN9xkQ0+0HoVW/43oInfNVeBhK4YGD8BsjmvME5l3Xr2edBDwhScBZixZ+UwZwdX+ f2DIhBpVcesMCOLYy31AZ46xxF9L9ZpBT6SgO14KjfhY1M9SfFvfaAurqV7IDJXXqIjH v6vj1ArR4ofTCyvKQfHZNlEjyQqkaQDZ9s8dpi5AZ+IZOiG/b7Rxl7tpr/CfF70d88ly Wi8Ml4lBq9rNb8q+UMtTCK0xSxDJXKH+9WWg/aR02jbRKK7GKJUPoPiNmBcICRhleZ8F GytS4yZdHi2l0zwWxp/FrkaauZzEZ+2BKiGt3ddHBYr/0QFcGcxaE4IgXokjbgOqBjB1 WkKg== X-Gm-Message-State: AOAM532eepljEmtMmIa05Cv2I1psQfe/6TcWqZne1phJZ1ScKXZ/KkOz UIkakfZReuQTB0NaltVTFj0WwQ== X-Google-Smtp-Source: ABdhPJw5eN9BL11bnpjH2Litra/spgqz7gb1zNDlZ8DD8NBRQ5q5FEL8J+LhSLy30C37bExPbUB0QA== X-Received: by 2002:a17:90b:fd5:: with SMTP id gd21mr43377175pjb.37.1639379111712; Sun, 12 Dec 2021 23:05:11 -0800 (PST) Received: from hsinyi-z840.tpe.corp.google.com ([2401:fa00:1:10:9447:edff:ad23:1bfc]) by smtp.gmail.com with ESMTPSA id k5sm5079402pgm.94.2021.12.12.23.05.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Dec 2021 23:05:11 -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 v2] mailbox: mtk-cmdq: Silent EPROBE_DEFER errors for clks Date: Mon, 13 Dec 2021 15:05:01 +0800 Message-Id: <20211213070500.3977049-1-hsinyi@chromium.org> X-Mailer: git-send-email 2.34.1.173.g76aa8bc2d0-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211212_230513_201475_D35C2109 X-CRM114-Status: GOOD ( 11.55 ) 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 --- v2: fix comments --- drivers/mailbox/mtk-cmdq-mailbox.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/mailbox/mtk-cmdq-mailbox.c b/drivers/mailbox/mtk-cmdq-mailbox.c index a8845b162dbf..6f9ee831ccd8 100644 --- a/drivers/mailbox/mtk-cmdq-mailbox.c +++ b/drivers/mailbox/mtk-cmdq-mailbox.c @@ -573,8 +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); - return PTR_ERR(cmdq->clocks[alias_id].clk); + return dev_err_probe(dev, + PTR_ERR(cmdq->clocks[alias_id].clk), + "failed to get gce clk: %d\n", + alias_id); } } } @@ -582,8 +584,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"); - return PTR_ERR(cmdq->clocks[alias_id].clk); + return dev_err_probe(dev, PTR_ERR(cmdq->clocks[alias_id].clk), + "failed to get gce clk\n"); } }