diff options
author | sruffell <sruffell@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2008-11-13 22:19:24 +0000 |
---|---|---|
committer | sruffell <sruffell@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2008-11-13 22:19:24 +0000 |
commit | d2eb4c452ee779999e61678e16ccda44939d769c (patch) | |
tree | 2379020dcf927d3fc9891605c8d9fda785c4653c /kernel/voicebus.c | |
parent | c2b4b3a3e62af589295560d169db17d7617212a7 (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.digium.com/svn/zaptel/branches/1.4@4579 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'kernel/voicebus.c')
-rw-r--r-- | kernel/voicebus.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/kernel/voicebus.c b/kernel/voicebus.c index 80334b1..aabfd8c 100644 --- a/kernel/voicebus.c +++ b/kernel/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.", + vb->cache_line_size); pci_access = 0xfe584202; break; } @@ -1315,6 +1316,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 ) { @@ -1342,6 +1344,7 @@ voicebus_init(struct pci_dev *pdev, u32 framesize, /* \todo make sure there is a note that the caller needs to make sure * board_name stays in memory until voicebus_release is called. */ + voicebus_setdebuglevel(vb, debuglevel); vb->board_name = board_name; spin_lock_init(&vb->lock); init_completion(&vb->stopped_completion); |