From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751063AbeAYGIj (ORCPT ); Thu, 25 Jan 2018 01:08:39 -0500 Received: from ozlabs.org ([103.22.144.67]:47029 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750734AbeAYGIi (ORCPT ); Thu, 25 Jan 2018 01:08:38 -0500 From: Michael Ellerman To: Rob Herring Cc: "linux-kernel\@vger.kernel.org" , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev Subject: Re: [PATCH] powerpc: pseries: use irq_of_parse_and_map helper In-Reply-To: References: <20180104224542.15333-4-robh@kernel.org> <878tcpoyku.fsf@concordia.ellerman.id.au> Date: Thu, 25 Jan 2018 17:08:33 +1100 Message-ID: <87inbqv5b2.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rob Herring writes: > On Tue, Jan 23, 2018 at 12:53 AM, Michael Ellerman wrote: >> Rob Herring writes: >> >>> Instead of calling both of_irq_parse_one and irq_create_of_mapping, call >>> of_irq_parse_and_map instead which does the same thing. This gets us closer >>> to making the former 2 functions static. ... >> Are you trying to remove the low-level routines or is this just a >> cleanup? > > The former, but I'm not sure that will happen. There's a handful of > others left, but they aren't simply a call to of_irq_parse_one and > then irq_create_of_mapping. > >> The patch below works, it loses the error handling if the interrupts >> property is corrupt/empty, but that's probably overly paranoid anyway. > > Not quite. Previously, it was silent if parsing failed. Only the > mapping would give an error which would mean the interrupt parent had > some error. > > Actually, we could use of_irq_get here to preserve the error handling. > It will return error codes from parsing, 0 on mapping failure, or the > Linux irq number. It adds an irq_find_host call for deferred probe, > but that should be harmless. I'll respin it. OK thanks. cheers