From 812aebdc4a7aa2d9f9a0e2fd4452083cbcd64fc3 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Mon, 28 Feb 2011 14:19:25 +0000 Subject: wcte12xp, wctdm24xxp: Remove unused support for booting VPMADT032 from SPI. Since there never was a VPMADT032 module shipped with non-volatile memory no need to check that bit contantly in interrupt context. Also remove the unused VPM150M_DTMFDETECT bit. Signed-off-by: Shaun Ruffell git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9781 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/wctdm24xxp/base.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'drivers/dahdi/wctdm24xxp') diff --git a/drivers/dahdi/wctdm24xxp/base.c b/drivers/dahdi/wctdm24xxp/base.c index a91036a..b1685a0 100644 --- a/drivers/dahdi/wctdm24xxp/base.c +++ b/drivers/dahdi/wctdm24xxp/base.c @@ -479,18 +479,21 @@ static inline void cmd_dequeue_vpmadt032(struct wctdm *wc, u8 *eframe) /* Skip audio */ eframe += 24; - if (test_bit(VPM150M_SPIRESET, &vpmadt032->control) || test_bit(VPM150M_HPIRESET, &vpmadt032->control)) { + if (test_bit(VPM150M_HPIRESET, &vpmadt032->control)) { if (debug & DEBUG_ECHOCAN) dev_info(&wc->vb.pdev->dev, "HW Resetting VPMADT032...\n"); spin_lock_irqsave(&wc->reglock, flags); for (x = 24; x < 28; x++) { if (x == 24) { - if (test_and_clear_bit(VPM150M_SPIRESET, &vpmadt032->control)) - eframe[CMD_BYTE(x, 0, 0)] = 0x08; - else if (test_and_clear_bit(VPM150M_HPIRESET, &vpmadt032->control)) + if (test_and_clear_bit(VPM150M_HPIRESET, + &vpmadt032->control)) { eframe[CMD_BYTE(x, 0, 0)] = 0x0b; - } else - eframe[CMD_BYTE(x, 0, 0)] = 0x00 | leds; + } else { + eframe[CMD_BYTE(x, 0, 0)] = leds; + } + } else { + eframe[CMD_BYTE(x, 0, 0)] = leds; + } eframe[CMD_BYTE(x, 1, 0)] = 0; eframe[CMD_BYTE(x, 2, 0)] = 0x00; } @@ -4840,7 +4843,6 @@ static void __devexit wctdm_remove_one(struct pci_dev *pdev) remove_sysfs_files(wc); if (vpm) { - clear_bit(VPM150M_DTMFDETECT, &vpm->control); clear_bit(VPM150M_ACTIVE, &vpm->control); flush_scheduled_work(); } -- cgit v1.2.3