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 055F3C636CC for ; Tue, 31 Jan 2023 15:01:45 +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:References:In-Reply-To: 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: List-Owner; bh=sFfYiJDpXjrlSuJkRAb5TtQypg1nAcX3wspEObyvA3c=; b=Z17ELr5e+P9nLK wpSPzSGRz78udPG9AiLwziZUNI8BJf9xRq5zC1XP4vxpE0cSquqYGcwNBohdzbAcv/kCOcxALooMg /S26tbYe+KFkfKgEBwkgHN1whPtYoUr7aQGDjEBIdWG/5p+fLeHFkCH4zuKyaeObFlkLODNsjSzeL MK4Z6T42gZomos51G3oo4eCJ4/QRy0qTmgv4LB6yuYv8d6lm+EcOtwx3tvPy9cAKw4xfd54N/cVWQ xUqFmoA10UjNCPSenVCurKNBrQhhrZoYn524MOOjdGvXx91lLjs8Fbp0FwmpcaAHX1q78fVoT68aW +076M6KS7d8e+y+dRZAw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pMs7o-008MpA-6u; Tue, 31 Jan 2023 15:00:44 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pMs7j-008MmI-9n for linux-arm-kernel@lists.infradead.org; Tue, 31 Jan 2023 15:00:40 +0000 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 EF446B81D4D; Tue, 31 Jan 2023 15:00:37 +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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230131_070039_514210_568810A5 X-CRM114-Status: GOOD ( 14.01 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel