From: Jan Kiszka <jan.kiszka@domain.hid>
To: Peter Pastor <peter.pastor@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Xenomai and PEAK can bus card problem
Date: Tue, 12 Oct 2010 07:59:44 +0200 [thread overview]
Message-ID: <4CB3F950.8070106@domain.hid> (raw)
In-Reply-To: <AANLkTimhhDqZnoURH8+8CU8bPx1KKMhemDJjwo8ni2sj@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 1127 bytes --]
Am 12.10.2010 03:55, Peter Pastor wrote:
> Hey Wolfgang,
>
> I made some great progress in the last few hours. I figured that the PEAK
> PCI can bus card had IRQ 11 according to "lspci" and after the kernel
> modules are loaded it switched to IRQ 16 which caused all the trouble since
> the USB and the SCSI controller have the same IRQ.
>
> Now, I just went ahead and hard coded
>
> /usr/src/xenomai/ksrc/drivers/can/sja1000/rtcan_sja1000.c
> FUNCTION rtcan_sja1000_register...
> #############
>
> chip->bus_err_on = 1;
>
> printk("PETER chip->irq_num = %i\n", chip->irq_num);
> chip->irq_num = 11;
> printk("PETER chip->irq_num = %i\n", chip->irq_num);
>
> ret = rtdm_irq_request(&dev->irq_handle,
> chip->irq_num, rtcan_sja_interrupt,
> chip->irq_flags, sja_ctrl_name, dev);
You can't change reality (physical wiring) this way.
If you do not need the USB interface, unbind the driver so that the
Linux IRQ usage ends:
echo 0000:00:1a.0 > /sys/bus/pci/drivers/ehci_hcd/unbind
^^^^^^^^^^^^
(fill in the according PCI ID)
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 259 bytes --]
next prev parent reply other threads:[~2010-10-12 5:59 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-09 6:44 [Xenomai-help] Xenomai and PEAK can bus card problem Peter Pastor
2010-10-09 8:03 ` Philippe Gerum
2010-10-09 18:09 ` Peter Pastor
2010-10-10 19:30 ` Peter Pastor
2010-10-10 21:28 ` Philippe Gerum
2010-10-11 6:19 ` Peter Pastor
2010-10-11 7:15 ` Gilles Chanteperdrix
2010-10-11 15:59 ` Peter Pastor
2010-10-11 19:10 ` Gilles Chanteperdrix
2010-10-11 19:29 ` Peter Pastor
2010-10-11 19:38 ` Wolfgang Grandegger
2010-10-11 21:23 ` Peter Pastor
2010-10-12 0:09 ` Peter Pastor
2010-10-12 1:55 ` Peter Pastor
2010-10-12 5:59 ` Jan Kiszka [this message]
2010-10-12 7:37 ` Wolfgang Grandegger
2010-10-12 15:28 ` Peter Pastor
2010-10-12 17:25 ` Jan Kiszka
2010-10-13 6:14 ` Peter Pastor
2010-10-13 6:20 ` Gilles Chanteperdrix
2010-10-13 6:31 ` peter.pastor
2010-10-11 21:09 ` Stefan Kisdaroczi
2010-10-11 21:45 ` Gilles Chanteperdrix
2010-10-12 6:38 ` Jan Kiszka
2010-10-09 9:58 ` Gilles Chanteperdrix
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CB3F950.8070106@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=peter.pastor@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.