summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Markgraf <steve@steve-m.de>2011-03-19 02:56:25 +0100
committerSteve Markgraf <steve@steve-m.de>2011-03-19 02:56:25 +0100
commit331641d5689e531025f06285b8586131f1f3870d (patch)
tree8678c6c1801a33a5f6ecaac1325a31b699f2e4d7
parentb22c05dc6d376a6e2aa8ef9624ff1daa115fd64b (diff)
target/fw/dsp: add delay as workaround for dsp_dump
Without the delay we would fill the sercomm buffer faster than its content can be sent, and the phone would end up in a panic and hang. Signed-off-by: Steve Markgraf <steve@steve-m.de>
-rw-r--r--src/target/firmware/calypso/dsp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/target/firmware/calypso/dsp.c b/src/target/firmware/calypso/dsp.c
index 86adc550..f22a7e0e 100644
--- a/src/target/firmware/calypso/dsp.c
+++ b/src/target/firmware/calypso/dsp.c
@@ -635,6 +635,9 @@ static void _dsp_dump_range(uint32_t addr, uint32_t size, int mode)
dsp_bl_wait_ready();
while (bs--) {
+ /* FIXME workaround: small delay to prevent overflowing
+ * the sercomm buffer */
+ delay_ms(2);
if ((addr&15)==0)
printf("%05x : ", addr);
printf("%04hx%c", *api++, ((addr&15)==15)?'\n':' ');