Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1004482ybf; Sat, 29 Feb 2020 22:14:14 -0800 (PST) X-Google-Smtp-Source: APXvYqxHzXU2GoxBimrzMi2aW8zT5g/4PGJVGh3/XldyF7ZLety1VFkQ6ON6/wdK7n6G3sUR5eyW X-Received: by 2002:a9d:6457:: with SMTP id m23mr9166814otl.162.1583043253917; Sat, 29 Feb 2020 22:14:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583043253; cv=none; d=google.com; s=arc-20160816; b=VnG/hs9IclPIKEEurUqQfQIZBF5MbuhMsNXY3y1MHY2iU+djOKJbVPsIjpuufiucXS 70Zi+4l+oTYEaK/vN3S9FO1rSQFSN7g2t6l5tuXaMpD7Y6EhALObFezQWy1eDA9fdYJZ isApM3ytPet0xa0ZbpVzLAH75NMaHMS5YXq/Oi+ldzn1RC+GDVB4S2SD7BPeFXTnRjR5 hUCSvWEdRAkHqyXq+1vDnlpjYAcuLr+PH5+8RUljfYhwadFCuWP63fm3tuzQebEqnwZR AJPt/Ah3tZmcoHllRSaDwvry050bM0IQwuL55w2MU1xPVxPTSwa6Xq/OLbD6BI61CnnQ sWqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=adtXDOF8q93RKc7Fdg0vhPYRjwvZE/M4lWYuzaWxw2U=; b=xIJ4vgD4kZ4r2ikuWMqthtwFGN+9JinyLg6D538O3VK/02fywWz71jz2eQBae+nY9n i+x3q+ooRmDJexPZH2hDpvSudhcUyCL6oA02RNmKd0ZVwF13W5k7igqkQb58pOxNLf5N +8utHpufPpW0ULNuze0vnbnS+g23cqBZbN6WOraCDaI+U3+6us8z+V69cG1Wn+v34byS hSmJB/WVqgWJG0zIbCux6CnHAHFXl1OhLAirR1H1R/uIkgjeqpt2IIsE14zIPkW8NlEn SrOrd2u3n8VeL7uVErOHI1ZLFN9+Q3yHhtds6M4HpzVM+KoWOeR+UoucVnbisxhWAxNV IJLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DADKTDqY; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d20si4087011oti.311.2020.02.29.22.13.46; Sat, 29 Feb 2020 22:14:13 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DADKTDqY; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725877AbgCAGNb (ORCPT + 99 others); Sun, 1 Mar 2020 01:13:31 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:46939 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725710AbgCAGNb (ORCPT ); Sun, 1 Mar 2020 01:13:31 -0500 Received: by mail-pg1-f194.google.com with SMTP id y30so3719236pga.13 for ; Sat, 29 Feb 2020 22:13:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=adtXDOF8q93RKc7Fdg0vhPYRjwvZE/M4lWYuzaWxw2U=; b=DADKTDqYabDe8pHek52fRXJrBEqyx6tf3VFhYxSUNX6TJGt0a10fKs6hQFyrq3iY6U 9Hs2fz64HPv+DpPx9t9wYxF8I7VMlorkMClqhkAmp9GpDeGNFXvdfg7MxttI7F79sy+u BD5KjVjerq93Lo96YgWHpM8sYIsg9u9vhxV81n80Kjrs87ToVYozYVnKG7PZkBOV/thj ZAf3NOyl5GeBS5GckBDK33yY2Vzv2c/dNR2/omQOkCd7bXaXRFMn21JAj+slpBNdMJ2j DD0rv9azrtvhDZg7OoP7hKADy1fIgC/2O/nKQKzkc/ILN7o6Wv6VW1InU3uFD8nNY2LM 7pMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=adtXDOF8q93RKc7Fdg0vhPYRjwvZE/M4lWYuzaWxw2U=; b=eoCSrZo1jo8MfjSpTgeRmHEUA5m+5UwW2DhKkqgJ5Jim9LbXbrfBBO6v70RC9CU6/s Fbk5Ssq5iQsxXT1oldJ2YBb+Jnegfb78IU1kt9ascIN/+Joy0aRSzMjki/B54ce7L21n 4w91YS0vje9En0Gm1S60K8WbpZhtEAy/faMIN9yQ7JJ1zDjBDZNJ0U6nBc0HdEs/urez 3qqimAkDA18bQwEmT4m+b0IaR0gR9dSGERZAojJ+Pw3NnSIKzc3CDs6EIgslbg4quOtE FavzkXx7mkdwWKZpPntJx8156EIYSrx7ElibOQXwhUmJtJrQev/CwEjgZGVBz8zIFkUp O8ZQ== X-Gm-Message-State: APjAAAWxrDJgLzVdmSd2wZQ12ymCdtFLCIXHN8wNiLaxPghibauH4Jip AsmMsPiMVEwaGzdOtgh1gtU= X-Received: by 2002:a63:d0b:: with SMTP id c11mr12535161pgl.296.1583043210548; Sat, 29 Feb 2020 22:13:30 -0800 (PST) Received: from localhost ([106.51.232.35]) by smtp.gmail.com with ESMTPSA id c15sm15231747pgk.66.2020.02.29.22.13.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 29 Feb 2020 22:13:29 -0800 (PST) Date: Sun, 1 Mar 2020 11:43:27 +0530 From: afzal mohammed To: Finn Thain 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() Message-ID: <20200301061327.GA5229@afzalpc> References: <00b0bf964278dd0bb3e093283994399ff796cca5.1582471508.git.afzal.mohd.ma@gmail.com> <20200229131553.GA4985@afzalpc> <20200301010511.GA5195@afzalpc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > 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. 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. 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/