[Xenomai-git] Jorge Ramirez-Ortiz : drivers/analogy: disable chanlist check on calibration instructions

2014-10-30 Thread git repository hosting
Module: xenomai-3
Branch: master
Commit: c39b74040ab085a03ec9078baffecab7bed758d1
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=c39b74040ab085a03ec9078baffecab7bed758d1

Author: Jorge Ramirez-Ortiz 
Date:   Wed Aug 20 15:58:07 2014 -0400

drivers/analogy: disable chanlist check on calibration instructions

---

 kernel/drivers/analogy/instruction.c |   10 ++
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/kernel/drivers/analogy/instruction.c 
b/kernel/drivers/analogy/instruction.c
index 95c4419..7e7704f 100644
--- a/kernel/drivers/analogy/instruction.c
+++ b/kernel/drivers/analogy/instruction.c
@@ -228,10 +228,12 @@ int a4l_do_insn(struct a4l_device_context * cxt, struct 
a4l_kernel_instruction *
}
 
/* Checks the channel descriptor */
-   ret = a4l_check_chanlist(dev->transfer.subds[dsc->idx_subd],
-1, &dsc->chan_desc);
-   if (ret < 0)
-   return ret;
+   if ((subd->flags & A4L_SUBD_TYPES) != A4L_SUBD_CALIB) {
+   ret = a4l_check_chanlist(dev->transfer.subds[dsc->idx_subd],
+1, &dsc->chan_desc);
+   if (ret < 0)
+   return ret;
+   }
 
/* Choose the proper handler, we can check the pointer because
   the subdevice was memset to 0 at allocation time */


___
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git


[Xenomai-git] Jorge Ramirez-Ortiz : drivers/analogy: disable chanlist check on calibration instructions

2014-10-27 Thread git repository hosting
Module: xenomai-3
Branch: next
Commit: c39b74040ab085a03ec9078baffecab7bed758d1
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=c39b74040ab085a03ec9078baffecab7bed758d1

Author: Jorge Ramirez-Ortiz 
Date:   Wed Aug 20 15:58:07 2014 -0400

drivers/analogy: disable chanlist check on calibration instructions

---

 kernel/drivers/analogy/instruction.c |   10 ++
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/kernel/drivers/analogy/instruction.c 
b/kernel/drivers/analogy/instruction.c
index 95c4419..7e7704f 100644
--- a/kernel/drivers/analogy/instruction.c
+++ b/kernel/drivers/analogy/instruction.c
@@ -228,10 +228,12 @@ int a4l_do_insn(struct a4l_device_context * cxt, struct 
a4l_kernel_instruction *
}
 
/* Checks the channel descriptor */
-   ret = a4l_check_chanlist(dev->transfer.subds[dsc->idx_subd],
-1, &dsc->chan_desc);
-   if (ret < 0)
-   return ret;
+   if ((subd->flags & A4L_SUBD_TYPES) != A4L_SUBD_CALIB) {
+   ret = a4l_check_chanlist(dev->transfer.subds[dsc->idx_subd],
+1, &dsc->chan_desc);
+   if (ret < 0)
+   return ret;
+   }
 
/* Choose the proper handler, we can check the pointer because
   the subdevice was memset to 0 at allocation time */


___
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git


[Xenomai-git] Jorge Ramirez-Ortiz : drivers/analogy: disable chanlist check on calibration instructions

2014-10-25 Thread git repository hosting
Module: xenomai-3
Branch: next
Commit: 51a0ebe4024abcceb39d35dbc3274a4df3cfc689
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=51a0ebe4024abcceb39d35dbc3274a4df3cfc689

Author: Jorge Ramirez-Ortiz 
Date:   Wed Aug 20 15:58:07 2014 -0400

drivers/analogy: disable chanlist check on calibration instructions

---

 kernel/drivers/analogy/instruction.c |   10 ++
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/kernel/drivers/analogy/instruction.c 
b/kernel/drivers/analogy/instruction.c
index 95c4419..7e7704f 100644
--- a/kernel/drivers/analogy/instruction.c
+++ b/kernel/drivers/analogy/instruction.c
@@ -228,10 +228,12 @@ int a4l_do_insn(struct a4l_device_context * cxt, struct 
a4l_kernel_instruction *
}
 
/* Checks the channel descriptor */
-   ret = a4l_check_chanlist(dev->transfer.subds[dsc->idx_subd],
-1, &dsc->chan_desc);
-   if (ret < 0)
-   return ret;
+   if ((subd->flags & A4L_SUBD_TYPES) != A4L_SUBD_CALIB) {
+   ret = a4l_check_chanlist(dev->transfer.subds[dsc->idx_subd],
+1, &dsc->chan_desc);
+   if (ret < 0)
+   return ret;
+   }
 
/* Choose the proper handler, we can check the pointer because
   the subdevice was memset to 0 at allocation time */


___
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git


[Xenomai-git] Jorge Ramirez-Ortiz : drivers/analogy: disable chanlist check on calibration instructions

2014-10-17 Thread git repository hosting
Module: xenomai-3
Branch: next
Commit: 32bc5654e088eb6204886a889951fac008676d2f
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=32bc5654e088eb6204886a889951fac008676d2f

Author: Jorge Ramirez-Ortiz 
Date:   Wed Aug 20 15:58:07 2014 -0400

drivers/analogy: disable chanlist check on calibration instructions

---

 kernel/drivers/analogy/instruction.c |   10 ++
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/kernel/drivers/analogy/instruction.c 
b/kernel/drivers/analogy/instruction.c
index 95c4419..7e7704f 100644
--- a/kernel/drivers/analogy/instruction.c
+++ b/kernel/drivers/analogy/instruction.c
@@ -228,10 +228,12 @@ int a4l_do_insn(struct a4l_device_context * cxt, struct 
a4l_kernel_instruction *
}
 
/* Checks the channel descriptor */
-   ret = a4l_check_chanlist(dev->transfer.subds[dsc->idx_subd],
-1, &dsc->chan_desc);
-   if (ret < 0)
-   return ret;
+   if ((subd->flags & A4L_SUBD_TYPES) != A4L_SUBD_CALIB) {
+   ret = a4l_check_chanlist(dev->transfer.subds[dsc->idx_subd],
+1, &dsc->chan_desc);
+   if (ret < 0)
+   return ret;
+   }
 
/* Choose the proper handler, we can check the pointer because
   the subdevice was memset to 0 at allocation time */


___
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git