diff options
author | Shaun Ruffell <sruffell@digium.com> | 2011-02-28 14:19:25 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2011-02-28 14:19:25 +0000 |
commit | 812aebdc4a7aa2d9f9a0e2fd4452083cbcd64fc3 (patch) | |
tree | dca41ee007903ce5c6c77f8f37bd773ca0d64792 /drivers/dahdi/wctdm24xxp | |
parent | ade5eb36622087a1255b42e67352cfd76311f597 (diff) |
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 <sruffell@digium.com>
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9781 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wctdm24xxp')
-rw-r--r-- | drivers/dahdi/wctdm24xxp/base.c | 16 |
1 files changed, 9 insertions, 7 deletions
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(); } |