Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1952448ybf; Sun, 1 Mar 2020 22:28:09 -0800 (PST) X-Google-Smtp-Source: APXvYqz8H/3h2n8Qwl+m6Qk3SH25tc/L0qNXP79CD6U9GPmxIaLdfavQT0eS1WgdCx2QFfIrdOEb X-Received: by 2002:a05:6830:50:: with SMTP id d16mr12333735otp.166.1583130489247; Sun, 01 Mar 2020 22:28:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583130489; cv=none; d=google.com; s=arc-20160816; b=T1c5MugJF+qarub4NKAsYXtBS2AuNtbQscv06DJ3XdcIaKYor2KJgj+jxfg/HKyU28 L2LEqnEAV+YKjuRnsK59qflQ2rG+4xZldiuFKYNl75ptSfyudqLAKzvq7vpXBtHYqCmR MTPPFx/daNPwHTMwOoBAN3N81HSb10q1kWn6CI2DzCHbbYkSm9MtHm4Ulx/3CMyqKICh CcdDEWH7XkunSd3JwTCrXKiaqrWZPTyg26FFHRT8t2DI33QCu3c8cUJZvkUS0OmLroFB d7VnB7gi3J9RGlaNF3Zu/IOY6rOyMuOGNuSDXrPgQ+fZNmZIm6tb0Xcn6HUSzN9UDEfM WnEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:message-id :in-reply-to:subject:cc:to:from:date; bh=9bkO5hq/PSP0cXpGXODzV19KzK0hdstTJrSF2DdH/DI=; b=Xq9hmAzCz6AVsVVee/S1OSd5BrRZw6e6kSApqhkl25HvmNyWbS4JPLlZ6QZ0bbOXy3 dRDiS3ipP6pHFlDwIKoz3NtNOFqmJ2nxS/zV7nobVI3O8HOKCYT2fsovMSG2p9U4vNrJ /CtDFtmJZJUXw6km9YuuvYZQSOsDnjMKnz0blurYU36nQGrchf/Yd7xO+XL7P16EYK5k M0ggEbIPhs9KAu/JAtM7afNhmqYSC9B92gAKBRP3rjSUvcu81vErjuwQjy5TKvWdrg47 rpIiduOhwDlJtvwE9u8bNsiIieFYjfUqBsV3CMjcOKyTuVTl+VSM9rhn2U8qt3y/DIRe 4OQw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d4si1183978otp.214.2020.03.01.22.27.57; Sun, 01 Mar 2020 22:28:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727381AbgCBG1S (ORCPT + 99 others); Mon, 2 Mar 2020 01:27:18 -0500 Received: from kvm5.telegraphics.com.au ([98.124.60.144]:56252 "EHLO kvm5.telegraphics.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726758AbgCBG0X (ORCPT ); Mon, 2 Mar 2020 01:26:23 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by kvm5.telegraphics.com.au (Postfix) with ESMTP id 3091929E8B; Mon, 2 Mar 2020 01:26:20 -0500 (EST) Date: Mon, 2 Mar 2020 17:26:17 +1100 (AEDT) From: Finn Thain To: afzal mohammed cc: linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org, Greg Ungerer , Thomas Gleixner , Geert Uytterhoeven Subject: Re: [PATCH v2 06/18] m68k: Replace setup_irq() by request_irq() In-Reply-To: <20200301061327.GA5229@afzalpc> Message-ID: References: <00b0bf964278dd0bb3e093283994399ff796cca5.1582471508.git.afzal.mohd.ma@gmail.com> <20200229131553.GA4985@afzalpc> <20200301010511.GA5195@afzalpc> <20200301061327.GA5229@afzalpc> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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/ >