From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752081AbbEJBJQ (ORCPT ); Sat, 9 May 2015 21:09:16 -0400 Received: from eddie.linux-mips.org ([148.251.95.138]:33305 "EHLO cvs.linux-mips.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751952AbbEJBJO (ORCPT ); Sat, 9 May 2015 21:09:14 -0400 Date: Sun, 10 May 2015 02:09:09 +0100 (BST) From: "Maciej W. Rozycki" To: Paul Gortmaker cc: linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, "Rafael J. Wysocki" , Len Brown , Pavel Machek , Bjorn Helgaas Subject: Re: [PATCH] x86: rename eisa_set_level_irq to elcr_set_level_irq In-Reply-To: <1431217657-934-1-git-send-email-paul.gortmaker@windriver.com> Message-ID: References: <1431217657-934-1-git-send-email-paul.gortmaker@windriver.com> User-Agent: Alpine 2.11 (LFD 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 9 May 2015, Paul Gortmaker wrote: > This routine has been around for over a decade, but with EISA > being dead and abandoned for about twice that long, the name can > be kind of confusing. The function is going at the PIC Edge/Level > Configuration Registers (ELCR), so rename it as such and mentally > decouple it from the long since dead EISA bus. > > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: "H. Peter Anvin" > Cc: x86@kernel.org > Cc: "Rafael J. Wysocki" > Cc: Len Brown > Cc: Pavel Machek > Cc: Bjorn Helgaas > Signed-off-by: Paul Gortmaker > --- > > [This was in the "delete EISA bus supoort for x86" series, but since > we aren't going to apply that, we might as well steal this from it.] Reviewed-by: Maciej W. Rozycki FWIW it looks good to me, thanks. Especially for reusing the good parts of your original change. :) While cleaning this stuff up you might as well consider getting rid of the embedded numeric 0x4d0 port reference too and adding macros like PIC_MASTER_ELCR and PIC_SLAVE_ELCR to to use them... > diff --git a/arch/x86/pci/irq.c b/arch/x86/pci/irq.c > index 5dc6ca5e1741..9bd115484745 100644 > --- a/arch/x86/pci/irq.c > +++ b/arch/x86/pci/irq.c > @@ -146,19 +146,20 @@ static void __init pirq_peer_trick(void) > > /* > * Code for querying and setting of IRQ routes on various interrupt routers. > + * PIC Edge/Level Control Registers (ELCR) 0x4d0 & 0x4d1. > */ > > -void eisa_set_level_irq(unsigned int irq) > +void elcr_set_level_irq(unsigned int irq) > { > unsigned char mask = 1 << (irq & 7); > unsigned int port = 0x4d0 + (irq >> 3); ... here, and a bunch of places elsewhere. Your change is of course good as it stands though, that would have to be a separate clean-up anyway. Maciej