From nobody Mon Sep 29 21:17:42 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 06AD1C2BB43 for ; Tue, 16 Aug 2022 00:04:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355776AbiHPABc (ORCPT ); Mon, 15 Aug 2022 20:01:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356159AbiHOXxv (ORCPT ); Mon, 15 Aug 2022 19:53:51 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3929215DFBE; Mon, 15 Aug 2022 13:18:37 -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 C4381B80EA8; Mon, 15 Aug 2022 20:18:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 118EBC433C1; Mon, 15 Aug 2022 20:18:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660594711; bh=X39++ByOM4ttG0hrD3typVRD9uxlbueq7DCxkc7a0gg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dgdxFcy0M3PwHaT1xnPZsZQYISmBGFAs0rxKh7x5pNT+49s7P32z1o5d7BhmrYqgt VEM4YFIyRmclM3I90rsuYa0VV9hFffoOYzgfmgLXCh1KpHk69PIfczKsyLj+xSSZ5v J7YOBU/ktgLjcYr3WLG1fjglAFo2Z+YODJ0/57KU= 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.19 0534/1157] i2c: qcom-geni: Use the correct return value Date: Mon, 15 Aug 2022 19:58:10 +0200 Message-Id: <20220815180501.013878573@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@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 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 =3D NULL; gi2c->err =3D 0; - return num; + return ret; } =20 static u32 geni_i2c_func(struct i2c_adapter *adap) --=20 2.35.1