Hi,

Sorry for the late reply, I just came back from holidays.

On Wed, Aug 3, 2011 at 2:18 PM, Julien Delange <julien.dela...@gmail.com> wrote:
> Dear all,
>
> Please find a patch for the support of ni660x and ni670x in the analogy layer.
> The driver works fine and I tested it. I enclosed test programs with
> my mail. The test program for the 660x use the counters and the one
> for the 670x board use the analogy output function. These programs can
> be included in the tests/demo programs from Xenomai, as you want.
>

Many thanks, this is a great contribution!

So far, I just had time to have a look at your first patch
(patch-xenomai-current.diff.gz).
I just have a few remarks before merging it:
- You modified few lines in some analogy core source files
(instruction.c, subdevice.c). The changes are just coding style
modifications. However, the original lines seem to already comply with
the kernel coding guidelines.
- In ni_660x.c:ni_660x_attach(), there is a call to Linux's
request_irq() function, the interrupt will not be handled in Xenomai's
domain but by the Linux kernel. You should use  a4l_request_irq()
instead (this is just a wrapper around the appropriate RTDM service).
Thus, that would be ok with the call to a4l_free_irq() in
ni_660x_detach().
- In ni_670x.c, there is a call to a4l_free_irq() in the detach
function but no call to a4l_request_irq() in the attach function.
- A last detail: it seems that some parts of your code does not comply
with kernel's coding style (ex.: if statements and their associated
brackets, 80 columns)


> I will also try to add/update the documentation according to the
> information needed by these drivers.

Many thanks in advance.

> Please tell me if this patch can be integrated in the Xenomai
> distribution. If there is any problem/issue, just let me know how I
> can fix that. Unfortunately, I cannot make a patch against the latest
> git revision because I cannot make a checkout : the firewall checks
> the http request content and I cannot make a checkout of a source
> repository, even if it provides http access ... sorry for that
> inconvenience. On the other hand, I don't think there was too many
> upgrade in the directory I modified so that this patch might be easily
> merged with the current tree.

Indeed.

>
> Hope this might be helpful,
>
> Best regards,
>
> _______________________________________________
> Xenomai-core mailing list
> Xenomai-core@gna.org
> https://mail.gna.org/listinfo/xenomai-core
>
>

Alexis.

_______________________________________________
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core

Reply via email to