public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC] arch/arm/plat-omap/devices.c
@ 2007-09-18 20:33 Luís Cargnini
  2007-09-18 22:11 ` Tony Lindgren
  2007-09-19 15:49 ` Dirk Behme
  0 siblings, 2 replies; 8+ messages in thread
From: Luís Cargnini @ 2007-09-18 20:33 UTC (permalink / raw)
  To: OMAP

--- linux-omap-2.6/arch/arm/plat-omap/devices.c 2007-08-28 01:01:
50.502065325 -0300
+++ linux-omap-2.6.23-instramed/arch/arm/plat-omap/devices.c    2007-09-18
15:05:44.748685528 -0300
@@ -25,6 +25,26 @@
 #include <asm/arch/gpio.h>
 #include <asm/arch/menelaus.h>

+/*-------------------------------------------------------------------------*/
+/**
+ * 18/09/2007 - 14:35 - 03:00GMT
+ * lvcargnini@ieee.org
+ * Luis Vitorio modifications for devices.c
+ * added this to fix some bugs founded for mmc and possible speed-up
+ * enhancements removing unecessary code, for some plataforms
+ * why test if cpu_is_2420 on the fly ????
+ */
+
+#if defined(CONFIG_ARCH_OMAP16XX)
+#include <asm/arch/omap16xx.h>
+#elif defined(CONFIG_ARCH_OMAP24XX)
+#include <asm/arch/omap24xx.h>
+#elif defined(CONFIG_ARCH_OMAP34XX)
+#include <asm/arch/omap34xx.h>
+#endif
+
+/*-------------------------------------------------------------------------*/
+
 #if    defined(CONFIG_OMAP_DSP) || defined(CONFIG_OMAP_DSP_MODULE)

 #include "../plat-omap/dsp/dsp_common.h"
@@ -127,29 +147,32 @@ static struct platform_device omap_i2c_d
 /* See also arch/arm/mach-omap2/devices.c for second I2C on 24xx */
 static void omap_init_i2c(void)
 {
-       if (cpu_is_omap242x()) {
+/**
+ * Vitorio 18/09/2007 - 14:35 - 03:00GMT
+ */
+#if defined(CONFIG_ARCH_OMAP24XX)
                i2c_resources1[0].start = OMAP2_I2C_BASE1;
                i2c_resources1[0].end = OMAP2_I2C_BASE1 + OMAP_I2C_SIZE;
                i2c_resources1[1].start = OMAP2_I2C_INT1;
-       } else {
-               i2c_resources1[0].start = OMAP1_I2C_BASE;
-               i2c_resources1[0].end = OMAP1_I2C_BASE + OMAP_I2C_SIZE;
-               i2c_resources1[1].start = OMAP1_I2C_INT;
-       }
-
-       /* FIXME define and use a boot tag, in case of boards that
+               /* FIXME define and use a boot tag, in case of boards that
         * either don't wire up I2C, or chips that mux it differently...
         * it can include clocking and address info, maybe more.
         */
-       if (cpu_class_is_omap2()) {
-               if (machine_is_omap_h4()) {
+        if (machine_is_omap_h4()) {
                        omap_cfg_reg(M19_24XX_I2C1_SCL);
                        omap_cfg_reg(L15_24XX_I2C1_SDA);
                }
-       } else {
-               omap_cfg_reg(I2C_SCL);
+#else
+               i2c_resources1[0].start = OMAP1_I2C_BASE;
+               i2c_resources1[0].end = OMAP1_I2C_BASE + OMAP_I2C_SIZE;
+               i2c_resources1[1].start = OMAP1_I2C_INT;
+               /* FIXME define and use a boot tag, in case of boards that
+                * either don't wire up I2C, or chips that mux it
differently...
+                * it can include clocking and address info, maybe more.
+                */
+               omap_cfg_reg(I2C_SCL);
                omap_cfg_reg(I2C_SDA);
-       }
+#endif

        (void) platform_device_register(&omap_i2c_device1);
 }
@@ -306,14 +329,17 @@ static void __init omap_init_mmc(void)
        /* block 1 is always available and has just one pinout option */
        mmc = &mmc_conf->mmc[0];
        if (mmc->enabled) {
-               if (cpu_is_omap24xx()) {
+/**
+ * Vitorio 18/09/2007 - 14:35 - 03:00GMT
+ */
+#if defined(CONFIG_ARCH_OMAP24XX)
                        omap_cfg_reg(H18_24XX_MMC_CMD);
                        omap_cfg_reg(H15_24XX_MMC_CLKI);
                        omap_cfg_reg(G19_24XX_MMC_CLKO);
                        omap_cfg_reg(F20_24XX_MMC_DAT0);
                        omap_cfg_reg(F19_24XX_MMC_DAT_DIR0);
                        omap_cfg_reg(G18_24XX_MMC_CMD_DIR);
-               } else {
+#else
                        omap_cfg_reg(MMC_CMD);
                        omap_cfg_reg(MMC_CLK);
                        omap_cfg_reg(MMC_DAT0);
@@ -322,33 +348,40 @@ static void __init omap_init_mmc(void)
                                omap_cfg_reg(P19_1710_MMC_CMDDIR);
                                omap_cfg_reg(P20_1710_MMC_DATDIR0);
                        }
-               }
+#endif
+
                if (mmc->wire4) {
-                       if (cpu_is_omap24xx()) {
+/**
+ * Vitorio 18/09/2007 - 14:35 - 03:00GMT
+ */
+#if defined(CONFIG_ARCH_OMAP24XX)
                                omap_cfg_reg(H14_24XX_MMC_DAT1);
                                omap_cfg_reg(E19_24XX_MMC_DAT2);
                                omap_cfg_reg(D19_24XX_MMC_DAT3);
                                omap_cfg_reg(E20_24XX_MMC_DAT_DIR1);
                                omap_cfg_reg(F18_24XX_MMC_DAT_DIR2);
                                omap_cfg_reg(E18_24XX_MMC_DAT_DIR3);
-                       } else {
+#else
                                omap_cfg_reg(MMC_DAT1);
                                /* NOTE:  DAT2 can be on W10 (here) or M15
*/
                                if (!mmc->nomux)
                                        omap_cfg_reg(MMC_DAT2);
                                omap_cfg_reg(MMC_DAT3);
-                       }
+#endif
                }
                if (mmc->internal_clock) {
                        /*
                         * Use internal loop-back in MMC/SDIO
                         * Module Input Clock selection
                         */
-                       if (cpu_is_omap24xx()) {
+       /**
+ * Vitorio 18/09/2007 - 14:35 - 03:00GMT
+ */
+#if defined(CONFIG_ARCH_OMAP24XX)
                                u32 v = omap_readl(OMAP2_CONTROL_DEVCONF);
                                v |= (1 << 24);
                                omap_writel(v, OMAP2_CONTROL_DEVCONF);
-                       }
+#endif
                }
                mmc1_conf = *mmc;
                (void) platform_device_register(&mmc_omap_device1);


-- 
------------------------------------------------------------------------------
Thanks && Regards
Msc. Bsc. Luís Vitório Cargnini
IEEE Member
Electrical Engineer Faculty @ PUCRS
Ipiranga Avenue, 6681 – Building 30
P.O. Box: 90619-900 – Porto Alegre/RS
Phone: +55 51 3320 3500  extension: 7696
---------------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH RFC] arch/arm/plat-omap/devices.c
  2007-09-18 20:33 [PATCH RFC] arch/arm/plat-omap/devices.c Luís Cargnini
@ 2007-09-18 22:11 ` Tony Lindgren
  2007-09-19  1:44   ` Luís Cargnini
  2007-09-19 15:49 ` Dirk Behme
  1 sibling, 1 reply; 8+ messages in thread
From: Tony Lindgren @ 2007-09-18 22:11 UTC (permalink / raw)
  To: Luís Cargnini; +Cc: OMAP

Hi,

* Luís Cargnini <lvcargnini@gmail.com> [070918 13:34]:
> --- linux-omap-2.6/arch/arm/plat-omap/devices.c 2007-08-28 01:01:
> 50.502065325 -0300
> +++ linux-omap-2.6.23-instramed/arch/arm/plat-omap/devices.c    2007-09-18
> 15:05:44.748685528 -0300
> @@ -25,6 +25,26 @@
>  #include <asm/arch/gpio.h>
>  #include <asm/arch/menelaus.h>
> 
> +/*-------------------------------------------------------------------------*/
> +/**
> + * 18/09/2007 - 14:35 - 03:00GMT
> + * lvcargnini@ieee.org
> + * Luis Vitorio modifications for devices.c
> + * added this to fix some bugs founded for mmc and possible speed-up
> + * enhancements removing unecessary code, for some plataforms
> + * why test if cpu_is_2420 on the fly ????
> + */
> +
> +#if defined(CONFIG_ARCH_OMAP16XX)
> +#include <asm/arch/omap16xx.h>
> +#elif defined(CONFIG_ARCH_OMAP24XX)
> +#include <asm/arch/omap24xx.h>
> +#elif defined(CONFIG_ARCH_OMAP34XX)
> +#include <asm/arch/omap34xx.h>
> +#endif
> +
> +/*-------------------------------------------------------------------------*/
> +
>  #if    defined(CONFIG_OMAP_DSP) || defined(CONFIG_OMAP_DSP_MODULE)
> 
>  #include "../plat-omap/dsp/dsp_common.h"

We should just include all the headers we need, no need to ifdef them
out.

There are no real reasons why we could not compile in all the omap
kernels into one binary now that gcc supports mixing in later assembly
code. Adding ifdefs there will make compiling in support for various
omaps harder. (We can already compile in 15xx and 16xx).

Please also leave out changelog type comments, they will show up in
the git repository. Also leave out any formatting changes, they make
it harder to see what you're fixing. See the following under
Documentation in your Linux tree:

Documentation/SubmittingPatches
Documentation/SubmittingDrivers
Documentation/SubmitChecklist

Regards,

Tony

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH RFC] arch/arm/plat-omap/devices.c
  2007-09-18 22:11 ` Tony Lindgren
@ 2007-09-19  1:44   ` Luís Cargnini
  0 siblings, 0 replies; 8+ messages in thread
From: Luís Cargnini @ 2007-09-19  1:44 UTC (permalink / raw)
  To: Tony Lindgren; +Cc: OMAP

Tony, I added the include files with ifdefs because the includes have the
almost the same defines but with different values fora each processor

On 9/18/07, Tony Lindgren <tony@atomide.com> wrote:
>
> Hi,
>
> * Luís Cargnini <lvcargnini@gmail.com> [070918 13:34]:
>
> We should just include all the headers we need, no need to ifdef them
> out.
>
> There are no real reasons why we could not compile in all the omap
> kernels into one binary now that gcc supports mixing in later assembly
> code. Adding ifdefs there will make compiling in support for various
> omaps harder. (We can already compile in 15xx and 16xx).
>
> Please also leave out changelog type comments, they will show up in
> the git repository. Also leave out any formatting changes, they make
> it harder to see what you're fixing. See the following under
> Documentation in your Linux tree:
>
> Documentation/SubmittingPatches
> Documentation/SubmittingDrivers
> Documentation/SubmitChecklist
>
> Regards,
>
> Tony
>



-- 
------------------------------------------------------------------------------
Thanks && Regards
Msc. Bsc. Luís Vitório Cargnini
IEEE Member
Electrical Engineer Faculty @ PUCRS
Ipiranga Avenue, 6681 – Building 30
P.O. Box: 90619-900 – Porto Alegre/RS
Phone: +55 51 3320 3500  extension: 7696
---------------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH RFC] arch/arm/plat-omap/devices.c
  2007-09-18 20:33 [PATCH RFC] arch/arm/plat-omap/devices.c Luís Cargnini
  2007-09-18 22:11 ` Tony Lindgren
@ 2007-09-19 15:49 ` Dirk Behme
  2007-10-01 18:06   ` Tony Lindgren
  1 sibling, 1 reply; 8+ messages in thread
From: Dirk Behme @ 2007-09-19 15:49 UTC (permalink / raw)
  To: lvcargnini; +Cc: OMAP

Luís Cargnini wrote:
> --- linux-omap-2.6/arch/arm/plat-omap/devices.c 2007-08-28 01:01:
> 50.502065325 -0300
> +++ linux-omap-2.6.23-instramed/arch/arm/plat-omap/devices.c    2007-09-18
> 15:05:44.748685528 -0300
...

Should this be a fix for your issues [1]?

If yes, why do you think [2] isn't sufficent? Did you try [2]?

[3] introduced usage of OMAP2_CTRL_BASE undefined on OMAP1. So 
anything like [2] to fix compilation issues like [1] should be 
sufficent to fix [1]. [2] works at least for me selecting MMC on OSK.

Best regards

Dirk

[1] 
http://linux.omap.com/pipermail/linux-omap-open-source/2007-September/011373.html

[2] 
http://linux.omap.com/pipermail/linux-omap-open-source/2007-September/011393.html

[3] 
http://source.mvista.com/git/?p=linux-omap-2.6.git;a=commitdiff;h=ad1794683d378d08467ea9b340628994ff3e7edd

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH RFC] arch/arm/plat-omap/devices.c
  2007-09-19 15:49 ` Dirk Behme
@ 2007-10-01 18:06   ` Tony Lindgren
  2007-10-01 23:20     ` Luís Cargnini
  0 siblings, 1 reply; 8+ messages in thread
From: Tony Lindgren @ 2007-10-01 18:06 UTC (permalink / raw)
  To: Dirk Behme; +Cc: OMAP

* Dirk Behme <dirk.behme@googlemail.com> [070919 08:50]:
> Luís Cargnini wrote:
>> --- linux-omap-2.6/arch/arm/plat-omap/devices.c 2007-08-28 01:01:
>> 50.502065325 -0300
>> +++ linux-omap-2.6.23-instramed/arch/arm/plat-omap/devices.c    2007-09-18
>> 15:05:44.748685528 -0300
> ...
>
> Should this be a fix for your issues [1]?
>
> If yes, why do you think [2] isn't sufficent? Did you try [2]?
>
> [3] introduced usage of OMAP2_CTRL_BASE undefined on OMAP1. So anything 
> like [2] to fix compilation issues like [1] should be sufficent to fix [1]. 
> [2] works at least for me selecting MMC on OSK.

Luis, please repost your patch if something still needs to be patched.

Tony



> [1] 
> http://linux.omap.com/pipermail/linux-omap-open-source/2007-September/011373.html
>
> [2] 
> http://linux.omap.com/pipermail/linux-omap-open-source/2007-September/011393.html
>
> [3] 
> http://source.mvista.com/git/?p=linux-omap-2.6.git;a=commitdiff;h=ad1794683d378d08467ea9b340628994ff3e7edd
> _______________________________________________
> Linux-omap-open-source mailing list
> Linux-omap-open-source@linux.omap.com
> http://linux.omap.com/mailman/listinfo/linux-omap-open-source

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH RFC] arch/arm/plat-omap/devices.c
  2007-10-01 18:06   ` Tony Lindgren
@ 2007-10-01 23:20     ` Luís Cargnini
  2007-10-02  0:01       ` Tony Lindgren
  0 siblings, 1 reply; 8+ messages in thread
From: Luís Cargnini @ 2007-10-01 23:20 UTC (permalink / raw)
  To: Tony Lindgren; +Cc: OMAP

Tony please I submitted a patch for mcbsp.{c,h}, modifying it to support
shared IRQ on McBSP ports, it are working for me, and for my device driver,
I'm testing it yet it take me sometime. But the device diver isn't a major
question, only the interruption modification on mcbsp file as I said.

On 10/1/07, Tony Lindgren <tony@atomide.com> wrote:
>
> * Dirk Behme <dirk.behme@googlemail.com> [070919 08:50]:
> > Luís Cargnini wrote:
> >> --- linux-omap-2.6/arch/arm/plat-omap/devices.c 2007-08-28 01:01:
> >> 50.502065325 -0300
> >> +++ linux-omap-2.6.23-instramed
> /arch/arm/plat-omap/devices.c    2007-09-18
> >> 15:05:44.748685528 -0300
> > ...
> >
> > Should this be a fix for your issues [1]?
> >
> > If yes, why do you think [2] isn't sufficent? Did you try [2]?
> >
> > [3] introduced usage of OMAP2_CTRL_BASE undefined on OMAP1. So anything
> > like [2] to fix compilation issues like [1] should be sufficent to fix
> [1].
> > [2] works at least for me selecting MMC on OSK.
>
> Luis, please repost your patch if something still needs to be patched.
>
> Tony
>
>
>
> > [1]
> >
> http://linux.omap.com/pipermail/linux-omap-open-source/2007-September/011373.html
> >
> > [2]
> >
> http://linux.omap.com/pipermail/linux-omap-open-source/2007-September/011393.html
> >
> > [3]
> >
> http://source.mvista.com/git/?p=linux-omap-2.6.git;a=commitdiff;h=ad1794683d378d08467ea9b340628994ff3e7edd
> > _______________________________________________
> > Linux-omap-open-source mailing list
> > Linux-omap-open-source@linux.omap.com
> > http://linux.omap.com/mailman/listinfo/linux-omap-open-source
>



-- 
------------------------------------------------------------------------------
Thanks && Regards
Msc. Bsc. Luís Vitório Cargnini
IEEE Member
Electrical Engineer Faculty @ PUCRS
Ipiranga Avenue, 6681 – Building 30
P.O. Box: 90619-900 – Porto Alegre/RS
Phone: +55 51 3320 3500  extension: 7696
---------------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH RFC] arch/arm/plat-omap/devices.c
  2007-10-01 23:20     ` Luís Cargnini
@ 2007-10-02  0:01       ` Tony Lindgren
       [not found]         ` <ae36f8040710011707u34b21a1dx1e63db8c7bd85c9d@mail.gmail.com>
  0 siblings, 1 reply; 8+ messages in thread
From: Tony Lindgren @ 2007-10-02  0:01 UTC (permalink / raw)
  To: Luís Cargnini; +Cc: OMAP

* Luís Cargnini <lvcargnini@gmail.com> [071001 16:20]:
> Tony please I submitted a patch for mcbsp.{c,h}, modifying it to support
> shared IRQ on McBSP ports, it are working for me, and for my device driver,
> I'm testing it yet it take me sometime. But the device diver isn't a major
> question, only the interruption modification on mcbsp file as I said.

Yeah at least the header patch looks OK.

Regards,

Tony

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Fwd: [PATCH RFC] arch/arm/plat-omap/devices.c
       [not found]           ` <ae36f8040710011710w50e766c3ve10cded27a6e0689@mail.gmail.com>
@ 2007-10-02  0:10             ` Luís Cargnini
  0 siblings, 0 replies; 8+ messages in thread
From: Luís Cargnini @ 2007-10-02  0:10 UTC (permalink / raw)
  To: OMAP

[-- Attachment #1: Type: text/plain, Size: 2121 bytes --]

---------- Forwarded message ----------
From: Luís Cargnini <lvcargnini@gmail.com>
Date: Oct 1, 2007 9:10 PM
Subject: Re: [PATCH RFC] arch/arm/plat-omap/devices.c
To: Tony Lindgren <tony@atomide.com>



On 10/1/07, Luís Cargnini <lvcargnini@gmail.com> wrote:
>
> the mcbsp.c doesn't ?
> ok I'll remake the patch and resubmitting right now.
>
> On 10/1/07, Tony Lindgren < tony@atomide.com > wrote:
> >
> > * Luís Cargnini < lvcargnini@gmail.com > [071001 16:20]:
> > > Tony please I submitted a patch for mcbsp.{c,h}, modifying it to
> > support
> > > shared IRQ on McBSP ports, it are working for me, and for my device
> > driver,
> > > I'm testing it yet it take me sometime. But the device diver isn't a
> > major
> > > question, only the interruption modification on mcbsp file as I said.
> >
> > Yeah at least the header patch looks OK.
> >
> > Regards,
> >
> > Tony
> >
>
>
>
> --
> ------------------------------------------------------------------------------
>
> Thanks && Regards
> Msc. Bsc. Luís Vitório Cargnini
> IEEE Member
> Electrical Engineer Faculty @ PUCRS
> Ipiranga Avenue, 6681 – Building 30
> P.O. Box: 90619-900 – Porto Alegre/RS
> Phone: +55 51 3320 3500  extension: 7696
> ---------------------------------------------------------------------------------
>
>



-- 
------------------------------------------------------------------------------
Thanks && Regards
Msc. Bsc. Luís Vitório Cargnini
IEEE Member
Electrical Engineer Faculty @ PUCRS
Ipiranga Avenue, 6681 – Building 30
P.O. Box: 90619-900 – Porto Alegre/RS
Phone: +55 51 3320 3500  extension: 7696
---------------------------------------------------------------------------------




-- 
------------------------------------------------------------------------------
Thanks && Regards
Msc. Bsc. Luís Vitório Cargnini
IEEE Member
Electrical Engineer Faculty @ PUCRS
Ipiranga Avenue, 6681 – Building 30
P.O. Box: 90619-900 – Porto Alegre/RS
Phone: +55 51 3320 3500  extension: 7696
---------------------------------------------------------------------------------

[-- Attachment #2: mcbsp.c.patch --]
[-- Type: application/octet-stream, Size: 2579 bytes --]

--- linux-omap-2.6/arch/arm/plat-omap/mcbsp.c	2007-03-12 16:44:03.501890844 -0300
+++ linux-omap-2.6-instramed/arch/arm/plat-omap/mcbsp.c	2007-09-26 00:24:33.928307330 -0300
@@ -20,8 +20,8 @@
 #include <linux/interrupt.h>
 #include <linux/err.h>
 #include <linux/clk.h>
-#include <linux/delay.h>
 
+#include <asm/delay.h>
 #include <asm/io.h>
 #include <asm/irq.h>
 
@@ -94,6 +94,22 @@ static void omap_mcbsp_dump_reg(u8 id)
 	DBG("SRGR1: 0x%04x\n", OMAP_MCBSP_READ(mcbsp[id].io_base, SRGR1));
 	DBG("PCR0:  0x%04x\n", OMAP_MCBSP_READ(mcbsp[id].io_base, PCR0));
 	DBG("***********************\n");
+	/* Vitorio 19/09/2007 - 10:48 | -03:00GMT */
+	printk(KERN_INFO "**** MCBSP%d regs ****\n", mcbsp[id].id);
+	printk(KERN_INFO "DRR2:  0x%04x\n", OMAP_MCBSP_READ(mcbsp[id].io_base, DRR2));
+	printk(KERN_INFO "DRR1:  0x%04x\n", OMAP_MCBSP_READ(mcbsp[id].io_base, DRR1));
+	printk(KERN_INFO "DXR2:  0x%04x\n", OMAP_MCBSP_READ(mcbsp[id].io_base, DXR2));
+	printk(KERN_INFO "DXR1:  0x%04x\n", OMAP_MCBSP_READ(mcbsp[id].io_base, DXR1));
+	printk(KERN_INFO "SPCR2: 0x%04x\n", OMAP_MCBSP_READ(mcbsp[id].io_base, SPCR2));
+	printk(KERN_INFO "SPCR1: 0x%04x\n", OMAP_MCBSP_READ(mcbsp[id].io_base, SPCR1));
+	printk(KERN_INFO "RCR2:  0x%04x\n", OMAP_MCBSP_READ(mcbsp[id].io_base, RCR2));
+	printk(KERN_INFO "RCR1:  0x%04x\n", OMAP_MCBSP_READ(mcbsp[id].io_base, RCR1));
+	printk(KERN_INFO "XCR2:  0x%04x\n", OMAP_MCBSP_READ(mcbsp[id].io_base, XCR2));
+	printk(KERN_INFO "XCR1:  0x%04x\n", OMAP_MCBSP_READ(mcbsp[id].io_base, XCR1));
+	printk(KERN_INFO "SRGR2: 0x%04x\n", OMAP_MCBSP_READ(mcbsp[id].io_base, SRGR2));
+	printk(KERN_INFO "SRGR1: 0x%04x\n", OMAP_MCBSP_READ(mcbsp[id].io_base, SRGR1));
+	printk(KERN_INFO "PCR0:  0x%04x\n", OMAP_MCBSP_READ(mcbsp[id].io_base, PCR0));
+	printk(KERN_INFO "***********************\n");
 }
 
 static irqreturn_t omap_mcbsp_tx_irq_handler(int irq, void *dev_id)
@@ -304,7 +320,7 @@ int omap_mcbsp_request(unsigned int id)
 
 	if (mcbsp[id].io_type == OMAP_MCBSP_IRQ_IO) {
 		/* We need to get IRQs here */
-		err = request_irq(mcbsp[id].tx_irq, omap_mcbsp_tx_irq_handler, 0,
+		err = request_irq(mcbsp[id].tx_irq, omap_mcbsp_tx_irq_handler, IRQF_SHARED,
 				  "McBSP",
 				  (void *) (&mcbsp[id]));
 		if (err != 0) {
@@ -315,8 +331,7 @@ int omap_mcbsp_request(unsigned int id)
 
 		init_completion(&(mcbsp[id].tx_irq_completion));
 
-
-		err = request_irq(mcbsp[id].rx_irq, omap_mcbsp_rx_irq_handler, 0,
+	  	err = request_irq(mcbsp[id].rx_irq, omap_mcbsp_rx_irq_handler, IRQF_SHARED,
 				  "McBSP",
 				  (void *) (&mcbsp[id]));
 		if (err != 0) {

[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-10-02  0:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-18 20:33 [PATCH RFC] arch/arm/plat-omap/devices.c Luís Cargnini
2007-09-18 22:11 ` Tony Lindgren
2007-09-19  1:44   ` Luís Cargnini
2007-09-19 15:49 ` Dirk Behme
2007-10-01 18:06   ` Tony Lindgren
2007-10-01 23:20     ` Luís Cargnini
2007-10-02  0:01       ` Tony Lindgren
     [not found]         ` <ae36f8040710011707u34b21a1dx1e63db8c7bd85c9d@mail.gmail.com>
     [not found]           ` <ae36f8040710011710w50e766c3ve10cded27a6e0689@mail.gmail.com>
2007-10-02  0:10             ` Fwd: " Luís Cargnini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox