From patchwork Thu May 28 12:33:11 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 27783 Return-Path: X-Original-To: patchwork-incoming@bilbo.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from ozlabs.org (ozlabs.org [203.10.76.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.ozlabs.org", Issuer "CA Cert Signing Authority" (verified OK)) by bilbo.ozlabs.org (Postfix) with ESMTPS id D5B93B707F for ; Thu, 28 May 2009 22:33:55 +1000 (EST) Received: by ozlabs.org (Postfix) id 38EF9DE1ED; Thu, 28 May 2009 22:33:40 +1000 (EST) Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id 375ECDE1EC for ; Thu, 28 May 2009 22:33:40 +1000 (EST) X-Original-To: linuxppc-dev@ozlabs.org Delivered-To: linuxppc-dev@ozlabs.org Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [92.198.50.35]) by ozlabs.org (Postfix) with ESMTP id 1778ADDDB6 for ; Thu, 28 May 2009 22:33:23 +1000 (EST) Received: from [2001:6f8:1178:2:221:70ff:fe71:1890] (helo=localhost) by metis.ext.pengutronix.de with esmtp (Exim 4.63) (envelope-from ) id 1M9enI-0007jW-11; Thu, 28 May 2009 14:33:12 +0200 Date: Thu, 28 May 2009 14:33:11 +0200 From: Wolfram Sang To: Norbert van Bolhuis Subject: Re: MPC8272- Porting HDLC driver from 2.6.14 to 2.6.27- "no_irq_chip" error Message-ID: <20090528123311.GA3112@pengutronix.de> References: <547eba1b0905280037j3336d0av7cc5d4069622d8f4@mail.gmail.com> <4A1E6877.2060106@aimvalley.nl> MIME-Version: 1.0 In-Reply-To: <4A1E6877.2060106@aimvalley.nl> User-Agent: Mutt/1.5.18 (2008-05-17) X-SA-Exim-Connect-IP: 2001:6f8:1178:2:221:70ff:fe71:1890 X-SA-Exim-Mail-From: w.sang@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linuxppc-dev@ozlabs.org Cc: "linuxppc-dev@ozlabs.org" , Daniel Ng X-BeenThere: linuxppc-dev@ozlabs.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org > this is an example of how a simple 8313 Periodic Interval Timer (PIT) kernel driver > registers for the PIT IRQ (Interrupt ID 65) > > #define PIT_IRQ 65 > > virq = irq_create_mapping(NULL, PIT_IRQ); > set_irq_type(virq, IRQ_TYPE_LEVEL_LOW); > > if(request_irq(virq, (irq_handler_t)timerEvent, 0, "timer2", (void *)0)) { > printk(KERN_ERR "request_irq() returned error for irq=%d virq=%d\n", PIT_IRQ, virq); > } It is some time ago, but when I did something similar I needed the following patch in order to use NULL for irq_create_mapping(). Have a try, and if it is still needed (as it looks from a glimpse), then maybe we should get it merged? === From: Wolfram Sang Subject: [PATCH] powerpc/cpm2: make cpm2_pic the default host Signed-off-by: Wolfram Sang --- arch/powerpc/sysdev/cpm2_pic.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/sysdev/cpm2_pic.c b/arch/powerpc/sysdev/cpm2_pic.c index 78f1f7c..7a7d4e5 100644 --- a/arch/powerpc/sysdev/cpm2_pic.c +++ b/arch/powerpc/sysdev/cpm2_pic.c @@ -272,4 +272,5 @@ void cpm2_pic_init(struct device_node *node) printk(KERN_ERR "CPM2 PIC: failed to allocate irq host!\n"); return; } + irq_set_default_host(cpm2_pic_host); }