From patchwork Sat Jan 7 12:32:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 13092136 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 63424C54EBC for ; Sat, 7 Jan 2023 12:34:07 +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=+iziDnPQ8zJv6NFvD+JyfnJKd3CNGbv+TgN7bDiQ4cs=; b=FWwpqrZIjZXHlo 4jAS0cbk1X6E4/RIwMi2V39cRXy/bau6dOEsYRPgwL7+N824JLC3OXJ0IY2A9mrrVAHICitBxlHDx l6rLc+JgjSzFDL4LY4EU67SX6pDMEiD+gvfZGugXGC2+8i7XtEE+d3OaQmyrSU6HUYKeiIr9pbS4Z Ugdeb/Qn0zVoHsDcqcqU4ZVBWF36UbWN4XNGScQJm/wFDoqdVQFLXouNGNJ72W89r71Q/VwWpE0lN A3NRahhgkvldqvvudraMRT35JF1Ru13vZzgQLkAg2jzy0AMPOqBwtqVVRXlrEQDd7RvZ0bhA4PsuK wit7RQ96gZzRh9o8vCGw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pE8Nl-004pQD-Fm; Sat, 07 Jan 2023 12:33:05 +0000 Received: from mout.kundenserver.de ([212.227.126.134]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pE8Nh-004pLb-Li for linux-arm-kernel@lists.infradead.org; Sat, 07 Jan 2023 12:33:03 +0000 Received: from stefanw-SCHENKER ([37.4.248.41]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MIxFi-1pU1L41Ija-00KTC1; Sat, 07 Jan 2023 13:32:52 +0100 From: Stefan Wahren To: Wolfram Sang , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: NXP Linux Team , linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Stefan Wahren Subject: [PATCH] i2c: mxs: suppress probe-deferral error message Date: Sat, 7 Jan 2023 13:32:29 +0100 Message-Id: <20230107123229.4218-1-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Provags-ID: V03:K1:1JFncqfJNBelAj2BLAtOGL4WUV2LcV+V0yMpxY1xS4rxd8ABoRL 7eCzydnTcFNjq2eU9DTonwTPyHRc9xv0Tca0Oo6XtFos3SPQfJcCwYSQDz9d8tkEPh4Lgwr PprWSksWWPFDZxeZi5dIgZHo6/a6norkQg4nU4m/FyYWBMnXJBtrftcf6L6mFNNQklz/QDv n2oV/3Ao4Gd6DvqLqGsSA== UI-OutboundReport: notjunk:1;M01:P0:NMJHad4sAXY=;D17zLnn6xYWT+RDKyAmfA4nmvKa FLmZIX1CSpQ5mqrZEdZd+9gvYyF9JFe+Srb/Sw8ikAlnNPHySAA5xyaaO/eyV+YoW2R5tSiN1 QswH6BdMPYfeoa5h8X/OLD1xwIEyM+pywjWiZcCfse1tfsfHHskzBMD+RGUDgpLKlVIeXmvZB N290e68/22teO2uSv9Lcq41wu5Noi6KYTUXtX3B1hvaCTFqO7YiWYQYoNsbJN2iRRGi0qv6W1 JCBntwRSgvenjO7hYdf3iEqmn15ZZ72usBiuzyq/3PrB4GrfP4YjEV5/YMY4u/ix+d7uU3ycJ CXqKJXXhdmR2nbOGoq/lmqJU6GFvMUPjfzcJgv3KGyWnLUKSix7FPk0eUNAIA6fj0TnrehYRP +Sm0eFaAZf6l4MoXRgLSf/BB4NWC/6IbkkJLWD320oO51esmXcftg4plCYGUw+5Vb79evncVb UztVikRq9ypEyHyrHAJyg0mla+tf/BdAVvXZJRB4AYV5XAMUSVyD83P1e7G7H2BU22Kvl9gE3 6L/ByNE3gwsaLp2oiZkBAkNcCEZQhKtXXHqXXaRGzaUzZ+u/c1OTpxWgqknQEMD7xip+MvjrJ /3IVYCGlV58Kq9t1bv1f56iIimUVyzhqrP6WYx5xZk6zkwyLtmU8l9Iw0c0m7HVabVHRpBAOO 64fUKP8oKblE5m2Rga6Acqw8uQQmoLwaGIEJce8uXQ== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230107_043302_077699_8210017A X-CRM114-Status: GOOD ( 11.83 ) 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 During boot of I2SE Duckbill the kernel log contains a confusing error: Failed to request dma This is caused by i2c-mxs tries to request a not yet available DMA channel (-EPROBE_DEFER). So suppress this message by using dev_err_probe(). Signed-off-by: Stefan Wahren Reviewed-by: Fabio Estevam --- drivers/i2c/busses/i2c-mxs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-mxs.c b/drivers/i2c/busses/i2c-mxs.c index 5af5cffc444e..d113bed79545 100644 --- a/drivers/i2c/busses/i2c-mxs.c +++ b/drivers/i2c/busses/i2c-mxs.c @@ -826,8 +826,8 @@ static int mxs_i2c_probe(struct platform_device *pdev) /* Setup the DMA */ i2c->dmach = dma_request_chan(dev, "rx-tx"); if (IS_ERR(i2c->dmach)) { - dev_err(dev, "Failed to request dma\n"); - return PTR_ERR(i2c->dmach); + return dev_err_probe(dev, PTR_ERR(i2c->dmach), + "Failed to request dma\n"); } platform_set_drvdata(pdev, i2c);