From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: [PATCH V4 1/3] ACPI, PCI, IRQ: assign ISA IRQ directly during early boot stages To: "Rafael J. Wysocki" References: <1476915664-27231-1-git-send-email-okaya@codeaurora.org> <1476915664-27231-2-git-send-email-okaya@codeaurora.org> Cc: ACPI Devel Maling List , "Rafael J. Wysocki" , Bjorn Helgaas , ravikanth.nalla@hpe.com, Ondrej Zary , Timur Tabi , Christopher Covington , Jon Masters , Alex Williamson , Linux PCI , Andy Gross , linux-arm-msm@vger.kernel.org, "linux-arm-kernel@lists.infradead.org" , wim@djo.tudelft.nl, Len Brown , Linux Kernel Mailing List From: Sinan Kaya Message-ID: <22ad2e6b-e4da-1eba-0d2c-b7b86b2a4dbc@codeaurora.org> Date: Sun, 23 Oct 2016 23:48:32 -0400 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Sender: linux-acpi-owner@vger.kernel.org List-ID: On 10/20/2016 5:39 PM, Rafael J. Wysocki wrote: >> @@ -871,7 +871,7 @@ static int __init acpi_irq_penalty_update(char *str, int used) >> > void acpi_penalize_isa_irq(int irq, int active) >> > { >> > if ((irq >= 0) && (irq < ARRAY_SIZE(acpi_isa_irq_penalty))) >> > - acpi_isa_irq_penalty[irq] = acpi_irq_get_penalty(irq) + >> > + acpi_isa_irq_penalty[irq] = acpi_isa_irq_penalty[irq] + > This looks slightly odd. What about > > + acpi_isa_irq_penalty[irq] += > >> > (active ? PIRQ_PENALTY_ISA_USED : PIRQ_PENALTY_PCI_USING); >> > } Makes sense. -- Sinan Kaya Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.