All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: Daniel Walker <dwalker@codeaurora.org>
Cc: linux-arm-msm@vger.kernel.org, dima@android.com,
	Daniel Walker <c_dwalke@quicinc.com>
Subject: Re: [PATCH 5/5] arm: msm: smd: fix SMD modem processor sync condition
Date: Tue, 20 Apr 2010 15:37:19 +0200	[thread overview]
Message-ID: <20100420133718.GB13050@ucw.cz> (raw)
In-Reply-To: <1271700189-8376-5-git-send-email-dwalker@codeaurora.org>

On Mon 2010-04-19 11:03:09, Daniel Walker wrote:
> From: Daniel Walker <c_dwalke@quicinc.com>
> 
> 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.
...

> +/*
> + * We need to wait for the ARM9 to at least partially boot
> + * up before we can continue. Since the ARM9 does resource
> + * allocation, if we dont' wait we could end up crashing or in

typo.

> + * and unknown state. This function should be called early to
> + * wait on the ARM9.
> + */
> +void __init proc_comm_boot_wait(void)
> +{
> +	void __iomem *base = MSM_SHARED_RAM_BASE;
> + 
> +	proc_comm_wait_for(base + MDM_STATUS, PCOM_READY);
> + 
> +}

static inline, move it to header file?

> diff --git a/arch/arm/mach-msm/proc_comm.h b/arch/arm/mach-msm/proc_comm.h
> index 0f5cdd3..12da4ca 100644
> --- a/arch/arm/mach-msm/proc_comm.h
> +++ b/arch/arm/mach-msm/proc_comm.h
> @@ -16,6 +16,8 @@
>  #ifndef _ARCH_ARM_MACH_MSM_PROC_COMM_H_
>  #define _ARCH_ARM_MACH_MSM_PROC_COMM_H_
>  
> +#include <linux/init.h>
> +

...so that this is not needed?

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

  parent reply	other threads:[~2010-04-20 13:37 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-19 18:03 [PATCH 5/5] arm: msm: smd: fix SMD modem processor sync condition Daniel Walker
2010-04-19 18:34 ` Dima Zavin
2010-04-19 19:01   ` Daniel Walker
2010-04-19 19:06     ` Dima Zavin
2010-04-19 19:11       ` Daniel Walker
2010-04-19 19:23         ` Dima Zavin
2010-04-19 19:42           ` Daniel Walker
2010-04-20 13:37 ` Pavel Machek [this message]
2010-04-20 15:44   ` [PATCH] " Daniel Walker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100420133718.GB13050@ucw.cz \
    --to=pavel@ucw.cz \
    --cc=c_dwalke@quicinc.com \
    --cc=dima@android.com \
    --cc=dwalker@codeaurora.org \
    --cc=linux-arm-msm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.