From 6a7f88f4d2fbb2fc7422fd1e6d42720720506016 Mon Sep 17 00:00:00 2001 From: sruffell Date: Thu, 18 Jun 2009 16:29:08 +0000 Subject: wctdm24xxp, voicebus: Enable the watchdog for the wctdm24xxp driver. Allows the wctdm24xxp driver to use the default dahdi watchdog facility to kickstart the board in case it stops generating interrupts. DAHDI-254. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4655 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- kernel/wctdm24xxp/base.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'kernel/wctdm24xxp/base.c') diff --git a/kernel/wctdm24xxp/base.c b/kernel/wctdm24xxp/base.c index bf8a409..e9165f7 100644 --- a/kernel/wctdm24xxp/base.c +++ b/kernel/wctdm24xxp/base.c @@ -2704,11 +2704,16 @@ static int wctdm_open(struct zt_chan *chan) return 0; } +#ifdef CONFIG_ZAPTEL_WATCHDOG static int wctdm_watchdog(struct zt_span *span, int event) { + struct wctdm *wc = span->pvt; printk("TDM: Called watchdog\n"); + if (ZT_WATCHDOG_NOINTS == event) + voicebus_watchdog(wc->vb); return 0; } +#endif static int wctdm_close(struct zt_chan *chan) { @@ -2960,7 +2965,9 @@ static int wctdm_initialize(struct wctdm *wc) wc->span.close = wctdm_close; wc->span.flags = ZT_FLAG_RBS; wc->span.ioctl = wctdm_ioctl; +#ifdef CONFIG_ZAPTEL_WATCHDOG wc->span.watchdog = wctdm_watchdog; +#endif wc->span.dacs= wctdm_dacs; #ifdef VPM_SUPPORT wc->span.echocan_with_params = wctdm_echocan_with_params; -- cgit v1.2.3