From 1c3860d1ad0c1c43434015cd78a9407f44beec7e Mon Sep 17 00:00:00 2001 From: Eduardo Valentin Date: Thu, 20 Aug 2009 16:18:09 +0300 Subject: [PATCH] --- yaml --- r: 157683 b: refs/heads/master c: 44a6311c0a83f682bcf18fae389a1b270df29314 h: refs/heads/master i: 157681: 111f7aa6b66aff41c5ef479c1ca63f4b7f8c988a 157679: 0b5eadbaa59ed236e24a5418920e124c1e57572e v: v3 --- [refs] | 2 +- trunk/arch/arm/plat-omap/mcbsp.c | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index b9c65b5fedb8..6fcfdb4d62fa 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 946a49a95dabc9dd10344ae9ab4db9f14c5ad502 +refs/heads/master: 44a6311c0a83f682bcf18fae389a1b270df29314 diff --git a/trunk/arch/arm/plat-omap/mcbsp.c b/trunk/arch/arm/plat-omap/mcbsp.c index 0aa2524186fb..e9dd70320f7d 100644 --- a/trunk/arch/arm/plat-omap/mcbsp.c +++ b/trunk/arch/arm/plat-omap/mcbsp.c @@ -365,7 +365,13 @@ void omap_mcbsp_start(unsigned int id, int tx, int rx) w = OMAP_MCBSP_READ(io_base, SPCR1); OMAP_MCBSP_WRITE(io_base, SPCR1, w | (rx & 1)); - udelay(100); + /* + * Worst case: CLKSRG*2 = 8000khz: (1/8000) * 2 * 2 usec + * REVISIT: 100us may give enough time for two CLKSRG, however + * due to some unknown PM related, clock gating etc. reason it + * is now at 500us. + */ + udelay(500); if (idle) { /* Start frame sync */