diff options
author | Brian Swetland <swetland@google.com> | 2009-07-01 21:30:47 -0400 |
---|---|---|
committer | Daniel Walker <dwalker@codeaurora.org> | 2010-05-12 12:15:11 -0400 |
commit | 37521a3181123dc4a9584cc4b8572c08ea0a8274 (patch) | |
tree | 1e5571657f48baa7e2a8b5763fc33da583be878c /arch/arm/mach-msm/smd_debug.c | |
parent | 03e00cd350c6636b5f2a9854609fea93a5c7b677 (diff) |
[ARM] msm: smd: add support for DSP SMD channels
- QSD8250 has a DSP that speaks SMD, in addition to the modem
- handle a separate list of modem vs dsp channels
- install dsp smd irq handler as necessary
Signed-off-by: Brian Swetland <swetland@google.com>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
Diffstat (limited to 'arch/arm/mach-msm/smd_debug.c')
-rw-r--r-- | arch/arm/mach-msm/smd_debug.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/arm/mach-msm/smd_debug.c b/arch/arm/mach-msm/smd_debug.c index 3bb40a7fa283..0cc3ef8a94d3 100644 --- a/arch/arm/mach-msm/smd_debug.c +++ b/arch/arm/mach-msm/smd_debug.c | |||
@@ -55,7 +55,7 @@ static int dump_ch(char *buf, int max, struct smd_channel *ch) | |||
55 | buf, max, | 55 | buf, max, |
56 | "ch%02d:" | 56 | "ch%02d:" |
57 | " %8s(%05d/%05d) %c%c%c%c%c%c%c <->" | 57 | " %8s(%05d/%05d) %c%c%c%c%c%c%c <->" |
58 | " %8s(%05d/%05d) %c%c%c%c%c%c%c\n", ch->n, | 58 | " %8s(%05d/%05d) %c%c%c%c%c%c%c '%s'\n", ch->n, |
59 | chstate(s->state), s->tail, s->head, | 59 | chstate(s->state), s->tail, s->head, |
60 | s->fDSR ? 'D' : 'd', | 60 | s->fDSR ? 'D' : 'd', |
61 | s->fCTS ? 'C' : 'c', | 61 | s->fCTS ? 'C' : 'c', |
@@ -71,7 +71,8 @@ static int dump_ch(char *buf, int max, struct smd_channel *ch) | |||
71 | r->fRI ? 'I' : 'i', | 71 | r->fRI ? 'I' : 'i', |
72 | r->fHEAD ? 'W' : 'w', | 72 | r->fHEAD ? 'W' : 'w', |
73 | r->fTAIL ? 'R' : 'r', | 73 | r->fTAIL ? 'R' : 'r', |
74 | r->fSTATE ? 'S' : 's' | 74 | r->fSTATE ? 'S' : 's', |
75 | ch->name | ||
75 | ); | 76 | ); |
76 | } | 77 | } |
77 | 78 | ||
@@ -135,7 +136,9 @@ static int debug_read_ch(char *buf, int max) | |||
135 | int i = 0; | 136 | int i = 0; |
136 | 137 | ||
137 | spin_lock_irqsave(&smd_lock, flags); | 138 | spin_lock_irqsave(&smd_lock, flags); |
138 | list_for_each_entry(ch, &smd_ch_list, ch_list) | 139 | list_for_each_entry(ch, &smd_ch_list_dsp, ch_list) |
140 | i += dump_ch(buf + i, max - i, ch); | ||
141 | list_for_each_entry(ch, &smd_ch_list_modem, ch_list) | ||
139 | i += dump_ch(buf + i, max - i, ch); | 142 | i += dump_ch(buf + i, max - i, ch); |
140 | list_for_each_entry(ch, &smd_ch_closed_list, ch_list) | 143 | list_for_each_entry(ch, &smd_ch_closed_list, ch_list) |
141 | i += dump_ch(buf + i, max - i, ch); | 144 | i += dump_ch(buf + i, max - i, ch); |