All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: ofono@ofono.org
Subject: Re: Incoming sms problem on Motorola Droid 4
Date: Mon, 14 May 2018 11:01:21 +0200	[thread overview]
Message-ID: <20180514090121.GA30147@amd> (raw)
In-Reply-To: <20180511123926.GK77069@atomide.com>

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

On Fri 2018-05-11 05:39:26, Tony Lindgren wrote:
> * Pavel Machek <pavel@ucw.cz> [180511 12:36]:
> > Is there way to power cycle the modem without reboot? That should make
> > the debugging... less bad.
> 
> Yeah you can currently do:
> 
> # rmmod ohci-platform
> # rmmod phy-mapphone-mdm6600
> # modprobe phy-mapphone-mdm6600
> # modprobe ohci-platform
> 
> Or rebind via sysfs. If the modem reboots, you should
> see the phy-mapphone-mdm6600 status interrupt trigger?

Rebind via sysfs works nicely. Note that rather long delay is needed,
otherwise modem is in state when it talks AT but is not fully ready.

Thanks!
									Pavel

	bus = "/sys/bus/platform/drivers/"
	phone = "phy-mapphone-mdm6600"
        ohci = "ohci-platform"
	os.system("sudo chown user "+bus+phone+"/unbind")
        os.system("sudo chown user "+bus+phone+"/bind")
        os.system("sudo chown user "+bus+ohci+"/unbind")
        os.system("sudo chown user "+bus+ohci+"/bind")
        os.system("echo 4a064800.ohci > "+bus+ohci+"/unbind")
        os.system("echo usb-phy(a)1 > "+bus+phone+"/unbind")
        os.system("echo usb-phy(a)1 > "+bus+phone+"/bind")
	os.system("echo 4a064800.ohci > "+bus+ohci+"/bind")
        # With sleep 3, modem is initialized, but +CSMS (etc) still fails       
        time.sleep(10)



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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

       reply	other threads:[~2018-05-14  9:01 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20180511123926.GK77069@atomide.com>
2018-05-14  9:01 ` Pavel Machek [this message]
     [not found] <20180509133506.GX77069@atomide.com>
2018-05-09 13:38 ` Incoming sms problem on Motorola Droid 4 Pavel Machek
2018-05-11 12:34 ` Pavel Machek
2018-05-08 21:51 Pavel Machek
2018-05-08 21:51 ` Pavel Machek
2018-05-08 21:51 ` Pavel Machek
2018-05-08 21:51 ` Pavel Machek
2018-05-08 22:08 ` Denis Kenzior
2018-05-09  4:31   ` Marcel Holtmann
2018-05-09  8:18     ` Pavel Machek
2018-05-09 13:03       ` Denis Kenzior
2018-05-09 15:11         ` Pavel Machek
2018-05-09 15:41           ` Denis Kenzior
2018-05-09 18:57             ` Pavel Machek
2018-05-09 19:33               ` Denis Kenzior
2018-05-10  6:50                 ` Marcel Holtmann
2018-05-10  6:58                   ` Pavel Machek
2018-05-10  7:11                     ` Marcel Holtmann
2018-05-09  6:50   ` Pavel Machek
2018-05-09  1:03 ` Tony Lindgren
2018-05-09  1:03   ` Tony Lindgren
2018-05-09  8:48   ` Pavel Machek

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=20180514090121.GA30147@amd \
    --to=pavel@ucw.cz \
    --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.