From nobody Fri Oct 24 20:23:55 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B537CC00140 for ; Mon, 15 Aug 2022 21:25:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347055AbiHOVZO (ORCPT ); Mon, 15 Aug 2022 17:25:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346951AbiHOVSL (ORCPT ); Mon, 15 Aug 2022 17:18:11 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F2E421A9; Mon, 15 Aug 2022 12:21:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 549ABB810C6; Mon, 15 Aug 2022 19:21:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A21F0C433D7; Mon, 15 Aug 2022 19:21:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660591303; bh=bf6HyBj5q29ViznfrW5X8XfxvHhrJS90o5YD8uYC+p4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Qw5wXIuhI6r9kuQTkUwTom0VfFqLuUOzDNl8kCuLoXliw7k93QN9tUbDNcmTaY+FB 1puCrkM/29Qd1bP+9epvqojZGVV2ScKh2HwsQHGzVDPNnX6LSyBM2IBZ6XF7OWaYsZ nuPcdIhEGuwgFPEZy/pVpeEP8Fm6/1RXPPvZH/M4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bjorn Andersson , Andrew Halaney , Vinod Koul , Johan Hovold , Wolfram Sang , Sasha Levin Subject: [PATCH 5.18 0502/1095] i2c: qcom-geni: Use the correct return value Date: Mon, 15 Aug 2022 19:58:21 +0200 Message-Id: <20220815180450.290148955@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Bjorn Andersson [ Upstream commit b3f0ceb7c2037c6e3affd7d9c84ac5f97af7a5b5 ] 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 Reviewed-by: Andrew Halaney Reviewed-by: Vinod Koul Reviewed-by: Johan Hovold Signed-off-by: Wolfram Sang Signed-off-by: Sasha Levin --- 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-qc= om-geni.c index 5b920f0fc7dd..a4eef8de054c 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 =3D NULL; gi2c->err =3D 0; - return num; + return ret; } =20 static u32 geni_i2c_func(struct i2c_adapter *adap) --=20 2.35.1