From: Tony Lindgren <tony@atomide.com>
To: Pavel Machek <pavel@ucw.cz>
Cc: Dan Williams <dcbw@redhat.com>,
Sebastian Reichel <sre@kernel.org>,
Kishon Vijay Abraham I <kishon@ti.com>,
linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org,
linux-omap@vger.kernel.org, devicetree@vger.kernel.org,
Mark Rutland <mark.rutland@arm.com>,
Marcel Partap <mpartap@gmx.net>,
Michael Scott <michael.scott@linaro.org>,
Rob Herring <robh+dt@kernel.org>
Subject: Re: [PATCHv4] phy: mapphone-mdm6600: Add USB PHY driver for MDM6600 on Droid 4
Date: Sun, 25 Mar 2018 13:52:32 -0700 [thread overview]
Message-ID: <20180325205232.GD5700@atomide.com> (raw)
In-Reply-To: <20180325185857.GA7582@amd>
* Pavel Machek <pavel@ucw.cz> [180325 19:00]:
> Hi!
>
> > > Hmm. Interesting. Anyway, for me ttyUSB4 is interesting, as it seems
> > > to react to AT commands, and in particular reacts to ADT123; (; is
> > > important).
> >
> > Is that to dial a voice call?
>
> Yes. And it is ATD123; not ATD.
Strange, no semicolon is needed when using /dev/gsmtty to
dial a voice call with my current pile of pending changes,
just doing ATD123 dials..
Anyways, looks like qmi_wwan needs to be loaded before
qcserial module, otherwise we get nine ttyUSB instances
and ModemManager can't find any modems.
With qcserial module loaded after qmi_wwan, it still takes
a long time for ModemManager to find the modem.
Then unrelated to the qcserial module, also looks like I can
no longer use the GPS with ModemManager:
$ mmcli -m 0 --enable
$ mmcli -m 0 --location-enable-gps-raw
And then chmod a+r /dev/cdc-wdm0 and pointing gpsd to use
/dev/cdc-wdm0 used to work, but now it seems that gpsd
can no longer read it. Trying to start gpsd manually produces:
# gpsd -b -n -N /dev/cdc-wdm0
gpsd:ERROR: SER: /dev/cdc-wdm0 already opened by another process
gpsd:ERROR: initial GPS device /dev/cdc-wdm0 open failed
gpsd:ERROR: can't run with neither control socket nor devices open
And lsof shows /usr/libexec/qmi-proxy having it open.
Anybody know what I might be doing wrong? Sounds like something
now needs to be done with qmi-proxy to get access to GPS?
> > Anyway, "good" solution is to get ofonod running, then use ofone from
> > here: https://github.com/pavelmachek/unicsy_demo
Thanks I'll take a look.
> > I think it's the cpcap based config to route voice call audio
> > to SoC, Sebastian knows the details :)
> >
> > The way to figure that one out is to dump the cpcap registers
> > before and during voice call on android with cpcaprw, then
> > diff the output for the audio registers. Probably some SoC
> > registers need to be diffed too with rwmem or similar tool
> > for the mcbsp instance(s) used.
>
> That sounds like hard way to do it. There's source available, I'm now
> trying to understand it / fit it into Sebastian's driver.
>
> https://raw.githubusercontent.com/NotKit/android_kernel_motorola_omap4-common/hybris-11.0/sound/soc/codecs/cpcap.c
Sure that hopefully helps too :)
Tony
WARNING: multiple messages have this Message-ID (diff)
From: Tony Lindgren <tony@atomide.com>
To: Pavel Machek <pavel@ucw.cz>
Cc: Dan Williams <dcbw@redhat.com>,
Sebastian Reichel <sre@kernel.org>,
Kishon Vijay Abraham I <kishon@ti.com>,
linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org,
linux-omap@vger.kernel.org, devicetree@vger.kernel.org,
Mark Rutland <mark.rutland@arm.com>,
Marcel Partap <mpartap@gmx.net>,
Michael Scott <michael.scott@linaro.org>,
Rob Herring <robh+dt@kernel.org>
Subject: [PATCHv4] phy: mapphone-mdm6600: Add USB PHY driver for MDM6600 on Droid 4
Date: Sun, 25 Mar 2018 13:52:32 -0700 [thread overview]
Message-ID: <20180325205232.GD5700@atomide.com> (raw)
* Pavel Machek <pavel@ucw.cz> [180325 19:00]:
> Hi!
>
> > > Hmm. Interesting. Anyway, for me ttyUSB4 is interesting, as it seems
> > > to react to AT commands, and in particular reacts to ADT123; (; is
> > > important).
> >
> > Is that to dial a voice call?
>
> Yes. And it is ATD123; not ATD.
Strange, no semicolon is needed when using /dev/gsmtty to
dial a voice call with my current pile of pending changes,
just doing ATD123 dials..
Anyways, looks like qmi_wwan needs to be loaded before
qcserial module, otherwise we get nine ttyUSB instances
and ModemManager can't find any modems.
With qcserial module loaded after qmi_wwan, it still takes
a long time for ModemManager to find the modem.
Then unrelated to the qcserial module, also looks like I can
no longer use the GPS with ModemManager:
$ mmcli -m 0 --enable
$ mmcli -m 0 --location-enable-gps-raw
And then chmod a+r /dev/cdc-wdm0 and pointing gpsd to use
/dev/cdc-wdm0 used to work, but now it seems that gpsd
can no longer read it. Trying to start gpsd manually produces:
# gpsd -b -n -N /dev/cdc-wdm0
gpsd:ERROR: SER: /dev/cdc-wdm0 already opened by another process
gpsd:ERROR: initial GPS device /dev/cdc-wdm0 open failed
gpsd:ERROR: can't run with neither control socket nor devices open
And lsof shows /usr/libexec/qmi-proxy having it open.
Anybody know what I might be doing wrong? Sounds like something
now needs to be done with qmi-proxy to get access to GPS?
> > Anyway, "good" solution is to get ofonod running, then use ofone from
> > here: https://github.com/pavelmachek/unicsy_demo
Thanks I'll take a look.
> > I think it's the cpcap based config to route voice call audio
> > to SoC, Sebastian knows the details :)
> >
> > The way to figure that one out is to dump the cpcap registers
> > before and during voice call on android with cpcaprw, then
> > diff the output for the audio registers. Probably some SoC
> > registers need to be diffed too with rwmem or similar tool
> > for the mcbsp instance(s) used.
>
> That sounds like hard way to do it. There's source available, I'm now
> trying to understand it / fit it into Sebastian's driver.
>
> https://raw.githubusercontent.com/NotKit/android_kernel_motorola_omap4-common/hybris-11.0/sound/soc/codecs/cpcap.c
Sure that hopefully helps too :)
Tony
---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2018-03-25 20:52 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-09 2:37 [PATCHv4] phy: mapphone-mdm6600: Add USB PHY driver for MDM6600 on Droid 4 Tony Lindgren
2018-03-09 2:37 ` Tony Lindgren
2018-03-09 9:44 ` Pavel Machek
2018-03-09 9:44 ` Pavel Machek
2018-03-09 14:52 ` Tony Lindgren
2018-03-09 14:52 ` Tony Lindgren
2018-03-22 13:55 ` Pavel Machek
2018-03-22 13:55 ` Pavel Machek
2018-03-22 16:46 ` Tony Lindgren
2018-03-22 16:46 ` Tony Lindgren
2018-03-22 19:28 ` Pavel Machek
2018-03-22 19:28 ` Pavel Machek
2018-03-22 22:23 ` Dan Williams
2018-03-22 22:23 ` Dan Williams
2018-03-23 10:54 ` Pavel Machek
2018-03-23 10:54 ` Pavel Machek
2018-03-23 11:35 ` Sebastian Reichel
2018-03-23 11:35 ` Sebastian Reichel
2018-03-23 20:13 ` Pavel Machek
2018-03-23 20:13 ` Pavel Machek
2018-03-24 13:59 ` Dan Williams
2018-03-24 13:59 ` Dan Williams
2018-03-24 14:25 ` Tony Lindgren
2018-03-24 14:25 ` Tony Lindgren
2018-03-24 20:02 ` Pavel Machek
2018-03-24 20:02 ` Pavel Machek
2018-03-25 15:45 ` Tony Lindgren
2018-03-25 15:45 ` Tony Lindgren
2018-03-25 18:58 ` Pavel Machek
2018-03-25 18:58 ` Pavel Machek
2018-03-25 20:52 ` Tony Lindgren [this message]
2018-03-25 20:52 ` Tony Lindgren
2018-03-25 22:55 ` Pavel Machek
2018-03-25 22:55 ` Pavel Machek
2018-03-26 0:22 ` Tony Lindgren
2018-03-26 0:22 ` Tony Lindgren
2018-03-26 0:30 ` Tony Lindgren
2018-03-26 0:30 ` Tony Lindgren
2018-03-26 15:16 ` Dan Williams
2018-03-26 15:16 ` Dan Williams
2018-03-27 0:45 ` Tony Lindgren
2018-03-27 0:45 ` Tony Lindgren
2018-03-29 19:44 ` Pavel Machek
2018-03-29 19:44 ` 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=20180325205232.GD5700@atomide.com \
--to=tony@atomide.com \
--cc=dcbw@redhat.com \
--cc=devicetree@vger.kernel.org \
--cc=kishon@ti.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=michael.scott@linaro.org \
--cc=mpartap@gmx.net \
--cc=pavel@ucw.cz \
--cc=robh+dt@kernel.org \
--cc=sre@kernel.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.