* [Xenomai-help] problem with RT-Socket-CAN xeno_can_isa module
@ 2009-11-19 17:53 Alessio Margan @ IIT
2009-11-19 18:09 ` Sebastian Smolorz
2009-11-20 15:09 ` Sebastian Smolorz
0 siblings, 2 replies; 4+ messages in thread
From: Alessio Margan @ IIT @ 2009-11-19 17:53 UTC (permalink / raw)
To: xenomai@xenomai.org
Hi,
I've got a problem using RT-Socket-CAN with module xeno_can_isa.
The system has a pcan-pc/104 board with a sja1000
The first tme I load to module with
sudo modprobe xeno_can_isa io=0x300,0x320 irq=10,11
everything work fine, then if I try to unload the module seems that the
ioport region remain allocated from xeno_can_isa
but the module is unloaded and if I try to load it again the command
fail with "Device or resource busy" and I have to reboot.
I miss something ?
Thanks
Alessio
--
ISTITUTO ITALIANO
DI TECNOLOGIA
Alessio Margan
/Senior Technician/
mail me <mailto:alessio.margan@domain.hid>
Via Morego, 30 16163 Genova
<http://maps.google.com/maps?f=q&hl=en&geocode=&q=via+morego,+30+genova&sll=37.0625,-95.677068&sspn=85.420533,191.601563&ie=UTF8&ll=44.474913,8.907037&spn=0.004685,0.011652&t=h&z=17&iwloc=addr>
www.iit.it <http://www.iit.it>
*Legal Disclaimer*
This electronic message contains information that is confidential. The
information is intended for the use of the addressee only. If you are
not the addressee we would appreciate your notification in this respect.
Please note that any disclosure, copy, distribution or use of the
contents of this message is prohibited and may be unlawful. We have
taken every reasonable precaution to ensure that any kind of attachment
to this e-mail has been swept for viruses. However, we cannot accept
liability for any damage sustained as a result of software viruses and
would advise you to carry out your own virus checks before opening any
attachment.
*Avvertenza legale*
Questo messaggio Email contiene informazioni confidenziali riservate ai
soli destinatari. Qualora veniate in possesso di tali informazioni senza
essere definito come destinatario vi reghiamo di leggere le seguenti
note. Ogni apertura, copia, distribuzione del contenuto del messaggio e
dei suoi allegati è proibito e potrebbe violare le presenti leggi.
Abbiamo attivato ogni possibile e ragionevole precauzione per assicurare
che gli allegati non contengano virus. Comunque non assumeremo alcuna
responsabilità per ogni eventuale danno causato da virus software e
simili in quanto è onere del destinatario verificarne l’assenza in ogni
allegato attuando propri indipendenti controlli.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai-help] problem with RT-Socket-CAN xeno_can_isa module
2009-11-19 17:53 [Xenomai-help] problem with RT-Socket-CAN xeno_can_isa module Alessio Margan @ IIT
@ 2009-11-19 18:09 ` Sebastian Smolorz
2009-11-20 15:09 ` Sebastian Smolorz
1 sibling, 0 replies; 4+ messages in thread
From: Sebastian Smolorz @ 2009-11-19 18:09 UTC (permalink / raw)
To: Alessio Margan @ IIT; +Cc: xenomai
Alessio Margan @ IIT wrote:
> Hi,
>
> I've got a problem using RT-Socket-CAN with module xeno_can_isa.
> The system has a pcan-pc/104 board with a sja1000
> The first tme I load to module with
> sudo modprobe xeno_can_isa io=0x300,0x320 irq=10,11
> everything work fine, then if I try to unload the module seems that the
> ioport region remain allocated from xeno_can_isa
> but the module is unloaded and if I try to load it again the command
> fail with "Device or resource busy" and I have to reboot.
> I miss something ?
You are right, the IO regions are not released properly at module unload time.
I will prepare a patch tomorrow (if Wolfgang does not do it before).
--
Sebastian
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai-help] problem with RT-Socket-CAN xeno_can_isa module
2009-11-19 17:53 [Xenomai-help] problem with RT-Socket-CAN xeno_can_isa module Alessio Margan @ IIT
2009-11-19 18:09 ` Sebastian Smolorz
@ 2009-11-20 15:09 ` Sebastian Smolorz
2009-11-20 16:07 ` Alessio Margan @ IIT
1 sibling, 1 reply; 4+ messages in thread
From: Sebastian Smolorz @ 2009-11-20 15:09 UTC (permalink / raw)
To: Alessio Margan @ IIT; +Cc: xenomai
[-- Attachment #1: Type: Text/Plain, Size: 541 bytes --]
Alessio Margan @ IIT wrote:
> I've got a problem using RT-Socket-CAN with module xeno_can_isa.
> The system has a pcan-pc/104 board with a sja1000
> The first tme I load to module with
> sudo modprobe xeno_can_isa io=0x300,0x320 irq=10,11
> everything work fine, then if I try to unload the module seems that the
> ioport region remain allocated from xeno_can_isa
> but the module is unloaded and if I try to load it again the command
> fail with "Device or resource busy" and I have to reboot.
Does this patch work for you?
--
Sebastian
[-- Attachment #2: rtcan_isa.patch --]
[-- Type: text/x-patch, Size: 311 bytes --]
--- rtcan_isa.c~ 2009-11-20 15:58:31.000000000 +0100
+++ rtcan_isa.c 2009-11-20 15:59:21.000000000 +0100
@@ -189,6 +189,7 @@ static void rtcan_isa_exit(void)
if (!dev)
continue;
rtcan_sja1000_unregister(dev);
+ release_region(io[i], RTCAN_ISA_PORT_SIZE);
rtcan_dev_free(dev);
}
}
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai-help] problem with RT-Socket-CAN xeno_can_isa module
2009-11-20 15:09 ` Sebastian Smolorz
@ 2009-11-20 16:07 ` Alessio Margan @ IIT
0 siblings, 0 replies; 4+ messages in thread
From: Alessio Margan @ IIT @ 2009-11-20 16:07 UTC (permalink / raw)
To: xenomai@xenomai.org
Sebastian Smolorz wrote:
> Alessio Margan @ IIT wrote:
>
>> I've got a problem using RT-Socket-CAN with module xeno_can_isa.
>> The system has a pcan-pc/104 board with a sja1000
>> The first tme I load to module with
>> sudo modprobe xeno_can_isa io=0x300,0x320 irq=10,11
>> everything work fine, then if I try to unload the module seems that the
>> ioport region remain allocated from xeno_can_isa
>> but the module is unloaded and if I try to load it again the command
>> fail with "Device or resource busy" and I have to reboot.
>>
>
> Does this patch work for you?
>
>
Perfect !
Alessio
--
ISTITUTO ITALIANO
DI TECNOLOGIA
Alessio Margan
/Senior Technician/
mail me <mailto:alessio.margan@domain.hid>
Via Morego, 30 16163 Genova
<http://maps.google.com/maps?f=q&hl=en&geocode=&q=via+morego,+30+genova&sll=37.0625,-95.677068&sspn=85.420533,191.601563&ie=UTF8&ll=44.474913,8.907037&spn=0.004685,0.011652&t=h&z=17&iwloc=addr>
www.iit.it <http://www.iit.it>
*Legal Disclaimer*
This electronic message contains information that is confidential. The
information is intended for the use of the addressee only. If you are
not the addressee we would appreciate your notification in this respect.
Please note that any disclosure, copy, distribution or use of the
contents of this message is prohibited and may be unlawful. We have
taken every reasonable precaution to ensure that any kind of attachment
to this e-mail has been swept for viruses. However, we cannot accept
liability for any damage sustained as a result of software viruses and
would advise you to carry out your own virus checks before opening any
attachment.
*Avvertenza legale*
Questo messaggio Email contiene informazioni confidenziali riservate ai
soli destinatari. Qualora veniate in possesso di tali informazioni
senza essere definito come destinatario vi reghiamo di leggere le
seguenti note. Ogni apertura, copia, distribuzione del contenuto del
messaggio e dei suoi allegati è proibito e potrebbe violare le presenti
leggi. Abbiamo attivato ogni possibile e ragionevole precauzione per
assicurare che gli allegati non contengano virus. Comunque non
assumeremo alcuna responsabilità per ogni eventuale danno causato da
virus software e simili in quanto è onere del destinatario verificarne
l’assenza in ogni allegato attuando propri indipendenti controlli.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-11-20 16:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-19 17:53 [Xenomai-help] problem with RT-Socket-CAN xeno_can_isa module Alessio Margan @ IIT
2009-11-19 18:09 ` Sebastian Smolorz
2009-11-20 15:09 ` Sebastian Smolorz
2009-11-20 16:07 ` Alessio Margan @ IIT
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.