Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4810761imw; Tue, 19 Jul 2022 13:47:59 -0700 (PDT) X-Google-Smtp-Source: AGRyM1urlthD8XjFWnO80yGbY+Ckd9GrYdICZJ0/IE5rFKDqF+s4DtmqUB9TfR8s/13u417GYlhh X-Received: by 2002:a17:90a:a087:b0:1f1:d9ab:31e with SMTP id r7-20020a17090aa08700b001f1d9ab031emr1307546pjp.13.1658263679099; Tue, 19 Jul 2022 13:47:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658263679; cv=none; d=google.com; s=arc-20160816; b=AqP0p4/cKVqAxICflBtGwGpdhZytB4OW7hN6rmcB5DPvLnyCrX2vYKatwah4TUhqW0 RJR+9xSYsEjlT8zUAcRxraE++KJF3xEHD0hZ7NtKIrz5NAW8Z1HiQqSb7fbw+oElxzHJ VcQsk1ufC4VMjFq44gQHrPjPSf2SZtb5uaM2a9omL5AjIZzSmHQQtql1mbEmhIY3ZTzw x2oeUiFKtj8s4wKrAHCaZIk2Zk5Ab/cwJlywAbhL4MpIjBGjnIAaC4xUt0/v+rddndxa xIXemESkMpNNxXXOXi1rKK4EachyccyS/SzdC3306eK2XrM+aLbYrKBwBsz+rvRmCUzo R/gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=takPyX+c7DxSDI8v9MKZPYo25db1qJMbIDQOmjpNFXE=; b=xVA9CDoyRm+y7BRCR8S1TMdvR/Why1pHVO3pCxadkzd/YWq2S58dx4JqZcDcRjJWGT ig+PJAU8INOemKDinIjflGagKVEw2VjKPh0RqIp+xKghP2eSSfUsc8S5Ey/5QizNBlL1 GYz11NtcgAALZiCaOl3I1lE3dRfmhgmj63uPOHimxGNnshHcncGhqgrMcGhHAilo2vrf fGgfT0dla2hzr53NIfbAgiPyqzQVvs95ASv/f3NKe9BFZ4tAL0qXJregfawbW/I5hNEy rHT1/2FiNiCgxmNOkRRp7iJf6kVx2i2XO1U9Ln4ijNeW1jRu6WyPKzCTNmhWwuTgiamb hVnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QoRT9x+n; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c26-20020a630d1a000000b004125360d49bsi19383186pgl.791.2022.07.19.13.47.43; Tue, 19 Jul 2022 13:47:59 -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=@redhat.com header.s=mimecast20190719 header.b=QoRT9x+n; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239805AbiGSUgY (ORCPT + 99 others); Tue, 19 Jul 2022 16:36:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240028AbiGSUgN (ORCPT ); Tue, 19 Jul 2022 16:36:13 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 249344F65C for ; Tue, 19 Jul 2022 13:36:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1658262968; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=takPyX+c7DxSDI8v9MKZPYo25db1qJMbIDQOmjpNFXE=; b=QoRT9x+nfd9JbqwTqdK9evOLRCZeTp8uj95X5SN3/r46vnU2csL7I1XeIfVN/4Kp/C5Y4G wiDD7FDKY8S0uwkJWlPcdqWEamPIBDFfCscl3PYQSCikZvBaz5pEmiMG5CaEgABCaq42bN OAs3uhlaWRg9iVM/fYmpShpOx54LohQ= Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-357-arV-KjsNMrqgsxTC7FYt6w-1; Tue, 19 Jul 2022 16:36:07 -0400 X-MC-Unique: arV-KjsNMrqgsxTC7FYt6w-1 Received: by mail-qt1-f200.google.com with SMTP id f1-20020ac84641000000b0031ecb35e4d1so10840162qto.2 for ; Tue, 19 Jul 2022 13:36:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=takPyX+c7DxSDI8v9MKZPYo25db1qJMbIDQOmjpNFXE=; b=FL8zfD10LFsqqkmFRtOm+yRZtoiv/iY82TQs8pF/PRasBNWexkRPiRXCI8ONjhGf3h GmyaMcTTU2ndEGjwEKtsXD6KTFXJKbbSgnlBlw8rYW2lrC2PFOFbw9zRKJVvtfNAnAkd D22/H2mxI3kPt47sJIYSAo4gX12oG/zwDibZkYaf16fuffdg9K5oOzDYZZDYe/CzAJ4B Hk9QFMqGr4jy+VqlY8jM56owke4nPj90XnALWkYUVM03atkohjywBoUWdaETVlpQbQUT ZtaRh2Pz7zJWKUR+ZmWljumgQ8WoMuk6TyMi+2DLFxwHzMsvGxXscC32uelWOSxCAr9K +qOA== X-Gm-Message-State: AJIora8vETIoNorjFyDtZHb9VXdf5o/S2fHPb3vt+P99feCR1yu7QpFo J+/nYaQTS9dxZ2h+2GF0yrV9C1/6jpYpAMEPm9IF4YoN7VEfG/f6spJWHzjkGcIrjQByXV7UMXI LFiAJqvvjM63CpdNqahrrUURb X-Received: by 2002:a37:ccb:0:b0:6b5:e1ad:75b9 with SMTP id 194-20020a370ccb000000b006b5e1ad75b9mr9931091qkm.601.1658262967067; Tue, 19 Jul 2022 13:36:07 -0700 (PDT) X-Received: by 2002:a37:ccb:0:b0:6b5:e1ad:75b9 with SMTP id 194-20020a370ccb000000b006b5e1ad75b9mr9931079qkm.601.1658262966858; Tue, 19 Jul 2022 13:36:06 -0700 (PDT) Received: from halaneylaptop ([2600:1700:1ff0:d0e0::2e]) by smtp.gmail.com with ESMTPSA id y13-20020a05620a25cd00b006af20edff0csm15339630qko.58.2022.07.19.13.36.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Jul 2022 13:36:06 -0700 (PDT) Date: Tue, 19 Jul 2022 15:36:03 -0500 From: Andrew Halaney To: Bjorn Andersson Cc: Konrad Dybcio , Vinod Koul , Wolfram Sang , linux-arm-msm@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] i2c: qcom-geni: Use the correct return value Message-ID: <20220719203603.o7bdp4vionxvcy2z@halaneylaptop> References: <20220717035027.2135106-1-bjorn.andersson@linaro.org> <20220717035027.2135106-2-bjorn.andersson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220717035027.2135106-2-bjorn.andersson@linaro.org> X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 On Sat, Jul 16, 2022 at 08:50:25PM -0700, Bjorn Andersson wrote: > 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 > Reviewed-by: Andrew Halaney