Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3122820rwb; Mon, 15 Aug 2022 18:41:17 -0700 (PDT) X-Google-Smtp-Source: AA6agR4IKRHMWuit91C3paChO8xrMKIpunKwKV8Fx0oFTSks3J9RKvsydf54yX2YhTx5zl+MpZfA X-Received: by 2002:a05:6402:4441:b0:43d:5bcf:afa0 with SMTP id o1-20020a056402444100b0043d5bcfafa0mr16485955edb.91.1660614077129; Mon, 15 Aug 2022 18:41:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660614077; cv=none; d=google.com; s=arc-20160816; b=YqaSJsSYSTNdMJ5FpWXRhesms1bdb+5LHwPscJyqVxBcgsJcDhe4+AMEgtn0RSA3wq HqPjGS5V5wqSh1fOxchpI4BSRrBSq/Q7n85rlKITzIQF/UkoNGpgnU6XzP7S/HH7RQXJ rmsessZtiP2ZNoKyYo5Pq2KDPlNiof1hBPZM0nmClGz5F0ma1o6aNwTFpKPdsa3AA5ET pBKtPfdaVsTkQSDiVYKjU8c4Cg2wQsguHgv4xh9/h8KFIRnGCjr4Ojzz2W/05iL8Z4lv v1I2BB1cBA0F8liQPYKiebb9dgvhPUuC0GsYhBWu+HJDRM8IRNYHvdLXJ8OC9AK38Rdp mHGQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=KYjkXWRdl4lKjtyLS8Rple7xpxtFEudKPpEOCwlvoN4=; b=WA8ZI6mZJkZ2w8ixJLtak2A+wHGIZUX98QbqYhUqZEvUj4iMTju151UDGh6mvUvt7H kdVhMNH8/567VQGopYs7ajt3weGT4GhhenWUzWQsi5Q+FTNvfUxCjX3skmiz4aRO0V5T aLHB1iYdYHHj7C492pecpcs4uraNmV/WPEA2ll8RmP2FYyfbaTjx0LgDclGx+YxPMk1b bk9N2oYXBoz0Mebou4Qd33wIhSBWX5VScpCvTkPqHVZ7cT+fv9BKxE8Z57N8VS91UIAt 28Xcml2XUXnP8qRvc8dLQedKB79hgMvfty5yVAy7Im7YPKwrsMGO+WJfMp3DjRqc05hN zXbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dgdxFcy0; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p34-20020a056402502200b00443720e5441si5623792eda.170.2022.08.15.18.40.51; Mon, 15 Aug 2022 18:41:17 -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=@linuxfoundation.org header.s=korg header.b=dgdxFcy0; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355770AbiHPABb (ORCPT + 99 others); Mon, 15 Aug 2022 20:01:31 -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-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 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-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