From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpb.sintef.no (smtpb.sintef.no [129.241.253.24]) by ozlabs.org (Postfix) with ESMTP id 8896DDDE21 for ; Tue, 29 Jan 2008 00:55:49 +1100 (EST) Received: from sintefav1.sintef.no (sintefav1.sintef.no [129.241.253.14]) by smtpb.sintef.no (Postfix) with ESMTP id CCC5572279 for ; Mon, 28 Jan 2008 14:28:43 +0100 (CET) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C861B1.B69366EA" Subject: request_irq() for external interrupt pin on MPC875 (A&M adder MPC 875) Date: Mon, 28 Jan 2008 14:28:48 +0100 Message-ID: <39417DF3286A66428FA558987839F44F03FC914F@SINTEFXCH01.sintef.no> From: Rognlien Dag Kristian To: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is a multi-part message in MIME format. ------_=_NextPart_001_01C861B1.B69366EA Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable With kernel 2.6.13 we used=20 =20 request_irq (use_irq, irq_handler, SA_INTERRUPT|SA_SHIRQ, DEVICE_NAME, dev) =20 where use_irq is 12 to use the external IRQ6 pin. =20 We are now trying to get this driver to work with the 2.6.25 pull from powerpc.git. =20 request_irq (use_irq, irq_handler, IRQF_SHARED, DEVICE_NAME, dev); =20 returns -ENOSYS on the newer kernel. =20 Have the IRQ mappings for the external IRQX pins been moved in the later kernels? =20 - Dag K. W. Rognlien Research Scientist SINTEF ICT Communication Systems =20 =20 ------_=_NextPart_001_01C861B1.B69366EA Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
With= kernel 2.6.13=20 we used
 
reques= t_irq=20 (use_irq, irq_handler, SA_INTERRUPT|SA_SHIRQ, DEVICE_NAME,=20 dev)
 
where= use_irq is 12=20 to use the external IRQ6 pin.
 
We are= now trying to=20 get this driver to work with the 2.6.25 pull from=20 powerpc.git.
 
reques= t_irq=20 (use_irq, irq_handler, IRQF_SHARED, DEVICE_NAME, dev);
 
return= s -ENOSYS on=20 the newer kernel.
 
Have= the IRQ=20 mappings for the external IRQX pins been moved in the later=20 kernels?
 
-
Dag K. W. Rognlien<= /DIV>
Research Scientist<= /DIV>
SINTEF ICT Communication=20 Systems

 
 
------_=_NextPart_001_01C861B1.B69366EA-- 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 ESMTP id 83FAEDDED6 for ; Tue, 29 Jan 2008 04:19:48 +1100 (EST) Message-ID: <479E0EC4.5070707@freescale.com> Date: Mon, 28 Jan 2008 11:20:04 -0600 From: Scott Wood MIME-Version: 1.0 To: Rognlien Dag Kristian Subject: Re: request_irq() for external interrupt pin on MPC875 (A&M adder MPC 875) References: <39417DF3286A66428FA558987839F44F03FC914F@SINTEFXCH01.sintef.no> In-Reply-To: <39417DF3286A66428FA558987839F44F03FC914F@SINTEFXCH01.sintef.no> Content-Type: text/plain; charset=UTF-8; format=flowed Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Rognlien Dag Kristian wrote: > With kernel 2.6.13 we used > > request_irq (use_irq, irq_handler, SA_INTERRUPT|SA_SHIRQ, DEVICE_NAME, dev) > > where use_irq is 12 to use the external IRQ6 pin. > > We are now trying to get this driver to work with the 2.6.25 pull from > powerpc.git. > > request_irq (use_irq, irq_handler, IRQF_SHARED, DEVICE_NAME, dev); > > returns -ENOSYS on the newer kernel. > > Have the IRQ mappings for the external IRQX pins been moved in the later > kernels? Yes, you need to use the result of irq_create_mapping() or irq_of_parse_and_map(). -Scott