mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Nagavarapu, Dileep Kumar" <dnagavar@amd.com>
To: Andy Shevchenko <andriy.shevchenko@intel.com>
Cc: "Jonathan Cameron" <jic23@kernel.org>,
	"David Lechner" <dlechner@baylibre.com>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Andy Shevchenko" <andy@kernel.org>,
	"Michal Simek" <michal.simek@amd.com>,
	"Conall O'Griofa" <conall.ogriofa@amd.com>,
	linux-iio@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, git@amd.com,
	"Sai Krishna Potthuri" <sai.krishna.potthuri@amd.com>
Subject: Re: [PATCH v5 14/16] iio: adc: xilinx-xadc: Split driver into core and platform files
Date: Tue, 24 Nov 2026 22:23:29 +0530	[thread overview]
Message-ID: <f7273b47-0835-4afb-9e45-ddf729f05b8e@amd.com> (raw)
In-Reply-To: <awVzDqxuwsOjoFCi@ashevche-desk.local>



On 11/24/2026 4:50 PM, Andy Shevchenko wrote:
> Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
> 
> 
> 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? 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?


>> 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

> 
> --
> With Best Regards,
> Andy Shevchenko


  reply	other threads:[~2026-11-24 16:53 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-10  5:01 [PATCH v5 00/16] iio: adc: xilinx-xadc: Add I2C interface support for System Management Wizard Dileep Kumar Nagavarapu
2026-11-10  5:01 ` [PATCH v5 01/16] iio: adc: xilinx-xadc: Correct write edge in CFG Dileep Kumar Nagavarapu
2026-11-10  5:01 ` [PATCH v5 02/16] iio: adc: xilinx-xadc: Fix coding style issues Dileep Kumar Nagavarapu
2026-11-18  8:51   ` Joshua Crofts
2026-11-10  5:01 ` [PATCH v5 03/16] iio: adc: xilinx-xadc: Use kernel integer types Dileep Kumar Nagavarapu
2026-11-10 11:15   ` Joshua Crofts
2026-11-10  5:01 ` [PATCH v5 04/16] iio: adc: xilinx-xadc: Drop unnecessary masking and dead code Dileep Kumar Nagavarapu
2026-11-18  8:52   ` Joshua Crofts
2026-11-10  5:01 ` [PATCH v5 05/16] iio: adc: xilinx-xadc: Use bitfield helpers and bit macros Dileep Kumar Nagavarapu
2026-11-13  3:07   ` Jonathan Cameron
2026-11-10  5:01 ` [PATCH v5 06/16] iio: adc: xilinx-xadc: Use guard()/scoped_guard() for spinlock locking Dileep Kumar Nagavarapu
2026-11-10  5:01 ` [PATCH v5 07/16] iio: adc: xilinx-xadc: Use guard() for mutex locking Dileep Kumar Nagavarapu
2026-11-10 16:13   ` Andy Shevchenko
2026-11-10  5:01 ` [PATCH v5 08/16] iio: adc: xilinx-xadc: Simplify common coding patterns Dileep Kumar Nagavarapu
2026-11-10  5:01 ` [PATCH v5 09/16] iio: adc: xilinx-xadc: Add unit suffixes to macro names Dileep Kumar Nagavarapu
2026-11-10 16:18   ` Andy Shevchenko
2026-11-10  5:01 ` [PATCH v5 10/16] iio: adc: xilinx-xadc: Include appropriate header files Dileep Kumar Nagavarapu
2026-11-10  5:01 ` [PATCH v5 11/16] iio: adc: xilinx-xadc: Add clarifying comments Dileep Kumar Nagavarapu
2026-11-10  5:01 ` [PATCH v5 12/16] iio: adc: xilinx-xadc: Refine Zynq read/write error handling on timeout/interrupt Dileep Kumar Nagavarapu
2026-11-10 16:21   ` Andy Shevchenko
2026-11-24 16:54     ` Nagavarapu, Dileep Kumar
2026-11-24 17:24       ` Andy Shevchenko
2026-11-10  5:01 ` [PATCH v5 13/16] iio: adc: xilinx-xadc: Add helper functions for the device setup Dileep Kumar Nagavarapu
2026-11-10 16:25   ` Andy Shevchenko
2026-11-17  8:07     ` Nagavarapu, Dileep Kumar
2026-11-10  5:01 ` [PATCH v5 14/16] iio: adc: xilinx-xadc: Split driver into core and platform files Dileep Kumar Nagavarapu
2026-11-10 16:29   ` Andy Shevchenko
2026-11-24 11:03     ` Nagavarapu, Dileep Kumar
2026-11-24 11:20       ` Andy Shevchenko
2026-11-24 16:53         ` Nagavarapu, Dileep Kumar [this message]
2026-11-24 17:05           ` Andy Shevchenko
2026-11-13  3:16   ` Jonathan Cameron
2026-11-10  5:02 ` [PATCH v5 15/16] iio: adc: xilinx-xadc: Add .setup_channels() to struct xadc_ops Dileep Kumar Nagavarapu
2026-11-10  5:02 ` [PATCH v5 16/16] iio: adc: xilinx-xadc: Add I2C interface support Dileep Kumar Nagavarapu
2026-11-10 16:34   ` Andy Shevchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f7273b47-0835-4afb-9e45-ddf729f05b8e@amd.com \
    --to=dnagavar@amd.com \
    --cc=andriy.shevchenko@intel.com \
    --cc=andy@kernel.org \
    --cc=conall.ogriofa@amd.com \
    --cc=dlechner@baylibre.com \
    --cc=git@amd.com \
    --cc=jic23@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=michal.simek@amd.com \
    --cc=nuno.sa@analog.com \
    --cc=sai.krishna.potthuri@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®