Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp206154lqc; Thu, 7 Mar 2024 15:07:28 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWwTGiFVztvvWwK/ihyUrzuqISneUcfxy3Y1xbykujo9mqakrAQSJhj0gxsD4tyubxpuI8fFUtmCE/OREWJXLC29DYQCJrTufLOQWGRlg== X-Google-Smtp-Source: AGHT+IHcldBnRz/ibNjijiBP+6Z+PhCqwf/MAuXBxdjSotuNGN+4Ln4fHwjfuwxaAH0cjzyoGiIT X-Received: by 2002:a17:90b:1256:b0:29b:5c2:76ac with SMTP id gx22-20020a17090b125600b0029b05c276acmr18304410pjb.5.1709852848334; Thu, 07 Mar 2024 15:07:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709852848; cv=pass; d=google.com; s=arc-20160816; b=wQt/+c1RJVUjilSJd3AM/C9rFR6f4hhzADV9/hcrMaXa45cu0YdBLOxu996y+EvKft p7IUbD18qnSgfoBmwaV4C8ZXST+G07oZcIqui9DhYq6OyAp3UbvbbAPFIhDzLNTvXaMm 0VCt+3Y7IEu7FZpYFGZcTGJYnqod828jjNOhWPpFqVhW3jEOD3D4/9KLRcpZ8EbDEYdm QIYDXLw6roY+CN/mccPpuW/fAGTek/vNsPxEMrI2DWinWX7ULvb/cKC7qdWlpRrvVXRu u0YNhNv5vDgIoCdDDpMmvgDgM2AwzvmHJSKUALpbZzTWxadlj6M+oRdvxHRq9ghsNt4P AnUQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=XHMgUD0t7sesZ25/uR0ptAup3XUiggImFfgCl468mrA=; fh=ri8MihG+NHlwHbYjIixgoJo0ABoxlG2o7laQOH1Mj6I=; b=IjmTIwugeoqocVznEuqffi+CMipnvgrfBQeEE06JN76yuC/cG4iTLkaNxrZ59FdSUj adRtfVSpn3W3dXl4KSpE5r52D/xbxUVFmitgmQavSLBOtPYtKw/E9ea8Zb6fLlJNcnMw vsHfRIUcXq7bq3mNpXpzYdDcjbA61+jpZ181344xgmqeCG07OkE08IdhHtVyBdyQQTbH WyfO4uQmB2LX17NL7i1DLa6wGDFYS9DoBGqB+yooH9HVIRr1NkqBawxeHBcasJH9KS1s RoiljNeKWVcDhRwt8oTd13RHmoZ19yjq6SAJyrcjBmChw6beWH6u4YnyJIjUKj9HVdVz QaBw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Z4HYD/c/"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-96342-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96342-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id mi6-20020a17090b4b4600b0029b6559b6cdsi2585687pjb.89.2024.03.07.15.07.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 15:07:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-96342-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Z4HYD/c/"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-96342-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96342-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 9BDCF2845F0 for ; Thu, 7 Mar 2024 22:58:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A01E23D965; Thu, 7 Mar 2024 22:58:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Z4HYD/c/" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A20F02E648; Thu, 7 Mar 2024 22:58:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709852294; cv=none; b=dcN4b/1mNhhLCNeUjJ1j2YoxPb5vyskJ8bQckAAB3SV0XWQqafIiBMIdhmEiAFxLQvrqEU/pJytSKt+fhpR0h9HASq7ADdoy47ALoW0HfyEu4gDHiRXgeSy0wQhdhi7B2uxX9XenaTJfuulIFlwoNpijzLwxKk/3VVfJ0M912P4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709852294; c=relaxed/simple; bh=ZWeH/MoPiO8obvi1BBRa2tCTsg0i4/M7P33Jb8aeLXM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=nv6ZdBDdcI806K8HnlIA1vGoc9TnjO6drJN5hUkulY+lja8bYY7hWrcdyOTx0pxoZSnApaKaiTpX4FNWA2o2sqdPeb1QOFF2GInZolqM6pbo2Af4c+moX2bnWe7wsLBVi67IqkunM07Ty3nhmXO+DvcfknRsmH8CvdpbVJba+To= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Z4HYD/c/; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 74014C433F1; Thu, 7 Mar 2024 22:58:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709852294; bh=ZWeH/MoPiO8obvi1BBRa2tCTsg0i4/M7P33Jb8aeLXM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Z4HYD/c/wJycrlePvu+p5HaG8/6rcihDqcdPd7E3tNvltxk7hSUI9IaUs+70DZl6S r5a97MVhOZULFYMXRtzs+4IoltexYw44FfT7+B8WSeDaIxDPgQZAvIOKC8Z3/mS643 UbP1vocXPV5Vgx4iaumJrx4DQ3wuULt0bFGPGR+rClVC/2bU8+zdMZHRsvkTmyY+MT fSMJZhxidC2R4j0VCQAHOXugUY3Hk9r2300Amcv9duOtG4jQkjVEyXuDizat53SWzA ZCkrRMBd/T7OdyOml6SgULzRxQjf4CKmRdo6AL686rc1a4xVjMUX0hdjrOwsCLj/dt LfFwwFNeyIhbQ== Date: Thu, 7 Mar 2024 23:58:09 +0100 From: Andi Shyti To: Mukesh Kumar Savaliya Cc: konrad.dybcio@linaro.org, andersson@kernel.org, vkoul@kernel.org, wsa@kernel.org, linux-arm-msm@vger.kernel.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, quic_vdadhani@quicinc.com Subject: Re: [PATCH v3] i2c: i2c-qcom-geni: Parse Error correctly in i2c GSI mode Message-ID: References: <20240307205539.217204-1-quic_msavaliy@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240307205539.217204-1-quic_msavaliy@quicinc.com> Hi Mukesh, On Fri, Mar 08, 2024 at 02:25:39AM +0530, Mukesh Kumar Savaliya wrote: > I2C driver currently reports "DMA txn failed" error even though it's > NACK OR BUS_PROTO OR ARB_LOST. Detect NACK error when no device ACKs > on the bus instead of generic transfer failure which doesn't give any > specific clue. > > Make Changes inside i2c driver callback handler function > i2c_gpi_cb_result() to parse these errors and make sure GSI driver > stores the error status during error interrupt. funny note: this is half "imperative mood" :-) A real imperative would be "Pares the error inside i2c_gpi_cb_result()... blah blah blah". No need to resend. > Fixes: d8703554f4de ("i2c: qcom-geni: Add support for GPI DMA") I still don't understand what's the fix here. You are making a generic DMA error to be more specific... where is the bug? What exactly is broken now? Besides, keep in mind, that commits with fixes tags get backported to older kernels (this one dates back to 5.18) and you should also Cc the stable mailing list: Cc: # v5.18+ Thanks, Andi