From: Daniele Nicolodi <daniele@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] Analogy: idx_write_subd field in a4l_desc_t
Date: Tue, 04 Oct 2011 15:31:51 +0200 [thread overview]
Message-ID: <4E8B0AC7.60508@domain.hid> (raw)
In-Reply-To: <4E8AEB66.9030500@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 219 bytes --]
On 04/10/11 13:17, Gilles Chanteperdrix wrote:
> If you want things merged, send the patches, they will reach
> xenomai-head repository through Alex.
Of course. Here is my simple patch.
Thank you. Cheers,
--
Daniele
[-- Attachment #2: 0001-analogy-demote-some-messages-logged-in-mio_common-dr.patch --]
[-- Type: text/x-diff, Size: 3470 bytes --]
>From 6944fe7465e1eb614cf9db3eccceb93d77bf95f1 Mon Sep 17 00:00:00 2001
From: Daniele Nicolodi <nicolodi@domain.hid>
Date: Tue, 4 Oct 2011 14:49:27 +0200
Subject: [PATCH 1/3] analogy: demote some messages logged in mio_common
driver code to debug level
---
.../analogy/national_instruments/mio_common.c | 24 ++++++++++----------
1 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/ksrc/drivers/analogy/national_instruments/mio_common.c b/ksrc/drivers/analogy/national_instruments/mio_common.c
index a68cf2c..4303934 100644
--- a/ksrc/drivers/analogy/national_instruments/mio_common.c
+++ b/ksrc/drivers/analogy/national_instruments/mio_common.c
@@ -835,8 +835,8 @@ static void handle_a_interrupt(a4l_dev_t *dev,
if((subd->flags & A4L_SUBD_TYPES) == A4L_SUBD_UNUSED)
return;
- a4l_info(dev, "ni_mio_common: interrupt: "
- "a_status=%04x ai_mite_status=%08x\n",status, ai_mite_status);
+ a4l_dbg(1, drv_dbg, dev, "ni_mio_common: interrupt: "
+ "a_status=%04x ai_mite_status=%08x\n",status, ai_mite_status);
ni_mio_print_status_a(status);
#if (defined(CONFIG_XENO_DRIVERS_ANALOGY_NI_MITE) || \
@@ -847,9 +847,9 @@ static void handle_a_interrupt(a4l_dev_t *dev,
if (ai_mite_status & ~(CHSR_INT | CHSR_LINKC | CHSR_DONE | CHSR_MRDY |
CHSR_DRDY | CHSR_DRQ1 | CHSR_DRQ0 | CHSR_ERROR |
CHSR_SABORT | CHSR_XFERR | CHSR_LxERR_mask)) {
- a4l_info(dev, "ni_mio_common: interrupt: "
- "unknown mite interrupt, ack! (ai_mite_status=%08x)\n",
- ai_mite_status);
+ a4l_dbg(1, drv_dbg, dev, "ni_mio_common: interrupt: "
+ "unknown mite interrupt, ack! (ai_mite_status=%08x)\n",
+ ai_mite_status);
a4l_buf_evt(subd, A4L_BUF_ERROR);
}
#endif /* CONFIG_XENO_DRIVERS_ANALOGY_NI_MITE */
@@ -858,8 +858,8 @@ static void handle_a_interrupt(a4l_dev_t *dev,
if (status & (AI_Overrun_St | AI_Overflow_St | AI_SC_TC_Error_St |
AI_SC_TC_St | AI_START1_St)) {
if (status == 0xffff) {
- a4l_info(dev, "ni_mio_common: interrupt: "
- "a_status=0xffff. Card removed?\n");
+ a4l_dbg(1, drv_dbg, dev, "ni_mio_common: interrupt: "
+ "a_status=0xffff. Card removed?\n");
/* TODO: we probably aren't even running a command now,
so it's a good idea to be careful.
we should check the transfer status */
@@ -869,8 +869,8 @@ static void handle_a_interrupt(a4l_dev_t *dev,
}
if (status & (AI_Overrun_St | AI_Overflow_St |
AI_SC_TC_Error_St)) {
- a4l_info(dev, "ni_mio_common: interrupt: "
- "ai error a_status=%04x\n", status);
+ a4l_dbg(1, drv_dbg, dev, "ni_mio_common: interrupt: "
+ "ai error a_status=%04x\n", status);
ni_mio_print_status_a(status);
shutdown_ai_command(subd);
@@ -881,7 +881,7 @@ static void handle_a_interrupt(a4l_dev_t *dev,
return;
}
if (status & AI_SC_TC_St) {
- a4l_info(dev, "ni_mio_common: SC_TC interrupt\n");
+ a4l_dbg(1, drv_dbg, dev, "ni_mio_common: SC_TC interrupt\n");
if (!devpriv->ai_continuous) {
shutdown_ai_command(subd);
}
@@ -914,8 +914,8 @@ static void handle_a_interrupt(a4l_dev_t *dev,
status = devpriv->stc_readw(dev, AI_Status_1_Register);
if (status & Interrupt_A_St)
- a4l_info(dev, "ni_mio_common: interrupt: "
- " didn't clear interrupt? status=0x%x\n", status);
+ a4l_dbg(1, drv_dbg, dev, "ni_mio_common: interrupt: "
+ " didn't clear interrupt? status=0x%x\n", status);
}
static void ack_b_interrupt(a4l_dev_t *dev, unsigned short b_status)
--
1.7.6.3
next prev parent reply other threads:[~2011-10-04 13:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-27 14:06 [Xenomai-core] Analogy: idx_write_subd field in a4l_desc_t Daniele Nicolodi
2011-09-30 22:03 ` Alexis Berlemont
2011-10-01 18:07 ` Gilles Chanteperdrix
2011-10-04 7:58 ` Daniele Nicolodi
2011-10-04 11:17 ` Gilles Chanteperdrix
2011-10-04 13:31 ` Daniele Nicolodi [this message]
2011-10-05 21:53 ` Alexis Berlemont
2011-10-04 7:48 ` Daniele Nicolodi
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=4E8B0AC7.60508@domain.hid \
--to=daniele@domain.hid \
--cc=gilles.chanteperdrix@xenomai.org \
--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.