Thomas Wiedemann wrote:
> Hi,
> 
> we had a problem compiling the CAN-Driver for the last release candidate 
> when
> shared interrupts had been enabled, because of the re-named option
> "CONFIG_XENO_OPT_SHIRQ_LEVEL.". After a quick look, version 2.4.0 still
> doesn't fix this. A patch is included (for ksrc/drivers/can).

Ah, thanks for reporting. I'm going to remove these #ifdefs a.s.a.p.
It's sufficient to print an appropriate error messsage in case interrupt
registration fails with -EBUSY.

Wolfgang.

> ------------------------------------------------------------------------
> 
> diff -urN sja1000.orig/rtcan_ems_pci.c sja1000/rtcan_ems_pci.c
> --- sja1000.orig/rtcan_ems_pci.c      2007-09-16 19:20:45.000000000 +0200
> +++ sja1000/rtcan_ems_pci.c   2007-12-10 10:14:58.000000000 +0100
> @@ -272,7 +272,7 @@
>       if ((err = rtcan_ems_pci_add_chan(pdev, EMS_PCI_MASTER,
>                                         &master_dev)))
>               goto failure_cleanup;
> -#ifdef CONFIG_XENO_OPT_SHIRQ_LEVEL
> +#ifdef CONFIG_XENO_OPT_SHIRQ
>       if ((err = rtcan_ems_pci_add_chan(pdev, EMS_PCI_SLAVE,
>                                         &master_dev)))
>               goto failure_cleanup;
> diff -urN sja1000.orig/rtcan_ixxat_pci.c sja1000/rtcan_ixxat_pci.c
> --- sja1000.orig/rtcan_ixxat_pci.c    2007-09-16 19:20:45.000000000 +0200
> +++ sja1000/rtcan_ixxat_pci.c 2007-12-10 10:14:54.000000000 +0100
> @@ -254,7 +254,7 @@
>       goto failure_iounmap;
>  
>      if (channel != CHANNEL_SINGLE) {
> -#ifdef CONFIG_XENO_OPT_SHIRQ_LEVEL
> +#ifdef CONFIG_XENO_OPT_SHIRQ
>       channel = CHANNEL_SLAVE;
>       if ((ret = rtcan_ixxat_pci_add_chan(pdev, channel,
>                                           &master_dev, conf_addr,
> diff -urN sja1000.orig/rtcan_peak_pci.c sja1000/rtcan_peak_pci.c
> --- sja1000.orig/rtcan_peak_pci.c     2007-09-16 19:20:45.000000000 +0200
> +++ sja1000/rtcan_peak_pci.c  2007-12-10 10:14:51.000000000 +0100
> @@ -292,7 +292,7 @@
>       if ((ret = rtcan_peak_pci_add_chan(pdev, CHANNEL_MASTER, 
>                                          &master_dev)))
>           goto failure_cleanup;
> -#ifdef CONFIG_XENO_OPT_SHIRQ_LEVEL
> +#ifdef CONFIG_XENO_OPT_SHIRQ
>       if ((ret = rtcan_peak_pci_add_chan(pdev, CHANNEL_SLAVE, 
>                                          &master_dev)))
>           goto failure_cleanup;
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Xenomai-core mailing list
> Xenomai-core@gna.org
> https://mail.gna.org/listinfo/xenomai-core


_______________________________________________
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core

Reply via email to