Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp372015lqc; Thu, 7 Mar 2024 23:02:24 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCX/BqImr5nSZdYfZZ1K2/twWUwEYoEqzZlq0xXV4GEiRD/WWV3CPrZwTc5V4BkK4yR7vC1jD1dCxUkFo4mbeb2+aDFehw4m0VX8wpTyHw== X-Google-Smtp-Source: AGHT+IE25POEka0JxkZTyycuI7XU0zHDXhV3F3rICcd41t94i5KBQWbDz/BOuV+JggYMh+Slihdn X-Received: by 2002:a17:90a:2e07:b0:29a:83da:ed62 with SMTP id q7-20020a17090a2e0700b0029a83daed62mr18299007pjd.4.1709881344642; Thu, 07 Mar 2024 23:02:24 -0800 (PST) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id i16-20020a17090ad35000b0029b67f9437csi3243973pjx.10.2024.03.07.23.02.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 23:02:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-96557-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=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b="a5r/nxFN"; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-96557-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96557-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 296C528229E for ; Fri, 8 Mar 2024 07:02:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 71FF34EB41; Fri, 8 Mar 2024 07:02:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="a5r/nxFN" 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 8928F1CFB2; Fri, 8 Mar 2024 07:02:15 +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=1709881335; cv=none; b=I5sRy2WcfkEHIGjlJEWu6bdyQg1ubOMpbYZVbwQSqbcP9lMFvB0b1xOV3csTdAoMG1TcOB1k4Y25osLphIIK908/V/DxdRJqawvIu1ionXUsOAepKoGVPSmFjXCAHVPS1WElI5i42RguZoMGoBXp+MQ7efIVbUA6gJqWwCIQvsg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709881335; c=relaxed/simple; bh=iTLENVg3/Y3YtimadfoWFR5x7fj4yBYLoTVs3XljBhI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ALoE/Iw8pytXOg+HXR7W44NPzlij5U2O1bhVSm7cf+5OvJLDEk7d4sp2rkAyxIiMSJGbPXZfWnSMnXiT8F00yOZtF6cCD/g4O7aWnBlMoqZ64PO6aIosrUQRT6g2+kQrlA7VqNID2DSVsBoje6SK6VuvqM7ISI7dnkkwOg+voHM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=a5r/nxFN; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 277D1C433C7; Fri, 8 Mar 2024 07:02:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709881335; bh=iTLENVg3/Y3YtimadfoWFR5x7fj4yBYLoTVs3XljBhI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=a5r/nxFNoA9OaeVntqzq6Bwqr+WsxPU8YQ5VdWAWOqe+ho4kZqxjAJ8MjNg3RKi/R 1Rmm9U+vJ/3t4Brwv6zdRu7qB4A7KcMX1Lm+cW6MQ8uK9fsyrH3aS6fFcQJOGE5+4Y 6T6thBj7FXIUv15Iz3Et6XaMyvdUz+VLldnA0rbtNtloK3iPI9iEmiqcBmdO0NV2wa 0z+zGkwEqtUK/wXIgK9LLqPnQ3RhPyqJriRnj+fRsgGx9pJUgOkQJdnH/6jy5XnXiN CD/x5p7mwLsUqatUBIGfAngpRuZWTgQUSarpPl7K5WFeL9EgHA/pfQLkvxbKNEe8Pg KYqjQz5zM/aHg== Date: Fri, 8 Mar 2024 08:02:10 +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> <9dbe987a-fdd1-4bec-b350-5936abf69b1b@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: <9dbe987a-fdd1-4bec-b350-5936abf69b1b@quicinc.com> Hi Mukesh, .. > > > 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? > > > This is about being particular while reporting specific error. > Like i mentioned, instead of generic DMA transfer error, it should be > particular error 1) NACK 2) BUT_PROTO 3)ARB_LOST. > Ofcourse when data transfer via DMA fails, it can be considered as > DMA Txfer fail. > In summary so far driver was considering all failure as txfer failure, > but i2c has errors which are kind of response/condition on the bus. I understand that, but what I need to know is: does the system crash? does the system act in unexpected way? Moving from "you received an error" to "you received a nack" is not a fix, it's an improvement and it should not have the Fixes tag. Having the Fixes tag decides which path this patch will take to to reach upstream. It's important because after it gets to upstream other people will take your patch and backport it older kernels. I want to avoid this extra work when not necessary. > Sorry if it confusing still, but please let me know if anything required to > be updated in commit log which can bring clarity. > > > 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+ > > Sure, will add into CC. was waiting for reviewed-by tag. No need to resend. Thanks, Andi