public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: Kurt Borja <kuurtb@gmail.com>
Cc: platform-driver-x86@vger.kernel.org, Armin Wolf <W_Armin@gmx.de>,
	 Mario Limonciello <mario.limonciello@amd.com>,
	 Hans de Goede <hdegoede@redhat.com>,
	Dell.Client.Kernel@dell.com,  LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v9 11/14] platform/x86: Split the alienware-wmi driver
Date: Mon, 10 Feb 2025 13:53:05 +0200 (EET)	[thread overview]
Message-ID: <c314c485-7a6f-b10a-2d80-45a8c5fb331e@linux.intel.com> (raw)
In-Reply-To: <D7MBDPIDK7XS.3DONIQK22EIBH@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2450 bytes --]

On Fri, 7 Feb 2025, Kurt Borja wrote:

> On Fri Feb 7, 2025 at 10:05 AM -05, Ilpo Järvinen wrote:
> > On Fri, 7 Feb 2025, Kurt Borja wrote:
> >
> >> Split alienware-wmi WMI drivers into different files. This is done
> >> seamlessly by copying and pasting, however some blocks are reordered.
> >> 
> >> Reviewed-by: Armin Wolf <W_Armin@gmx.de>
> >> Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
> >> Signed-off-by: Kurt Borja <kuurtb@gmail.com>
> >
> > Hi,
> >
> > Can you please check there's no error in driver_data assignments as the 
> > numbers in removed & added lines do not match:
> 
> Hi Ilpo,
> 
> There was indeed a wrong assignment to Alienware m16 r1 AMD, I'm not
> really sure how it happened but it's fixed now!
> 
> I'll send a v10. I apologize for the noise.
> 
> >
> > $ git diff-tree -p 73224c076cf2fa2968d61584c62937f6180c8e71 | grep driver_data | rev | sort | rev | uniq -c
> 
> Thanks for this amazing trick btw.

Apparently the rev trick wouldn't have been even necessary in this case 
but writing those things are a second nature to me. When reviewing 
especially move changes, one has to have a bag full of tricks. :-)

It is one of the reasons why I prefer to have move patches do as little 
extra work as possible because I can use pipelines to verify the pre and 
post content is identical.

I usually starting by diffing - and + lines in the diff which is how I 
came across this one too. In the best case there are no code line changes 
at all but all changes are in the boilerplate, it gives very high 
confidence on the move being done correctly. When a rebase conflicts, 
everyone (me included), might introduce unintended changes to move-only 
patches so I tend to check even my own move patches in similar fashion to 
avoid making stupid mistakes.

Even the diff of diffs wouldn't get me to 100%, it find that <5% that 
differs so I can focus on whether it is sound.

> 
> ~ Kurt
> 
> >       1 +               awcc = id->driver_data;
> >       1 -               awcc = id->driver_data;
> >       4 +               .driver_data = &generic_quirks,
> >       5 -               .driver_data = &generic_quirks,
> >       7 +               .driver_data = &g_series_quirks,
> >       6 -               .driver_data = &g_series_quirks,
> >
> > (That commit id is from my staging tree, not available to you but it's 
> > this patch.)
> 

-- 
 i.

  reply	other threads:[~2025-02-10 11:53 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-07 14:07 [PATCH v9 00/14] platform/x86: alienware-wmi driver rework Kurt Borja
2025-02-07 14:07 ` [PATCH v9 01/14] platform/x86: alienware-wmi: Add a state container for LED control feature Kurt Borja
2025-02-07 14:07 ` [PATCH v9 02/14] platform/x86: alienware-wmi: Add WMI Drivers Kurt Borja
2025-02-07 14:07 ` [PATCH v9 03/14] platform/x86: alienware-wmi: Add a state container for thermal control methods Kurt Borja
2025-02-07 14:07 ` [PATCH v9 04/14] platform/x86: alienware-wmi: Refactor LED " Kurt Borja
2025-02-07 14:07 ` [PATCH v9 05/14] platform/x86: alienware-wmi: Refactor hdmi, amplifier, deepslp methods Kurt Borja
2025-02-07 14:07 ` [PATCH v9 06/14] platform/x86: alienware-wmi: Refactor thermal control methods Kurt Borja
2025-02-07 14:07 ` [PATCH v9 07/14] platform/x86: alienware-wmi: Split DMI table Kurt Borja
2025-02-07 14:07 ` [PATCH v9 08/14] MAINTAINERS: Update ALIENWARE WMI DRIVER entry Kurt Borja
2025-02-07 14:07 ` [PATCH v9 09/14] platform/x86: Rename alienware-wmi.c Kurt Borja
2025-02-07 14:07 ` [PATCH v9 10/14] platform/x86: Add alienware-wmi.h Kurt Borja
2025-02-07 14:07 ` [PATCH v9 11/14] platform/x86: Split the alienware-wmi driver Kurt Borja
2025-02-07 15:05   ` Ilpo Järvinen
2025-02-07 15:21     ` Kurt Borja
2025-02-10 11:53       ` Ilpo Järvinen [this message]
2025-02-10 13:47         ` Kurt Borja
2025-02-10 14:07           ` Ilpo Järvinen
2025-02-11  0:08             ` Kurt Borja
2025-02-07 14:07 ` [PATCH v9 12/14] platform/x86: dell: Modify Makefile alignment Kurt Borja
2025-02-07 14:07 ` [PATCH v9 13/14] platform/x86: Update alienware-wmi config entries Kurt Borja
2025-02-07 14:07 ` [PATCH v9 14/14] platform/x86: alienware-wmi: Update header and module information Kurt Borja

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=c314c485-7a6f-b10a-2d80-45a8c5fb331e@linux.intel.com \
    --to=ilpo.jarvinen@linux.intel.com \
    --cc=Dell.Client.Kernel@dell.com \
    --cc=W_Armin@gmx.de \
    --cc=hdegoede@redhat.com \
    --cc=kuurtb@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mario.limonciello@amd.com \
    --cc=platform-driver-x86@vger.kernel.org \
    /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