* [Xenomai-core] NI analog card shows wrong IRQ number after reboot
@ 2011-03-14 18:33 Anders Blomdell
2011-03-14 18:47 ` Anders Blomdell
0 siblings, 1 reply; 2+ messages in thread
From: Anders Blomdell @ 2011-03-14 18:33 UTC (permalink / raw)
To: xenomai-core
Which is due to the fact that pci_enable_device (mite.c) is called at mite_setup
instead of mite_init. The bad thing with this, is that interrupt conflicts can
only be found AFTER the driver has been started with analogy_config, which is
often too late (since interrupt conflicts will bring down the machine).
Would it be a good idea to pci_enable_device in mite_init as well, or will that
break something else?
Regards
Anders Blomdell
--
Anders Blomdell Email: anders.blomdell@domain.hid
Department of Automatic Control
Lund University Phone: +46 46 222 4625
P.O. Box 118 Fax: +46 46 138118
SE-221 00 Lund, Sweden
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Xenomai-core] NI analog card shows wrong IRQ number after reboot
2011-03-14 18:33 [Xenomai-core] NI analog card shows wrong IRQ number after reboot Anders Blomdell
@ 2011-03-14 18:47 ` Anders Blomdell
0 siblings, 0 replies; 2+ messages in thread
From: Anders Blomdell @ 2011-03-14 18:47 UTC (permalink / raw)
To: xenomai-core
On 2011-03-14 19.33, Anders Blomdell wrote:
> Which is due to the fact that pci_enable_device (mite.c) is called at mite_setup
> instead of mite_init. The bad thing with this, is that interrupt conflicts can
> only be found AFTER the driver has been started with analogy_config, which is
> often too late (since interrupt conflicts will bring down the machine).
>
> Would it be a good idea to pci_enable_device in mite_init as well, or will that
> break something else?
Many other kernel driver seems to call pci_enable_device from the probe
function, and this does give the card it's proper IRQ:
--- ksrc/drivers/analogy/national_instruments/mite.c.orig 2011-02-16
15:26:01.000000000 +0100
+++ ksrc/drivers/analogy/national_instruments/mite.c 2011-03-14
19:38:18.572674136 +0100
@@ -80,6 +80,7 @@
}
list_add(&mite->list, &mite_devices);
+ pci_enable_device(mite->pcidev);
return 0;
}
Regards
Anders
--
Anders Blomdell Email: anders.blomdell@domain.hid
Department of Automatic Control
Lund University Phone: +46 46 222 4625
P.O. Box 118 Fax: +46 46 138118
SE-221 00 Lund, Sweden
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-03-14 18:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-14 18:33 [Xenomai-core] NI analog card shows wrong IRQ number after reboot Anders Blomdell
2011-03-14 18:47 ` Anders Blomdell
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.