Message ID | 1669025872-44226-1-git-send-email-wangyufen@huawei.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1486908wrr; Mon, 21 Nov 2022 02:01:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf7VKnk8lr1MDeGqS9cBkfY8jlGQ1k3EClCUrA7Ml0QJz+9vtryypWTKCAFktZWatRAUUQPj X-Received: by 2002:a17:906:cf85:b0:78d:b66d:749f with SMTP id um5-20020a170906cf8500b0078db66d749fmr14050641ejb.566.1669024894123; Mon, 21 Nov 2022 02:01:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669024894; cv=none; d=google.com; s=arc-20160816; b=AgY9UNqgmu0isOIPZbGH5/2riI/W9xEEkn7coy/Q18fkos1eSx55DA0YziEUpVq4jn 69aeKcLTA4rFefrXKLfGUym7PI+q/G/VcmQR5IvTr2+XFh+XxQhZyMEB044wJL3Vy+vs YZpw7gHIZSuilAlEPDgqjjR9hnyhm6Rrwdv2+KRfc4BuGVZJeo3W8WCMJxYoD1lYGp4P Lnkv0I7B765jzrkQkMM1MrHXABZbC45jclWpNlwQx/TYRonvSmOAStKOnY8kJliXPuz5 Y67DWlkNcGTZVdKhJYrf8d1Jqa4d2dvtgQ+wfw/FjLZABrSb4TCPvw880+5IQXPkBPcP jMPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=XlZOzICdo8i0aV3g7voi77v+PaIl/DVrCojLh922amE=; b=JPOZz6ZO0A9dRckaLjHkiYyLiSJv66Lm0rlHAYHHfEcerMm2jW5SoobNyxK3atUPtT 7OJAgEGHdBrOC9bpx/0iKHinW9roUxUEjCq7HTZmEhI75q6mCQp2sn75hxYWyRyDPZr1 pJo6sePJaG0Y/NoLHhEWG2W+QwEUD8/UfA1/d3kD8Z21P13MKKqOeP5H7BNmK6d8aEPs YBwkr2pzlNHzNQnY68Vj5UtdfYMstC4Lw3yM0Cfld4XVKkQ406i2kcA5bzcNYmuRWqt0 ZGVm28OziHapMnX5kAMorGi+KtPgmN5W2H+eOiWW/XOSDDdw1SGFiQvlxgy1BsBGDQuI OGJA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z2-20020a1709063ac200b007adb3888afbsi7273082ejd.136.2022.11.21.02.00.57; Mon, 21 Nov 2022 02:01:34 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231203AbiKUJ5v (ORCPT <rfc822;peter110.wang@gmail.com> + 99 others); Mon, 21 Nov 2022 04:57:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231159AbiKUJ5t (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 21 Nov 2022 04:57:49 -0500 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DADF1E738; Mon, 21 Nov 2022 01:57:47 -0800 (PST) Received: from canpemm500010.china.huawei.com (unknown [172.30.72.54]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4NG2mR018CzFqS7; Mon, 21 Nov 2022 17:54:30 +0800 (CST) Received: from localhost.localdomain (10.175.112.70) by canpemm500010.china.huawei.com (7.192.105.118) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 21 Nov 2022 17:57:39 +0800 From: Wang Yufen <wangyufen@huawei.com> To: <agross@kernel.org>, <andersson@kernel.org>, <konrad.dybcio@somainline.org>, <sumit.semwal@linaro.org>, <christian.koenig@amd.com> CC: <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>, Wang Yufen <wangyufen@huawei.com> Subject: [PATCH] i2c: qcom-geni: fix error return code in geni_i2c_gpi_xfer Date: Mon, 21 Nov 2022 18:17:52 +0800 Message-ID: <1669025872-44226-1-git-send-email-wangyufen@huawei.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.112.70] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To canpemm500010.china.huawei.com (7.192.105.118) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750099447240730727?= X-GMAIL-MSGID: =?utf-8?q?1750099447240730727?= |
Series |
i2c: qcom-geni: fix error return code in geni_i2c_gpi_xfer
|
|
Commit Message
wangyufen
Nov. 21, 2022, 10:17 a.m. UTC
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 <wangyufen@huawei.com>
---
drivers/i2c/busses/i2c-qcom-geni.c | 1 -
1 file changed, 1 deletion(-)
Comments
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 <wangyufen@huawei.com> > --- > 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 <tommaso.merciai@amarulasoluitons.com> Regards, Tommaso > } > > if (gi2c->err) { > -- > 1.8.3.1 >
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; } if (gi2c->err) {