From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 42D04C43387 for ; Sun, 23 Dec 2018 11:11:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1C21221903 for ; Sun, 23 Dec 2018 11:11:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728057AbeLWLLD (ORCPT ); Sun, 23 Dec 2018 06:11:03 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:35255 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725868AbeLWLLC (ORCPT ); Sun, 23 Dec 2018 06:11:02 -0500 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 8A4C3807AC; Sun, 23 Dec 2018 12:10:55 +0100 (CET) Date: Sun, 23 Dec 2018 12:10:59 +0100 From: Pavel Machek To: Tony Lindgren Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, Jarkko Nikula , Johan Hovold , Kuninori Morimoto , Marcel Partap , Merlijn Wajer , Michael Scott , NeKit , omerlle@gmail.com, Sebastian Reichel , Peter Ujfalusi , Rob Herring Subject: Re: WIP Droid 4 voice calls, GNSS & PM with a TS 27.010 serdev driver Message-ID: <20181223111059.GB1936@amd> References: <20181217004450.GW6707@atomide.com> <20181223103315.GA1936@amd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="K8nIJk4ghYZn606h" Content-Disposition: inline In-Reply-To: <20181223103315.GA1936@amd> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --K8nIJk4ghYZn606h Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > So the little elves have been slowly working to get voice calls > > working on droid 4 with the mainline kernel. And just in time for the > > upcoming holidays, it might be possible to call friends and relatives. > >=20 > > I've pushed out an experimental branch containing serdev ts 27.010 > > UART multiplexing support. That contains a serdev core driver for the > > mdm6600 modem (that also now idles the modem for PM), support for Alsa > > ASoC voice codec and mixer, and a GNSS driver for the GPS. > >=20 > > Where it does not make sense to do a kernel serdev driver, I've > > exposed the rest of the available 27.010 channels as ten /dev/motmdm* > > character devices. There's /dev/motmdm1 for AT commands to dial voice > > calls, /dev/motmdm3 for SMS eventually, and I think there's also a SIM > > card reader at /dev/motmdm10. Then /dev/motmdm7 seems to be just an > > echo channel. The other channels are still a bit of a mystery. >=20 > I suspected it does not work in non-modular case, so I tried with > modules: >=20 > root@devuan:/my/ko# insmod gnss.ko > root@devuan:/my/ko# insmod gnss-motmdm.ko > insmod: ERROR: could not insert module gnss-motmdm.ko: Unknown symbol > in module > root@devuan:/my/ko# insmod n_gsm.ko > root@devuan:/my/ko# insmod snd-soc-motmdm.ko > insmod: ERROR: could not insert module snd-soc-motmdm.ko: Unknown > symbol in module > root@devuan:/my/ko# insmod motorola-mdm.ko > root@devuan:/my/ko# insmod snd-soc-motmdm.ko > root@devuan:/my/ko# insmod gnss-motmdm.ko > root@devuan:/my/ko# =2E.. > ...do I need to make devices manually or some udev rules? >=20 > user@devuan:~$ cat /proc/devices | grep motmdm > user@devuan:~$ cat /proc/devices | grep gnss > 242 gnss > user@devuan:~$ >=20 > Hmm, I suspect the driver just did not recognize the hw. I added some printks to motmdm_probe, and they don't appear to be called. I wonder if I'm missing something else in the config? I do have serial root@devuan:/my/ko# ls -al /dev/ttyS0 crw-rw---- 1 root dialout 4, 64 Dec 23 11:52 /dev/ttyS0 but not gsm multiplex: root@devuan:/my/ko# ls -al /dev/gsm* ls: cannot access '/dev/gsm*': No such file or directory Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --K8nIJk4ghYZn606h Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlwfbUMACgkQMOfwapXb+vKZHQCeNefJ1BfW14OTPUPbUGyrEQLp TiIAoMG6H8Rs+z5a5HC0j0/fkLwIp3Zc =g5Nn -----END PGP SIGNATURE----- --K8nIJk4ghYZn606h--