From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795910658; b=Te+xfuq2DiGoD6hSSOh1jfTzQIX22S2BtsTOxFxJOOhQhh5hCDKmFxp4ggHOiVxxfd7A l/zFbtUIiAwkQ5O8q6Z2FFs27SJYm0BNWvaLRlFbbe30uqNPqJL4WuWlygRKluU+SUAI/ NEg9KVn8B9w9gGsKEYYgDv6vIXIZcMTZ+6Q+/klPu63G3O2Or40c5adBX9C0HGunK4huS 48G/gQXid9/9r0pBfNUK/RpQbIgObqqOwllbnI49cKDGnfqZq2ZY5eGMu4JjvkOFYPHkE Ke448NrEtoi0pM7ijzmNw9mJ6UJsSaRfPjW3KVAgW+sakhF5qashbi4qBECGWVRsXCA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795910658; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: In-Reply-To:References:X-Mailer:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=8YroR7lcqrT9INWaQ+PHxbfQ+vNj58fhfDwYO0bDjJg=; b=Yfnkh5fxxh228HVo/4sWglDEbHWExvj7cRTCQwfKoGsareGyw24SMh6acNUqOhL5ZlGh oGnpfrMeDH4261aSYkZ5solUy1wsZlf/GX5Ip8U+XvDqz9GPCa4IHyOzt1Z4ZLUZoOYqS tCzvjhRhifzrZ5ajpBTSQj1Pe0uriyVFlq9X35o7sdY48Wa0GesUAso6JuKJ1Yp6QMn5o qGXg7xt22T33xDPC9HplkThxLYgwlgg2hJtp1cadRPDiMvawnQF/7vuOuAwu73aIxIQE3 Cv82WRJXqQTcHcQsrYZUfgjwZEXZwmZAkftv/QjyD/zuAVMZ7JIJ1/lZLDSE+jQ8eeA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=B3VblsRT; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 38CAE606A31C; Sun, 29 Nov 2026 00:04:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=B3VblsRT Received: by smtp.kernel.org (Postfix) with ESMTPSA id 406BB1F00897; Sun, 29 Nov 2026 00:04:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795910658; bh=8YroR7lcqrT9INWaQ+PHxbfQ+vNj58fhfDwYO0bDjJg=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=B3VblsRTGKpnaBRG9jzBWTADe2jVfMeUcOHnGql+B+X4yL4vmKeCZGEBnflMDn9Ap ZKg/XEqmTGt+h1/4hz+ANjfqNS+gZULWAFGnJf25tPIIT9VxIRLl0K5R2RGUWvj7Mh P+HVrOnCikEfdo1gYt2ecv2yDnO7gYlpSTeyNVIO6m3+kFj9G0Ef5YiVrVhrDtOpPP 4X6x56WO6fsSO+ihjNb71iAA/JawpITiurg4SJdLlgdTC/FfUL2ufumPrRd6/0vxkn Shdku8U9c5M2PfnvA1IAyB7pyGtAVucEuLuFeywAZukIwFrrFbLxqXMKRdeKJKgY78 6Bt0AegfoyhZA== Date: Sun, 29 Nov 2026 00:04:10 +0000 From: Jonathan Cameron To: Andy Shevchenko Cc: "Nagavarapu, Dileep Kumar" , David Lechner , Nuno =?UTF-8?B?U8Oh?= , Andy Shevchenko , Michal Simek , Conall O'Griofa , linux-iio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, git@amd.com, Sai Krishna Potthuri Subject: Re: [PATCH v5 14/16] iio: adc: xilinx-xadc: Split driver into core and platform files Message-ID: <20261129000410.40db836b@jic23-hlaptop> In-Reply-To: References: <20261110050201.1850399-1-dileepkumar.nagavarapu@amd.com> <20261110050201.1850399-15-dileepkumar.nagavarapu@amd.com> <42949fe9-b336-40e7-8a8e-43f6d24da9bc@amd.com> X-Mailer: Claws Mail 4.4.0 (GTK 3.24.52; x86_64-pc-linux-gnu) X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 24 Nov 2026 19:05:17 +0200 Andy Shevchenko wrote: > On Tue, Nov 24, 2026 at 10:23:29PM +0530, Nagavarapu, Dileep Kumar wrote: > > On 11/24/2026 4:50 PM, Andy Shevchenko wrote: > > > On Tue, Nov 24, 2026 at 04:33:59PM +0530, Nagavarapu, Dileep Kumar wrote: > > > > On 11/10/2026 9:59 PM, Andy Shevchenko wrote: > > > > > On Tue, Nov 10, 2026 at 10:31:59AM +0530, Dileep Kumar Nagavarapu wrote: > > ... > > > > > > > --- > > > > > > drivers/iio/adc/Kconfig | 8 +- > > > > > > drivers/iio/adc/Makefile | 5 +- > > > > > > drivers/iio/adc/xilinx-xadc-core.c | 690 +-------------- > > > > > > drivers/iio/adc/xilinx-xadc-events.c | 1 + > > > > > > ...inx-xadc-core.c => xilinx-xadc-platform.c} | 818 +----------------- > > > > > > drivers/iio/adc/xilinx-xadc.h | 27 + > > > > > > 6 files changed, 72 insertions(+), 1477 deletions(-) > > > > > > > > > > This is weird statistics... I think it's a bug in Git. What it did, it copies > > > > > -core.c twice and uses statistics on each file after that without duplicating > > > > > the *original* amount of lines. > > > > > > > > I generated the patches using the following command: "git format-patch \ > > > > -M \ > > > > -C10% \ > > > > --histogram \ > > > > --base=origin/togreg \ > > > > --cover-letter \ > > > > > > > --subject-prefix="PATCH v5" \ > > > > > > Hint: You can use -v5 instead of the above long parameter. > > > > > > > origin/togreg..HEAD" > > > > > > > > > > If I remove the 10% similarity threshold from the command, > > > > > > 10% is way too low threshold! > > > > Is it OK to use `-M -C --histogram` (default thresholds) instead? > > Yes. > No. This makes it very difficult to see what is actually moving. I found the result to be near unreviewable in patch form. I want to see stuff disappear from one file and appear in another and -C destroys that. So please don't use -C. Jonathan > > With it, xilinx-xadc-platform.c is shown as a new file with all lines as > > additions rather than as a copy of xilinx-xadc-core.c. The statistics > > then look like this: > > > > drivers/iio/adc/Kconfig | 8 +- > > drivers/iio/adc/Makefile | 5 +- > > drivers/iio/adc/xilinx-xadc-core.c | 688 +------------------------ > > drivers/iio/adc/xilinx-xadc-events.c | 1 + > > drivers/iio/adc/xilinx-xadc-platform.c | 677 ++++++++++++++++++++++++ > > drivers/iio/adc/xilinx-xadc.h | 28 + > > 6 files changed, 733 insertions(+), 674 deletions(-) > > > > Are these statistics OK? > > Yes. > > > > > xilinx-xadc-platform.c is no longer detected as a copy of the original > > > > xilinx-xadc-core.c, which is not the expected output. > > > > Is there a better command or approach that would allow Git to recognize > > > > xilinx-xadc-platform.c as being split from the original file while also > > > > producing meaningful diff statistics? > > > > > > But it's not a full copy. Have you tried to apply the patch from the mailing > > > list and see if `git am` correctly recognises the split? > > > > Yes. I applied the v5 series from the mailing list with `git am` > > and all patches applied without errors > > So, then it seems like a Git bug as I pointed earlier, and hence it's fine > to use 10% threshold in _this_ case. >