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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6A4C2C38142 for ; Tue, 31 Jan 2023 15:02:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232417AbjAaPCT (ORCPT ); Tue, 31 Jan 2023 10:02:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232704AbjAaPBd (ORCPT ); Tue, 31 Jan 2023 10:01:33 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97C0753B1F; Tue, 31 Jan 2023 07:00:39 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 0775FB81D50; Tue, 31 Jan 2023 15:00:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B3E6CC433A8; Tue, 31 Jan 2023 15:00:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1675177236; bh=Tql21/U+HBWrQXbGKOoeuk87rFXHzfmJddhkYWlpJFY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lGSs2P0t76Z3plAC8uafUawMzVQ2yMKDlIuVwevrAumBnEcWWf/LxvRUTLa0mb57a AJ3ddy2duD9fMApV9CndofnuA6Zp05UpT8DiGRD49H+a7hpGsrjCS9sNR2vtenFJ3r wTStBv/bBKq3ZDM/8c3a5q7Rd/wheY8BGGkFUh7CPi5doRxM7j4xD/6LGvMKK5uJX1 31CQnYzPokaky+Z+YxLMSp62s+3qfb09NPhGX+uNqecxgcrrymU2Bf/HmK5yBbm6Vd yxrF/+WVewamMfSy/dtGfWrpsesTgLCi9PE7AnEalXUz/ITO4NopUKwkAhYsiXxU5/ oQ6neVMeNxppQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Stefan Wahren , Fabio Estevam , Wolfram Sang , Sasha Levin , shawnguo@kernel.org, wsa+renesas@sang-engineering.com, linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH AUTOSEL 5.15 02/12] i2c: mxs: suppress probe-deferral error message Date: Tue, 31 Jan 2023 10:00:20 -0500 Message-Id: <20230131150030.1250104-2-sashal@kernel.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230131150030.1250104-1-sashal@kernel.org> References: <20230131150030.1250104-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stefan Wahren [ Upstream commit 78a4471fa1a76a8bef4919105de67660a89a1e9b ] 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 Signed-off-by: Wolfram Sang Signed-off-by: Sasha Levin --- 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 68f67d084c63..b353732f593b 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); -- 2.39.0