Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754015AbcKRNcd (ORCPT ); Fri, 18 Nov 2016 08:32:33 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:51924 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752646AbcKRNc2 (ORCPT ); Fri, 18 Nov 2016 08:32:28 -0500 Date: Fri, 18 Nov 2016 14:29:45 +0100 (CET) From: Thomas Gleixner To: Zubair Lutfullah Kakakhel cc: monstr@monstr.eu, jason@lakedaemon.net, marc.zyngier@arm.com, linux-kernel@vger.kernel.org, michal.simek@xilinx.com, linuxppc-dev@lists.ozlabs.org, mpe@ellerman.id.au Subject: Re: [Patch v7 6/7] irqchip: xilinx: Try to fall back if xlnx,kind-of-intr not provided In-Reply-To: <20161114121351.10924-7-Zubair.Kakakhel@imgtec.com> Message-ID: References: <20161114121351.10924-1-Zubair.Kakakhel@imgtec.com> <20161114121351.10924-7-Zubair.Kakakhel@imgtec.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) 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 Content-Length: 790 Lines: 26 On Mon, 14 Nov 2016, Zubair Lutfullah Kakakhel wrote: > The powerpc dts file does not have the xlnx,kind-of-intr property. > Instead of erroring out, give a warning instead. And attempt to > continue to probe the interrupt controller while assuming > kind-of-intr is 0x0 as a fall back. This is broken, really. On multiplatform kernels this will try to probe the chip no matter what. Powerpc already has: static const struct of_device_id xilinx_intc_match[] __initconst = { { .compatible = "xlnx,opb-intc-1.00.c", }, { .compatible = "xlnx,xps-intc-1.00.a", }, {} }; Unless I'm missing something important, then adding those compatible strings to the driver will just keep stuff working as expected instead of adding unsafe and broken heuristics. Thanks, tglx