All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexis Berlemont <berlemont.hauw@domain.hid>
To: Ettore Pedretti <ep41@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Help on analogy_ni_pcimio (Alexis Berlemont?)
Date: Wed, 06 Jan 2010 23:15:26 +0100	[thread overview]
Message-ID: <4B450B7E.80106@domain.hid> (raw)
In-Reply-To: <4bed572e1001060557x12ffd808k193573c565830a1b@domain.hid>

Ettore Pedretti wrote:
> Hi,
> 
> There was no option in menuconfig for enabling
> CONFIG_XENO_DRIVERS_ANALOGY_DEBUG_LEVEL=1
> CONFIG_XENO_DRIVERS_ANALOGY_DRIVER_DEBUG_LEVEL=1
That's weird. There must be a bug somewhere. Could you send me your last
.config file?
> 
> I edited .config manually and that worked (I hope).
> 
> Error trace attached. I hope this will narrow-down the problem
Thank you. I think I fixed the bug. I updated my git repository (branch
analogy). Could you test it ?

If you do not want to bother with git. Here is the patch:

diff --git a/ksrc/drivers/analogy/national_instruments/mio_common.c 
b/ksrc/drive
index c722384..db9762a 100644
--- a/ksrc/drivers/analogy/national_instruments/mio_common.c
+++ b/ksrc/drivers/analogy/national_instruments/mio_common.c
@@ -3732,9 +3732,14 @@ void mio_common_detach(a4l_dev_t * dev)

  static void init_ao_67xx(a4l_dev_t * dev)
  {
-       a4l_subd_t *subd = dev->transfer.subds[NI_AO_SUBDEV];
+       a4l_subd_t *subd = a4l_get_subd(dev, NI_AO_SUBDEV);
         int i;

+       if (subd == NULL) {
+               a4l_err(dev, "%s: unable to find AO subdevice\n", 
__FUNCTION__);
+               return;
+       }
+
         for (i = 0; i < subd->chan_desc->length; i++)
                 ni_ao_win_outw(dev, AO_Channel(i) | 0x0,
                                AO_Configuration_2_67xx);

> 
> Ettore
> 
> 2010/1/5 Alexis Berlemont <berlemont.hauw@domain.hid>:
>> Hi,
>>
>> Ettore Pedretti wrote:
>>> Hi
>>>
>>> I have installed Xenomai 2.5.0 and tried to attach the module:
>>> analogy_config analogy0 analogy_ni_pcimio
>>>
>>> The error trace is attached as a text file
>> I do not see any analogy debug traces. In your kernel configuration,
>> have you configured the following options like this:
>> CONFIG_XENO_DRIVERS_ANALOGY_DEBUG=y
>> CONFIG_XENO_DRIVERS_ANALOGY_DEBUG_LEVEL=1
>> CONFIG_XENO_DRIVERS_ANALOGY_DRIVER_DEBUG_LEVEL=1
>>
>>> Regards
>>> Ettore
>>>
>> Alexis.
>>
> 
> 
> 
Alexis.


  reply	other threads:[~2010-01-06 22:15 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-22 19:35 [Xenomai-help] Help on analogy_ni_pcimio (Alexis Berlemont?) Ettore Pedretti
2009-11-22 22:41 ` Alexis Berlemont
     [not found] ` <200911222337.02840.alexis.berlemont@domain.hid>
2009-11-23  8:28   ` Ettore Pedretti
2009-11-23 12:24     ` Alexis Berlemont
2009-11-23 17:26       ` Ettore Pedretti
2009-11-23 22:10         ` Alexis Berlemont
2009-11-24 21:34           ` Ettore Pedretti
2009-11-24 22:51             ` Alexis Berlemont
2009-11-24 22:57             ` Alexis Berlemont
2009-11-26  8:22               ` Ettore Pedretti
2009-11-26  9:34                 ` Alexis Berlemont
2009-11-26 14:22                   ` Philippe Gerum
2009-11-27  0:43                     ` Alexis Berlemont
2009-11-27 18:14                       ` Philippe Gerum
2009-11-27 18:30                         ` Philippe Gerum
2009-11-26 23:38                   ` Ettore Pedretti
2009-11-27  0:47                     ` Alexis Berlemont
2009-11-29 23:02                     ` Alexis Berlemont
2009-11-30  8:41                       ` Ettore Pedretti
2009-12-02 23:21                         ` Alexis Berlemont
2009-12-15 15:41                           ` Ettore Pedretti
2009-12-15 23:49                             ` Alexis Berlemont
2009-12-16 12:58                               ` Ettore Pedretti
2009-12-18 21:32                                 ` Alexis Berlemont
2010-01-05 18:15                                   ` Ettore Pedretti
2010-01-05 22:34                                     ` Alexis Berlemont
2010-01-06 13:57                                       ` Ettore Pedretti
2010-01-06 22:15                                         ` Alexis Berlemont [this message]
2010-01-07 19:24                                           ` Ettore Pedretti
2010-01-07 21:58                                             ` Alexis Berlemont
2010-01-08 11:14                                               ` Ettore Pedretti
2010-02-09 17:21                                                 ` Felipe Brandão Cavalcanti
2010-02-10 23:00                                                   ` Alexis Berlemont
2010-02-10 23:03                                                   ` Alexis Berlemont
2010-01-07 22:18                                             ` Alexis Berlemont

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=4B450B7E.80106@domain.hid \
    --to=berlemont.hauw@domain.hid \
    --cc=ep41@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.