Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4173245rwb; Mon, 21 Nov 2022 04:46:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Xt+3tSOgU7IaAJ0Ptneet/EFylceQXVT3olyGazeIRsvfNGbhB/1IUnQpwcLTyu7jrl+s X-Received: by 2002:aa7:d4c8:0:b0:469:5d86:ee4d with SMTP id t8-20020aa7d4c8000000b004695d86ee4dmr7452724edr.192.1669034768064; Mon, 21 Nov 2022 04:46:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669034768; cv=none; d=google.com; s=arc-20160816; b=Ezo1dtvK3VIP7a8/MRwk8Y+S9ie6eqLKX4dSverykOZDQ8545MSv/HrW8sO2Rcd6xy G8JhR3/b1XAYF2115xlrft1J21R6KtvoHQEfnN+ul9typ3a4qL3fxwfXbL26yJmas0uL G6uzYXoLGGAKnHsJaZsUh/4r7PRxrt0aMbeGDWuYhjBGyBbAjdVjRUk4fXWkTZaBQFXU lj+3I1eAaPWm/6c0rPBWlxfxNvZj+R2u0qKt3Lyn60J4TW7BIz3X48TmhZgrx/Cwqd7G O+w+wtHyMDdJaR6XNaBmwfUDVAEJ7u2WhJkqfV9wYGT2BjLhbqv64SJH8OQ8FICpAd5m i9RA== 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=MBbsIuonafwREhzlZL+FNmZyLBn3gGtNW8dW5Tq4ubo=; b=LhPwa93XVIhZZpPk/MauQTeH6T/PbUVCk5VMlGPpONrhlFPpyaFbTTWIl5hP+xwrgX LRQLU4rV7p49W18V6y3NbOeNPGpDTJDeWObO0pmDmClSa0lNsP0IhdTSekn76VL701jS LnY+kDKHoGYcdrR2mM5+LzHJwSTon1LcShEmzbAU/Nsk85iWH9sT2aM/FK0K2RSoQlIi bE9b0EqYUDglyUIdZC5q9Ffx7ice64YGaymOtmHvUWOUkcoeSG8C1JVOmiY/xG4Ob0+9 rzlFuPxbO25PgNVLbr6i+f8XlOMaKMtjURWVr1C9SDwZu5sTE19IuMUR2/nRKcCrNMm8 KuPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="rMXy/vvw"; 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=NONE dis=NONE) header.from=amarulasolutions.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k9-20020a17090646c900b007af041e40b4si7385496ejs.129.2022.11.21.04.45.40; Mon, 21 Nov 2022 04:46:08 -0800 (PST) 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=@amarulasolutions.com header.s=google header.b="rMXy/vvw"; 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=NONE dis=NONE) header.from=amarulasolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231135AbiKUL6L (ORCPT + 92 others); Mon, 21 Nov 2022 06:58:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231294AbiKUL6H (ORCPT ); Mon, 21 Nov 2022 06:58:07 -0500 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4808BE010 for ; Mon, 21 Nov 2022 03:57:58 -0800 (PST) Received: by mail-ej1-x634.google.com with SMTP id f27so28041733eje.1 for ; Mon, 21 Nov 2022 03:57:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; 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=MBbsIuonafwREhzlZL+FNmZyLBn3gGtNW8dW5Tq4ubo=; b=rMXy/vvwEhXKozlAX1RwrPPT42CNokrusCoQoaRmpnG1Qk15lltVbnd3j2iAUlPdCs ti02LF5TBqoq6YtuHwOVTeMM8V3j9A/NyTYlxdqupHWMVJXHr1OdUGXBc1PgZ4MAwDHo jBrJsSHfGHJvwDXnWS7nntzTuJE+2sCrNmMBY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=MBbsIuonafwREhzlZL+FNmZyLBn3gGtNW8dW5Tq4ubo=; b=Tg8U77eApMR8viBr1I7P6BlmcyJBmTnV/xFdAffHhoH6d2iFruLnE2uJ4j4L0hopJN 0ZYeieJQWIadJCK8XI92uwhV6uuHk6bQVpjUbPPcG7GqoqjP9Pl+13iizaOMHHcAjjkC SgBBe72tw1ffF2bKYkjcIwU+pHZlB8R2Gr0fGt7xWxFNRRddrq2xSjBtsaPfri1JDLaR NNlCikH0hgWiEaHM1rJXSMPBkEqEWV0IkOcqFesy6VgxrQk/oNIW88KcD3Cn7j6rbYxv 4HgLZTLErNvLMzHy4gGxYT7T1zw84bV5C7CxBdBL+Zth+3/i0f5jHNsGPs5qaO9SqRIp 855A== X-Gm-Message-State: ANoB5pkZyJqM4cjSu21lebrM+pb2m4C2RKiKyDNmH17zD24YCCh1dDWt b4iucP7D4oziJpbIyYtcT2cLsA== X-Received: by 2002:a17:906:2342:b0:78d:9e77:1f8c with SMTP id m2-20020a170906234200b0078d9e771f8cmr6710101eja.236.1669031876837; Mon, 21 Nov 2022 03:57:56 -0800 (PST) Received: from tom-ThinkPad-T14s-Gen-2i (net-188-217-55-94.cust.vodafonedsl.it. [188.217.55.94]) by smtp.gmail.com with ESMTPSA id k19-20020aa7c053000000b00456c6b4b777sm5037181edo.69.2022.11.21.03.57.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Nov 2022 03:57:56 -0800 (PST) Date: Mon, 21 Nov 2022 12:57:54 +0100 From: Tommaso Merciai To: Wang Yufen Cc: agross@kernel.org, andersson@kernel.org, konrad.dybcio@somainline.org, sumit.semwal@linaro.org, christian.koenig@amd.com, vkoul@kernel.org, linux-arm-msm@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org Subject: Re: [PATCH] i2c: qcom-geni: fix error return code in geni_i2c_gpi_xfer Message-ID: <20221121115754.GA39395@tom-ThinkPad-T14s-Gen-2i> References: <1669025872-44226-1-git-send-email-wangyufen@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1669025872-44226-1-git-send-email-wangyufen@huawei.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Hi Wang, On Mon, Nov 21, 2022 at 06:17:52PM +0800, Wang Yufen wrote: > Fix to return a negative error code from the gi2c->err instead of > 0. > > Fixes: d8703554f4de ("i2c: qcom-geni: Add support for GPI DMA") > Signed-off-by: Wang Yufen > --- > drivers/i2c/busses/i2c-qcom-geni.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/i2c/busses/i2c-qcom-geni.c b/drivers/i2c/busses/i2c-qcom-geni.c > index 84a7751..8fce98b 100644 > --- a/drivers/i2c/busses/i2c-qcom-geni.c > +++ b/drivers/i2c/busses/i2c-qcom-geni.c > @@ -626,7 +626,6 @@ static int geni_i2c_gpi_xfer(struct geni_i2c_dev *gi2c, struct i2c_msg msgs[], i > dev_err(gi2c->se.dev, "I2C timeout gpi flags:%d addr:0x%x\n", > gi2c->cur->flags, gi2c->cur->addr); > gi2c->err = -ETIMEDOUT; > - goto err; Looks good to me. Reviewed-by: Tommaso Merciai Regards, Tommaso > } > > if (gi2c->err) { > -- > 1.8.3.1 > -- Tommaso Merciai Embedded Linux Engineer tommaso.merciai@amarulasolutions.com __________________________________ Amarula Solutions SRL Via Le Canevare 30, 31100 Treviso, Veneto, IT T. +39 042 243 5310 info@amarulasolutions.com www.amarulasolutions.com