From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH 1/1] he910: set modem unpowered after IO disconnect
Date: Wed, 07 May 2014 11:03:54 -0500 [thread overview]
Message-ID: <536A596A.50407@gmail.com> (raw)
In-Reply-To: <5369D2D5.20705@southpole.se>
[-- Attachment #1: Type: text/plain, Size: 1888 bytes --]
Hi Jonas,
<snip>
>
> The control port is still usable so it doesn't appear that it HUP's.
Hah, so why would they HUP the modem port instead of sending a NO CARRIER.
> As the control port is usable, I presume so. Setting CFUN=4 kills power
> to the SIM, though, so we wouldn't be able to detect SIM reinsertion if
> we did this (though I don't think that's what you're asking for).
Yes, I know. But you're turning the device off. Hence why I asked.
By the way, the newer HE910 firmware does not turn off the SIM card when
CFUN=4 is issued.
>> When the modem is turned off, the application really has no idea why it
>> was turned off (whether due to an administrative action or due to SIM
>> being removed). So the proposed patch is not a good implementation of
>> 'SIM hotplug'. One should implement this via
>> ofono_sim_inserted_notify(). Any reason why this can't be done?
>
> I'm not sure that's sufficient...
>
> When the modem port HUP's, io_disconnect is called which results in
> modem->chat being cleaned up; not unref'd, either, but forcibly free'd.
Well it is not forcibly freed. Just the internal state is. This is why
the disconnect callback is provided.
> Somehow we need to be able to recreate this data structure, but since
> it's created in the modem's init function it won't be unless we "power
> down" the modem (or something along those lines).
You would need to re-create the affected atoms. In this case this would
be the gprs-context atom.
>
> Suggestions for a better way forward welcome...
>
Is SIM hotswap actually supported by this hardware? The only HE910
samples I have are miniPCI Express cards. For those it is unlikely that
a hotswap function is even possible. Are you getting proper QSS
notifications on the control port when the SIM is removed / inserted?
Regards,
-Denis
next prev parent reply other threads:[~2014-05-07 16:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-02 14:15 [PATCH 1/1] he910: set modem unpowered after IO disconnect Jonas Bonn
2014-05-06 13:38 ` Denis Kenzior
2014-05-07 6:29 ` Jonas Bonn
2014-05-07 16:03 ` Denis Kenzior [this message]
2014-05-07 12:14 ` [PATCH v2 1/1] he910: reset modem " Jonas Bonn
2014-05-07 16:28 ` Denis Kenzior
2014-05-08 6:41 ` Jonas Bonn
2014-05-08 14:06 ` 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=536A596A.50407@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox