Linux M68K Architecture development
 help / color / mirror / Atom feed
From: Finn Thain <fthain@telegraphics.com.au>
To: afzal mohammed <afzal.mohd.ma@gmail.com>
Cc: linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org,
	Greg Ungerer <gerg@linux-m68k.org>,
	Thomas Gleixner <tglx@linutronix.de>,
	Geert Uytterhoeven <geert@linux-m68k.org>
Subject: Re: [PATCH v2 06/18] m68k: Replace setup_irq() by request_irq()
Date: Mon, 2 Mar 2020 17:26:17 +1100 (AEDT)	[thread overview]
Message-ID: <alpine.LNX.2.22.394.2003021717150.8@nippy.intranet> (raw)
In-Reply-To: <20200301061327.GA5229@afzalpc>

On Sun, 1 Mar 2020, afzal mohammed wrote:

> Hi,
> 
> On Sun, Mar 01, 2020 at 02:26:33PM +1100, Finn Thain wrote:
> 
> > BTW, how do you distinguish between "new code" and "legacy code"?
> 
> setup_irq() was used in olden days, nowadays request_irq(). Though there 
> are exceptions of trying to use setup_irq() even recently, but there has 
> been pushback when people notice it like Thomas had done [1], and i saw 
> recently one in mips smp support series & suggested not to use it (that 
> code iiuc they had it out of upstream for a long time).
> 
> So existence of setup_irq() in general i have considered to be legacy 
> code.
> 

I see. You're defining "legacy code" in this case to mean code that uses a 
deprecated API, that needs to be modernized.

> > And why would you choose to do that when you are writing a tree-wide 
> > semantic patch?
> 
> The way i came up with this series is that while trying to understand 
> irq internals, came across [1], so then decided to do cleanup and i 
> thought scripting it would make it easy & also had been wanting to get 
> familiar w/ cocci, so decided to try it, but also realized that i cannot 
> fully automate it (Julia said my patch is okay, so i felt cocci cannot 
> fully automate w/o investing considerable effort in cocci), so even w/ 
> this v2, there are lot of manual changes, though cocci made it easier.
> 
> > I took Geert's comments to be architecture agnostic but perhaps I 
> > misunderstood.
> 
> And Thomas suggested to make improvements over script generated o/p [2] 
> and only consider scripting as an initial first step. So the way i am 
> making changes now is to take suggestions from Thomas to be applied 
> treewide, at the same time also take care of suggestions from 
> arch/subsytem maintainer/mailing list in the relevant patches, since 
> arch maintainers are the ones owning it.
> 

Thanks for the detailed explanation.

I had assumed that your intention was to find a consensus so that the 
whole tree could be consistently and automatically improved. My mistake.

> Sometimes had a feeling as though the changes in this series is akin to 
> cutting the foot to fit the shoe ;), but still went ahead as it was 
> legacy code, easier & less error prone. But now based on the overall 
> feedback, to proceed, i had to change.
> 

Not based on feedback from me I hope -- I have no veto in this case, as 
you can see from MAINTAINERS.

> Regards
> afzal
> 
> [1] https://lkml.kernel.org/r/alpine.DEB.2.20.1710191609480.1971@nanos
> [2] https://lore.kernel.org/lkml/87sgiwma3x.fsf@nanos.tec.linutronix.de/
> 

  reply	other threads:[~2020-03-02  6:27 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-24  0:47 [PATCH v2 00/18] genirq: Remove setup_irq() afzal mohammed
2020-02-24  0:50 ` [PATCH v2 06/18] m68k: Replace setup_irq() by request_irq() afzal mohammed
2020-02-26  0:42   ` Greg Ungerer
2020-02-26  1:11     ` Finn Thain
2020-02-26  2:11       ` Greg Ungerer
2020-02-26  6:39         ` Finn Thain
2020-02-26 12:26           ` Greg Ungerer
2020-02-26 22:31             ` Finn Thain
2020-02-27  6:37               ` Greg Ungerer
2020-02-27 22:19                 ` Finn Thain
2020-02-27  8:18     ` afzal mohammed
2020-02-27  8:32       ` Geert Uytterhoeven
2020-02-27 12:06         ` afzal mohammed
2020-02-27 22:38           ` Finn Thain
2020-02-29 12:41             ` afzal mohammed
2020-02-28  7:05       ` Greg Ungerer
2020-02-29 12:47         ` afzal mohammed
2020-02-29 13:15   ` afzal mohammed
2020-02-29 23:11     ` Finn Thain
2020-03-01  1:05       ` afzal mohammed
2020-03-01  3:26         ` Finn Thain
2020-03-01  6:13           ` afzal mohammed
2020-03-02  6:26             ` Finn Thain [this message]
2020-03-04  1:24               ` afzal mohammed

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=alpine.LNX.2.22.394.2003021717150.8@nippy.intranet \
    --to=fthain@telegraphics.com.au \
    --cc=afzal.mohd.ma@gmail.com \
    --cc=geert@linux-m68k.org \
    --cc=gerg@linux-m68k.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-m68k@lists.linux-m68k.org \
    --cc=tglx@linutronix.de \
    /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