All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH] huawei: recreate the GPRS atom on hup
Date: Thu, 08 Jul 2010 14:30:30 -0500	[thread overview]
Message-ID: <4C362756.20507@gmail.com> (raw)
In-Reply-To: <1278584269-3995-2-git-send-email-zhenhua.zhang@intel.com>

[-- Attachment #1: Type: text/plain, Size: 1356 bytes --]

Hi Zhenhua,

On 07/08/2010 05:17 AM, Zhenhua Zhang wrote:
> System is either crashed or usb_serial module reports warnings after
> activate/deactivate GPRS context several times. Handle this by remove
> and recreate the GPRS atom in oFono.
> 
> Tested with Huawei E1552, EM770W.
> System: Ubuntu 9.10.
> Kernel: 2.6.31-16-generic #53-Ubuntu SMP
> ---
>  plugins/huawei.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/plugins/huawei.c b/plugins/huawei.c
> index cfc693d..6cc1448 100644
> --- a/plugins/huawei.c
> +++ b/plugins/huawei.c
> @@ -237,6 +237,7 @@ static void huawei_disconnect(gpointer user_data)
>  	DBG("");
>  
>  	ofono_gprs_context_remove(data->gc);
> +	ofono_gprs_remove(data->gprs);
>  
>  	g_at_chat_unref(data->modem);
>  	data->modem = NULL;
> @@ -250,6 +251,7 @@ static void huawei_disconnect(gpointer user_data)
>  
>  	ofono_info("Reopened GPRS context channel");
>  
> +	data->gprs = ofono_gprs_create(modem, 0, "atmodem", data->pcui);
>  	data->gc = ofono_gprs_context_create(modem, 0, "atmodem",
>  							data->modem);
>  

This is really not the preferred solution.  Can we investigate deeper
into what is crashing here?  Perhaps we're not waiting on the 'NO
CARRIER' signal from the modem before attempting another context activation?

Regards,
-Denis

      reply	other threads:[~2010-07-08 19:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-08 10:17 [PATCH 0/1] To fix Huawei GPRS context issue Zhenhua Zhang
2010-07-08 10:17 ` [PATCH] huawei: recreate the GPRS atom on hup Zhenhua Zhang
2010-07-08 19:30   ` Denis Kenzior [this message]

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=4C362756.20507@gmail.com \
    --to=denkenz@gmail.com \
    --cc=ofono@ofono.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.