diff options
author | Daniel Walker <c_dwalke@quicinc.com> | 2010-03-18 20:31:08 +0100 |
---|---|---|
committer | Daniel Walker <dwalker@codeaurora.org> | 2010-05-12 18:19:33 +0200 |
commit | 0aec66d493c1476daa88ec56b1076e51f1ceff0b (patch) | |
tree | fed44f8a6e89719dba16dd5a22978368c28394c9 /arch/arm/mach-msm/smd.c | |
parent | arm: msm: smd: ifdef dsp irq handler (diff) | |
download | linux-0aec66d493c1476daa88ec56b1076e51f1ceff0b.tar.xz linux-0aec66d493c1476daa88ec56b1076e51f1ceff0b.zip |
arm: msm: smd: fix SMD modem processor sync condition
When booting up we need to wait for the modem processor to
partially boot. This is because the modem processor does
resource allocation for us. If we don't wait the modem won't
honor our requests and we end up crashing or in an unknown
state. This change just formalizes the waiting process.
Signed-off-by: Daniel Walker <c_dwalke@quicinc.com>
Diffstat (limited to 'arch/arm/mach-msm/smd.c')
-rw-r--r-- | arch/arm/mach-msm/smd.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-msm/smd.c b/arch/arm/mach-msm/smd.c index de9343ec5cff..cf11d414b425 100644 --- a/arch/arm/mach-msm/smd.c +++ b/arch/arm/mach-msm/smd.c @@ -1001,6 +1001,13 @@ static int __init msm_smd_probe(struct platform_device *pdev) { pr_info("smd_init()\n"); + /* + * If we haven't waited for the ARM9 to boot up till now, + * then we need to wait here. Otherwise this should just + * return immediately. + */ + proc_comm_boot_wait(); + INIT_WORK(&probe_work, smd_channel_probe_worker); if (smd_core_init()) { |