From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from az33egw02.freescale.net (az33egw02.freescale.net [192.88.158.103]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "az33egw02.freescale.net", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id C0214DDD1B for ; Thu, 12 Feb 2009 09:48:44 +1100 (EST) Received: from az33smr01.freescale.net (az33smr01.freescale.net [10.64.34.199]) by az33egw02.freescale.net (8.14.3/az33egw02) with ESMTP id n1BMmeoL013000 for ; Wed, 11 Feb 2009 15:48:40 -0700 (MST) Received: from ld0162-tx32.am.freescale.net (ld0162-tx32.am.freescale.net [10.82.19.112]) by az33smr01.freescale.net (8.13.1/8.13.0) with ESMTP id n1BMmdAE020153 for ; Wed, 11 Feb 2009 16:48:40 -0600 (CST) Date: Wed, 11 Feb 2009 16:48:39 -0600 From: Scott Wood To: Vijay Nikam Subject: Re: request_irq return errno 38 Message-ID: <20090211224839.GA13498@ld0162-tx32.am.freescale.net> References: <1234343703.9778.13.camel@localhost> <1234346072.9778.20.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, Feb 11, 2009 at 03:43:26PM +0530, Vijay Nikam wrote: > Ok ... so that means if I am writing driver for any device I need to > take care of this mapping ? ? ? I mean I should use virq ? ? ? > > I read in LDD book, The problem with dead-tree books on a volatile subject is they quickly get out of date. > they give directly irq no. they have given parallel port example, here > they have set or said irq no. defaults to 7 and they have not done any > irq_mapping so what is the difference ? ? ? I mean how I should know > when to use irq_mapping and when not ? ? ? That's for legacy ISA interrupts. On powerpc, you generally will want to get the interrupt from the device tree using irq_of_parse_and_map(). -Scott