Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1985113imw; Sat, 16 Jul 2022 21:11:59 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s5UMcZw8dSGwbM7UXh8qxpp5iGE4ZMMtL/HFZSRTeTiTZJ9rf3UXvsFSVbQxdD2R92RMYV X-Received: by 2002:a05:6402:ca7:b0:43b:5cbd:291e with SMTP id cn7-20020a0564020ca700b0043b5cbd291emr2131302edb.4.1658031118825; Sat, 16 Jul 2022 21:11:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658031118; cv=none; d=google.com; s=arc-20160816; b=JAoMvUUzhWix5JKVARi+Xq+WB2z11EJMOSOY2gZ+BMh4/Ntt+a5KcSj2oF/yu6A0wu UyMND1Dscdj7zwdwJkZ90nW7MAWd1XB5H4pk9ZyA+Hi5M4RhdUScJE7D/CZxDWhf3eB3 n/kZqvfwefXTgA2ozaE0G//dVpFocPYFgkVe0be2fZmsvTPsPkcMt/qRHEZsapv2TRy5 rlxm8SnVK7WeTt1kNbl4OBfCxcjiJbLHa4vabktlpZ/dCHJn8y6ESjqAsZVZSL36XF1P fgiXtBvu5wnUUi0KF7HDVhVNlc4dWOXtPJjY2U6rv/aqlPwvqRuhBbvSX2YzVY/rdNro MXRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Yi8AkrlIqU4lv5oV/rNtUh5JaYHyOIwQpcON7vVHGsA=; b=nmxxBtZ57GtDQoGWQjKzoe6Bcj1nYrt1OvqLy5pbZg2Md8Qm7oi6vIREtWYsz9vzzK /OQ4KGEOz6zAJIGSv2+EtvEI4u3rxYln5CsB2Sy7pr1N/oB4RzDJ2BRmf4DP/eyZ9exh R+Cbqm9QN3+BdgY2IEPA5JXVe9URetnr6qpP0p2Hgq4u8Rt1WwvtCSwDKf+YZQYvc+92 FtyET1AlrqsBo8ejQRM0FASYo2YiOHtq3vzx7+rOSSSXFez+FGGukLoLRV9xh/aXZpY6 4UpeVWJYpCQTg4gfrv7GvysT65u63fJcatpbGMFFfxqmoFFgA3/j5qg4/uPGHsUXtmBa xdDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zr9iL6oI; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t18-20020a50d712000000b004396de7fe60si12418112edi.270.2022.07.16.21.11.34; Sat, 16 Jul 2022 21:11:58 -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=@linaro.org header.s=google header.b=zr9iL6oI; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233018AbiGQDsW (ORCPT + 99 others); Sat, 16 Jul 2022 23:48:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232775AbiGQDsI (ORCPT ); Sat, 16 Jul 2022 23:48:08 -0400 Received: from mail-ot1-x334.google.com (mail-ot1-x334.google.com [IPv6:2607:f8b0:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20C0E17E37 for ; Sat, 16 Jul 2022 20:48:08 -0700 (PDT) Received: by mail-ot1-x334.google.com with SMTP id r22-20020a056830419600b0061c6edc5dcfso6644920otu.12 for ; Sat, 16 Jul 2022 20:48:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Yi8AkrlIqU4lv5oV/rNtUh5JaYHyOIwQpcON7vVHGsA=; b=zr9iL6oISXOb1as1eSfmmqY3qOK3BV9grw3z5lf/C/WPw4ac1n1v8ar0WGrTWVBhVi vIGNlI8SxWlKUK85JILoOVAnX4f4uK9Ua6tVeWX12b/1yc2RcCI5LS7WJikmdUPEOEOR wCRaTAnWuwj46FQLcvRtEW0iqFszCpJmRj2EtpuTF4iq3AWA2/8caHFN+nNsrgpvFyab lG+ApzwU4ZSCEPjX9MLHrocKe8TZObRh45ble4Zi78SlEssrh6q4IAwwyyK6QVEKtIK2 xAq6Nfo64ioTQi+hVFLXsWbVL6i2H8iYxYwE4try/xt9QZsSSuCLPL22RSTGFRWhX0iM vUWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Yi8AkrlIqU4lv5oV/rNtUh5JaYHyOIwQpcON7vVHGsA=; b=yrax1mE3dVPwTV450is+/ucvbM0SexmUDaR4rufdB7dewcdRss5KCwGXlL4Sgbs1s6 ucK821PhlNCuWR9hwRh/xLYFwGnSHduJxnzrZ7FF1HA/rKYiotWXnL+1JrSUw1h4tlB0 59PrPMo9DCqphfa/E1J7+hx6GC6o9JttMtMja3CqPcM9OUgo4EoekITrHfEwqJyyTkmQ g3uZc5C4J8ZnJL0uEit/8/XENA1BmpdoaOG61NzOW68rqaB62x8XauECTLgLACskmfRr H4B9AX2GC5vIyx2jIKi88aW8B2zzmXbol14O/fLaRFzQJmbnE1EZAF/p+JZuz1UczvFd rs2g== X-Gm-Message-State: AJIora8EqXIwMC0NrCgmmciBh518X3ozsie6jUitxVaqDyvDOnJhwfUP 8/qlDUDLLcRzACUrip6FxUWFlQ== X-Received: by 2002:a9d:198c:0:b0:60c:7ecc:5c19 with SMTP id k12-20020a9d198c000000b0060c7ecc5c19mr8638762otk.160.1658029687487; Sat, 16 Jul 2022 20:48:07 -0700 (PDT) Received: from ripper.. (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id e65-20020aca3744000000b0033a169f9282sm3004515oia.52.2022.07.16.20.48.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Jul 2022 20:48:07 -0700 (PDT) From: Bjorn Andersson To: Bjorn Andersson , Konrad Dybcio , Vinod Koul , Wolfram Sang Cc: linux-arm-msm@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] i2c: qcom-geni: Use the correct return value Date: Sat, 16 Jul 2022 20:50:25 -0700 Message-Id: <20220717035027.2135106-2-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220717035027.2135106-1-bjorn.andersson@linaro.org> References: <20220717035027.2135106-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 The introduction of GPI support moved things around and instead of returning the result from geni_i2c_xfer() the number of messages in the request was returned, ignoring the actual result. Fix this. Fixes: d8703554f4de ("i2c: qcom-geni: Add support for GPI DMA") Signed-off-by: Bjorn Andersson --- drivers/i2c/busses/i2c-qcom-geni.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-qcom-geni.c b/drivers/i2c/busses/i2c-qcom-geni.c index 6ac402ea58fb..3bec7c782824 100644 --- a/drivers/i2c/busses/i2c-qcom-geni.c +++ b/drivers/i2c/busses/i2c-qcom-geni.c @@ -688,7 +688,7 @@ static int geni_i2c_xfer(struct i2c_adapter *adap, pm_runtime_put_autosuspend(gi2c->se.dev); gi2c->cur = NULL; gi2c->err = 0; - return num; + return ret; } static u32 geni_i2c_func(struct i2c_adapter *adap) -- 2.35.1