summaryrefslogtreecommitdiff
path: root/drivers/dahdi/voicebus.c
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2008-11-13 22:10:51 +0000
committerShaun Ruffell <sruffell@digium.com>2008-11-13 22:10:51 +0000
commit04da794013de4a47f425d0f9190c6807ae0b1d15 (patch)
tree140fbf6591aab672aadbd416a4503bf6510cf4cf /drivers/dahdi/voicebus.c
parent837b8e6f678466d000cce28d660774d7621a1c5e (diff)
Make a message about the host cacheline size being unsupported a debug only
message. The voicebus interface still works whether the cacheline size is supported or not, but the message is confusing to users. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5303 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/voicebus.c')
-rw-r--r--drivers/dahdi/voicebus.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/dahdi/voicebus.c b/drivers/dahdi/voicebus.c
index e16cd65..85ba799 100644
--- a/drivers/dahdi/voicebus.c
+++ b/drivers/dahdi/voicebus.c
@@ -599,10 +599,11 @@ vb_reset_interface(struct voicebus *vb)
pci_access = DEFAULT_PCI_ACCESS | (0x3 << 14);
break;
default:
- VB_PRINTK(vb, WARNING, "Host system set a cache size "\
- "of %d which is not supported. " \
- "Disabling memory write line and memory read line.",
- vb->cache_line_size);
+ if (atomic_read(&vb->debuglevel))
+ VB_PRINTK(vb, WARNING, "Host system set a cache size "\
+ "of %d which is not supported. " \
+ "Disabling memory write line and memory read line.\n",
+ vb->cache_line_size);
pci_access = 0xfe584202;
break;
}
@@ -1316,6 +1317,7 @@ voicebus_init(struct pci_dev *pdev, u32 framesize,
void (*handle_receive)(void *vbb, void *context),
void (*handle_transmit)(void *vbb, void *context),
void *context,
+ u32 debuglevel,
struct voicebus **vbp
)
{
@@ -1340,6 +1342,7 @@ voicebus_init(struct pci_dev *pdev, u32 framesize,
goto cleanup;
}
memset(vb,0,sizeof(*vb));
+ voicebus_setdebuglevel(vb, debuglevel);
/* \todo make sure there is a note that the caller needs to make sure
* board_name stays in memory until voicebus_release is called.
*/