Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp397251rwl; Wed, 29 Mar 2023 03:37:08 -0700 (PDT) X-Google-Smtp-Source: AKy350b4Zl/kc8Sl6uM4dwbYd5eM7IjXw4rusvyquJ+quszNzrlrBV8Zsrd5k7/PmUgEo8oHETwO X-Received: by 2002:aa7:db83:0:b0:502:3376:46bc with SMTP id u3-20020aa7db83000000b00502337646bcmr2283059edt.8.1680086228264; Wed, 29 Mar 2023 03:37:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680086228; cv=none; d=google.com; s=arc-20160816; b=UokFhwdUjOw9mMqJaDFzEmq8Dmw6u7UeOrhI5zSwR9ze/tXrkQMvHrbBZvFe5bp25Z DMIkFpZ61bm6gIhh3hjuabC2KwnzCUxxuYFMQXH1WBH0Hs8vi5kVQBScLYXSISWw0cmj oQISUkr/3ajLOL27w883IfhuRg+NH+mYXie1EqzwqN3LKXPYDpmkEqEDm9il7QzanOQv mxkd/DT2M/38ZkWiKjVU2yjD9MQGUXK9d1ToiHWaj8+5rOXF26HFvGxMCgJoPC8Z8kdQ cyM2idfzhoFfUi4sY8lNFhxBYPKTxjcBo1iX5tbWGCzRV5VyQKOmuT3ZxGWDnxw9s3eg Dgww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=bf3058/knQ0tFWmfPZfCyE9CWSx0vTUnHs2fjB/KymA=; b=P2edTKHtRO6hqfINSDQFJrNhxJVowiHsazJ3JyvSGvuJ6muISP37sPiVVmANeuAv/a q50m2dMnF+ORPZCcLFV3FBAYKObeoHfO6GxR4koby7QL8Fx+8W+IBHdbgMzU+gCihORD XDIjJQl2JKK1qq9bAQndkAejW+4FcX/JcOkxzxcFey+t/a7fgYv2EgwzCVlTYwTrYgBy tmYt3bXfbMWR0ro79paL8PLYab22ezuMLmGfFfAk75/xNmZqTcuAjg9nwsa9qsGwzKwl hQ4izkcJxoQvtpxW8NIY1TsL+3u8+uo8XJxzpuXti4Qc9h6ZLaORJRAxj7dGoxalPGaa gxJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=SRm5l+xo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w4-20020a50fa84000000b004ad6d2941efsi34206140edr.478.2023.03.29.03.36.43; Wed, 29 Mar 2023 03:37:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=SRm5l+xo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230490AbjC2K1e (ORCPT + 99 others); Wed, 29 Mar 2023 06:27:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229603AbjC2K1d (ORCPT ); Wed, 29 Mar 2023 06:27:33 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99AE3125; Wed, 29 Mar 2023 03:27:32 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id l15-20020a05600c4f0f00b003ef6d684102so5799772wmq.3; Wed, 29 Mar 2023 03:27:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680085651; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=bf3058/knQ0tFWmfPZfCyE9CWSx0vTUnHs2fjB/KymA=; b=SRm5l+xoouFUwc/HhzgIa6DAkMoKhJcUyDR0D0R3x+zdtiAfng1p+AO/dWn/e+9vNw /SaomAk8+yu+hwqM9AtZcEUf3H/w5Yqdj9XpyMUaQUu1DRoyjHQQDjFKpVVpDl90qCCN 5ghgcfI3oZoA2jfuNt//uMd61CTsm5EysUWqBrBcf46l0/m+K0/oK1Nz5e3f/iJXIx3q Q+BWHcfkwqqrkqg/ukt9w0nCypdxVl6uCRqaoxuzKhMHM3EuW0+oYntXLCnfEAKIgRN1 D5Xboz3IxJrtsVEaPVAl9H2I1J2j0LuWJEoFdwLKTv/pd5b5+4r6bEOVFZOFhHbunKhT ahgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680085651; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=bf3058/knQ0tFWmfPZfCyE9CWSx0vTUnHs2fjB/KymA=; b=b0f84KKgb3kqc5fpzCAMlTLaeIMW5ymsH4chc7DIB2iqDkAs4/0wwA92sgXYK04lts t841IHQ4wlnUFZovZ9zYgKnzbGbsmvieTGkoIx+9dRZbGHJyQmZW+5aJjU8Uj0pjdy1F d+2QdX+HUAJu6ICfVqTr4SG1JA7r3RTPW7vMPnY26yxCsUQ4FQaati2Aw9FovoPvvIRm fg9wq2s4E1sbvnP/C5ttgzzP5Nsb9zy1X2H0E3tNAJN8xfV9Z+T/qvk9+pkhO9v/xL9S db6NlKNZ/V9VdhFvsbmteH+LKt5zMYVxiafl2sTnyamB7j+iA5ji/FPHQTqiPXqvJORz /lmA== X-Gm-Message-State: AAQBX9fswi/FgR7ev6pLDMPGV7aiHMN6XLvpQUbN+v3IxAzXX26LLSLl AjknBEb+XlAEilbzvzNqRKQ= X-Received: by 2002:a05:600c:28d:b0:3ed:3268:5f35 with SMTP id 13-20020a05600c028d00b003ed32685f35mr1426339wmk.18.1680085650933; Wed, 29 Mar 2023 03:27:30 -0700 (PDT) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id v13-20020a05600c444d00b003ee8ab8d6cfsm1886094wmn.21.2023.03.29.03.27.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Mar 2023 03:27:30 -0700 (PDT) Date: Wed, 29 Mar 2023 13:27:27 +0300 From: Dan Carpenter To: Christophe JAILLET Cc: Vinod Koul , Rob Herring , Gregory CLEMENT , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, dmaengine@vger.kernel.org Subject: Re: [PATCH 1/2] dmaengine: mv_xor_v2: Fix an error code. Message-ID: <16cfc681-7a08-4160-bd69-4c8b59774688@kili.mountain> References: <201170dff832a3c496d125772e10070cd834ebf2.1679814350.git.christophe.jaillet@wanadoo.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201170dff832a3c496d125772e10070cd834ebf2.1679814350.git.christophe.jaillet@wanadoo.fr> X-Spam-Status: No, score=0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 26, 2023 at 09:06:37AM +0200, Christophe JAILLET wrote: > If the probe is deferred, -EPROBE_DEFER should be returned, not > +EPROBE_DEFER. > > Fixes: 3cd2c313f1d6 ("dmaengine: mv_xor_v2: Fix clock resource by adding a register clock") > Signed-off-by: Christophe JAILLET > --- > drivers/dma/mv_xor_v2.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/dma/mv_xor_v2.c b/drivers/dma/mv_xor_v2.c > index 89790beba305..0991b8265829 100644 > --- a/drivers/dma/mv_xor_v2.c > +++ b/drivers/dma/mv_xor_v2.c > @@ -752,7 +752,7 @@ static int mv_xor_v2_probe(struct platform_device *pdev) > > xor_dev->clk = devm_clk_get(&pdev->dev, NULL); > if (PTR_ERR(xor_dev->clk) == -EPROBE_DEFER) { > - ret = EPROBE_DEFER; > + ret = -EPROBE_DEFER; > goto disable_reg_clk; Heh. Looking through the Smatch results, I don't think this actually affects runtime because driver_probe_device() checks for both positive and negatives. People shouldn't be returning positives, of course, but it appears there is a work around for bugs built in already. regards, dan carpenter