All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH] cdmamodem: Disable dormant mode at initialization
Date: Fri, 09 Dec 2011 05:37:20 -0600	[thread overview]
Message-ID: <4EE1F2F0.1040404@gmail.com> (raw)
In-Reply-To: <1323428678-10373-1-git-send-email-guillaume.zajac@linux.intel.com>

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

Hi Guillaume,

On 12/09/2011 05:04 AM, Guillaume Zajac wrote:
> ---
>  drivers/cdmamodem/connman.c |   15 +++++++++++++++
>  1 files changed, 15 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/cdmamodem/connman.c b/drivers/cdmamodem/connman.c
> index c03841e..61573ff 100644
> --- a/drivers/cdmamodem/connman.c
> +++ b/drivers/cdmamodem/connman.c
> @@ -276,6 +276,20 @@ static void at_c0_cb(gboolean ok, GAtResult *result, gpointer user_data)
>  	ofono_cdma_connman_register(cm);
>  }
>  
> +static void at_cta0_cb(gboolean ok, GAtResult *result, gpointer user_data)
> +{
> +	struct ofono_cdma_connman *cm = user_data;
> +
> +	DBG("ok %d", ok);
> +
> +	if (ok == FALSE) {
> +		ofono_info("Unable to configure Dormant mode");
> +		return;
> +	}
> +
> +	ofono_cdma_connman_dormant_notify(cm, FALSE);
> +}
> +

The core atom will default to FALSE here anyway, so I see no need in
this callback, so I pushed a much simplified patch upstream.

>  static int cdma_connman_probe(struct ofono_cdma_connman *cm,
>  					unsigned int vendor, void *data)
>  {
> @@ -300,6 +314,7 @@ static int cdma_connman_probe(struct ofono_cdma_connman *cm,
>  	ofono_cdma_connman_set_data(cm, cd);
>  
>  	g_at_chat_send(cd->chat, "AT&C0", none_prefix, at_c0_cb, cm, NULL);
> +	g_at_chat_send(cd->chat, "AT+CTA=0", none_prefix, at_cta0_cb, cm, NULL);
>  
>  	return 0;
>  }

Regards,
-Denis

      reply	other threads:[~2011-12-09 11:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-09 11:04 [PATCH] cdmamodem: Disable dormant mode at initialization Guillaume Zajac
2011-12-09 11:37 ` 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=4EE1F2F0.1040404@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.