All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] RT-CAN tx_sem
@ 2007-02-14 18:30 Jan Kiszka
  2007-02-15  8:37 ` [Xenomai-core] " Wolfgang Grandegger
  2007-02-15 13:25 ` Wolfgang Grandegger
  0 siblings, 2 replies; 15+ messages in thread
From: Jan Kiszka @ 2007-02-14 18:30 UTC (permalink / raw)
  To: Wolfgang Grandegger; +Cc: xenomai-core

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

Hi Wolfgang,

fiddling with the CAN utils, I noticed the behaviour that rtcansend on
freshly registered but stopped devices simply blocks. And when you
meanwhile call rtcanconfig up on that device, rtcansend will continue to
block.

The reason is that during startup of CAN devices the tx-semaphore is
re-initialised while it is already set up during device registration.
Re-init on an already initialised rtdm_sem is, say, undefined.

So rtdm_sem should better only be initialised/destroyed by the drivers.
Trying to send on a shut down CAN device could be catched differently,
e.g. via the device state. This likely needs more thoughts, take it as a
note that $something should be done.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

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

end of thread, other threads:[~2007-02-19 14:48 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-14 18:30 [Xenomai-core] RT-CAN tx_sem Jan Kiszka
2007-02-15  8:37 ` [Xenomai-core] " Wolfgang Grandegger
2007-02-15 13:25 ` Wolfgang Grandegger
2007-02-15 13:36   ` Jan Kiszka
2007-02-15 13:54     ` Wolfgang Grandegger
2007-02-15 14:29       ` Jan Kiszka
2007-02-15 16:45         ` Wolfgang Grandegger
2007-02-17 10:19           ` Jan Kiszka
2007-02-18 18:31             ` Jan Kiszka
2007-02-18 19:53               ` Wolfgang Grandegger
2007-02-18 20:37                 ` Jan Kiszka
2007-02-19 14:04                   ` Wolfgang Grandegger
2007-02-19 14:15                     ` Jan Kiszka
2007-02-19 14:48                       ` Wolfgang Grandegger
2007-02-15 14:01     ` Sebastian Smolorz

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.