All of lore.kernel.org
 help / color / mirror / Atom feed
From: Antara Borwankar <antara.borwankar@intel.com>
To: ofono@ofono.org
Subject: [PATCH 1/2] xmm7modem: enabling simtoolkit in modem driver
Date: Wed, 15 May 2019 16:40:13 +0530	[thread overview]
Message-ID: <1557918613-16921-1-git-send-email-antara.borwankar@intel.com> (raw)

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

handled enabling of stk for xmm7modem vendor in atmodem
driver.
---
 drivers/atmodem/stk.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/drivers/atmodem/stk.c b/drivers/atmodem/stk.c
index f0dc5c0..43ae953 100644
--- a/drivers/atmodem/stk.c
+++ b/drivers/atmodem/stk.c
@@ -191,6 +191,19 @@ static gboolean at_stk_register(gpointer user)
 		g_at_chat_register(sd->chat, "*HCMD:", phonesim_hcmd_notify,
 						FALSE, stk, NULL);
 
+	if (sd->vendor == OFONO_VENDOR_XMM) {
+		/*	enabling stk	*/
+		g_at_chat_send(sd->chat, "AT+CFUN=6", none_prefix,
+						NULL, NULL, NULL);
+		/*	Here ofono has missed stk menu proactive command
+		 *	that comes after sim initialization only. Doing a
+		 *	sim reset will enable the stk driver to get the 
+		 *	missed +CUSATP notifications.
+		 */
+		g_at_chat_send(sd->chat, "AT+CFUN=27,1", none_prefix,
+						NULL, NULL, NULL);
+	}
+
 	ofono_stk_register(stk);
 
 	return FALSE;
-- 
1.9.1


             reply	other threads:[~2019-05-15 11:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-15 11:10 Antara Borwankar [this message]
2019-05-16 15:49 ` [PATCH 1/2] xmm7modem: enabling simtoolkit in modem driver Denis Kenzior

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=1557918613-16921-1-git-send-email-antara.borwankar@intel.com \
    --to=antara.borwankar@intel.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.