Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4006497rwb; Mon, 21 Nov 2022 02:32:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf733ffbv9mQ1z8Lc/xQLegQpXqVGRMB6ClQY7f0AClyM3daWvEgjz/hPcLarzY5ebhWd/CZ X-Received: by 2002:a63:f54f:0:b0:458:5e:5388 with SMTP id e15-20020a63f54f000000b00458005e5388mr5103926pgk.168.1669026728167; Mon, 21 Nov 2022 02:32:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669026728; cv=none; d=google.com; s=arc-20160816; b=oj0bjG+5ngKZPbln0KhKjKnvY9+axM1RPv3bmcJQhBGeIFffU4P/vzF6VOw18ZatmY 30qYVcPgmtIhft/3WzzOsCXSsfJaW5QIAjYd3LRqwHAwlWNGTXGgZKTxo0bWx+mzJEAW t37fjVxBVgx+qjho1QDIMMdZUH5hyK41rReyQ4xi08e1hck9Ew2hPdm6as+LxZDzwBdt wlZSmudQ991WLLTYglCbsEDIedGOwqAtn3w30aYhCc1ozH1Z408BSARUOIw59aqOM5Gq 4SpLUNtEMU4OwuesEWQzp3Rmym6ew2JXlNROq2GAFLPVW8RNiXU4i5Bclx8g9cxDbbDt KL+g== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f21-20020a17090a4a9500b002186ca32904si9050421pjh.94.2022.11.21.02.31.55; Mon, 21 Nov 2022 02:32: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; 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 + 91 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 ); 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 To: , , , , CC: , , , , , , , Wang Yufen 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: X-Mailing-List: linux-kernel@vger.kernel.org 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; } if (gi2c->err) { -- 1.8.3.1