Return-Path: Received: from ozlabs.org (bilbo.ozlabs.org [103.22.144.67]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3zd3dr2fHBzDqln for ; Fri, 9 Feb 2018 16:34:08 +1100 (AEDT) From: Michael Ellerman To: Alexey Kardashevskiy , Michael Ellerman , linuxppc-dev@lists.ozlabs.org Cc: Rob Herring , Alistair Popple , Bjorn Helgaas Subject: Re: [kernel] powerpc/pci: Fix broken INTx configuration via OF In-Reply-To: <1cb9bd56-3083-388c-5ad1-90a2b1d107a1@ozlabs.ru> References: <3zd1Yw5kRtz9t3C@ozlabs.org> <1cb9bd56-3083-388c-5ad1-90a2b1d107a1@ozlabs.ru> Date: Fri, 09 Feb 2018 16:34:07 +1100 Message-ID: <87y3k2wwts.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Alexey Kardashevskiy writes: > On 09/02/18 15:00, Michael Ellerman wrote: >> On Thu, 2018-02-08 at 05:33:54 UTC, Alexey Kardashevskiy wrote: >>> Commit 59f47eff03a0 ("powerpc/pci: Use of_irq_parse_and_map_pci() helper") >>> correctly states that of_irq_parse_and_map_pci() does the same thing as >>> of_irq_parse_pci() does as it simply calls >>> of_irq_parse_pci() and irq_create_of_mapping(). >>> >>> However of_irq_parse_and_map_pci() not only returns 0 for success and >>> negative value for an error but also a positive virq value from >>> irq_create_of_mapping() which the mentioned commit ignores and >>> INTx config fails. >>> >>> This fixes the of_irq_parse_and_map_pci() return value handling. >>> >>> Fixes: 59f47eff03a0 "powerpc/pci: Use of_irq_parse_and_map_pci() helper" >>> Signed-off-by: Alexey Kardashevskiy >> >> Applied to powerpc fixes, thanks. >> >> https://git.kernel.org/powerpc/c/560c0f978155282e36f33d21b2aeae > > > there is a v2, this one is not 100% correct Yeah I just saw, I'll back this out. cheers