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=-3.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS, 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 C912EC43387 for ; Sun, 23 Dec 2018 10:33:39 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 939AA21783 for ; Sun, 23 Dec 2018 10:33:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="GgHFRMJg" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 939AA21783 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ucw.cz Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=PNukUFodxBh16xehRjAMfbd87cal6d3VRmVGsURCIoY=; b=GgHFRMJgSebznPWCQ8aWoLPQB O0ShJkYMK0S92ECkJWjfYtzYQGTfFlWVWnKMtv0Z6ylspgfsvnLMU10fWYsvp9+h25MwcbmYOqd6Z U1Dr91qDkpLXhdJze1phlFznbLRUKpav11WmeyexYFx10x5LcTRE4w3jDHaIr9AyOSHCnmHj4Q6rB xSG2UrvYQ8qyFQNqi9HuKx/NuHCgHkERbSuuv+Ldgo2dMzZa17yV6fER2HFLpWa8x4y0Yq4Q/QbZy E1tHRblRTtTooQ5D+C/f8hskZGLl8GpAOqJyEqn2agLSFVPV4Hldp+T8D6CuC6ZTiBsFP7Ydw6h5L Ea7A7k2uQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gb14g-00010u-Dq; Sun, 23 Dec 2018 10:33:34 +0000 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gb14d-0000g6-1Q for linux-arm-kernel@lists.infradead.org; Sun, 23 Dec 2018 10:33:33 +0000 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id A6D72809B0; Sun, 23 Dec 2018 11:33:11 +0100 (CET) Date: Sun, 23 Dec 2018 11:33:15 +0100 From: Pavel Machek To: Tony Lindgren Subject: Re: WIP Droid 4 voice calls, GNSS & PM with a TS 27.010 serdev driver Message-ID: <20181223103315.GA1936@amd> References: <20181217004450.GW6707@atomide.com> MIME-Version: 1.0 In-Reply-To: <20181217004450.GW6707@atomide.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181223_023331_384642_DCC38A6A X-CRM114-Status: GOOD ( 18.09 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Marcel Partap , Kuninori Morimoto , omerlle@gmail.com, Merlijn Wajer , linux-kernel@vger.kernel.org, Johan Hovold , Peter Ujfalusi , NeKit , linux-arm-kernel@lists.infradead.org, Michael Scott , Sebastian Reichel , linux-omap@vger.kernel.org, Jarkko Nikula Content-Type: multipart/mixed; boundary="===============6678446664346154129==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============6678446664346154129== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="17pEHd4RhPHOinZp" Content-Disposition: inline --17pEHd4RhPHOinZp 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. I suspected it does not work in non-modular case, so I tried with modules: 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# But... root@devuan:/my/ko# ls -al /dev/motmdm* ls: cannot access '/dev/motmdm*': No such file or directory root@devuan:/my/ko# ls -al /dev/gnss* ls: cannot access '/dev/gnss*': No such file or directory root@devuan:/my/ko# [ 116.244445] gnss: GNSS driver registered with major 242 [ 119.892547] gnss_motmdm: Unknown symbol motmdm_register_dlci (err -2) [ 119.899444] gnss_motmdm: Unknown symbol motmdm_unregister_dlci (err -2) [ 129.145935] snd_soc_motmdm: Unknown symbol motmdm_register_dlci (err -2) [ 129.153106] snd_soc_motmdm: Unknown symbol motmdm_unregister_dlci (err -2) [ 131.120361] cpcap-usb-phy cpcap-usb-phy.0: connected to USB host [ 161.190216] cpcap-usb-phy cpcap-usb-phy.0: connected to USB host [ 191.270263] cpcap-usb-phy cpcap-usb-phy.0: connected to USB host [ 221.360107] cpcap-usb-phy cpcap-usb-phy.0: connected to USB host [ 251.429962] cpcap-usb-phy cpcap-usb-phy.0: connected to USB host [ 281.509643] cpcap-usb-phy cpcap-usb-phy.0: connected to USB host [ 292.816436] g_ether gadget: packet filter 0e [ 292.825256] g_ether gadget: ecm req21.43 v000e i0000 l0 =2E..do I need to make devices manually or some udev rules? user@devuan:~$ cat /proc/devices | grep motmdm user@devuan:~$ cat /proc/devices | grep gnss 242 gnss user@devuan:~$ Hmm, I suspect the driver just did not recognize the hw. Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --17pEHd4RhPHOinZp Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlwfZGsACgkQMOfwapXb+vIcYQCfUy7kDvtxOzdHP+CPOOfZJVyt nm8AoLH/8kE8tMO5XoUq6h6FQVN0c/Hz =TwGv -----END PGP SIGNATURE----- --17pEHd4RhPHOinZp-- --===============6678446664346154129== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============6678446664346154129==--