Received: by 10.213.65.68 with SMTP id h4csp797535imn; Sun, 25 Mar 2018 13:53:53 -0700 (PDT) X-Google-Smtp-Source: AG47ELsUxdoit9VAvoKCybVzY5fxxfHfHurCTTJg2yrZaiUP9UROBoQHyc5qwF/uZTaWJxaI2hAA X-Received: by 10.99.126.73 with SMTP id o9mr27058033pgn.406.1522011233113; Sun, 25 Mar 2018 13:53:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522011233; cv=none; d=google.com; s=arc-20160816; b=pIT6KZD1E2kNc6WaK1XWE/zIA/CyFv4YmaCMvUDAd7uNuQYmjW4D9rVIPNxO08Ap0d xhHVrzOJxEiewDjLwu9NA4fwQd6sk9rEPOOfFuGr2lhyQvvAQfWoXcY5TSMwYAueJHW0 oNlV8yvkGCnEjnv+ntsyaNPQtqgIGPV/Va6XPYBjQM0fAm8hTA24Yw5MJT8cD0dK417Y 9+rmWmpPv9WQX9qjKGgeerpyP6Z+pOd8lSk6WrLCB14ropAwgAwENZQHhvfzvXFnqm2y UN95zTmgj355/v6pZlXpCO8TpjlSsQLCWefrBLq68TqhLhVHhc7Bh7i2MX5tEKjv+z70 0LMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=FYgAfwVmBrdu2l494H+HnJggr91xRw2T81rSdZ8du08=; b=VD6ReSAL9dePVtCKkwKx3fQ8jCVvdzYfh9mJV3bvq5X5EOBv9DPQkXo/8IzgWjESTB baQDUhk13DMLBAKcVsfTxqWja8KcJ92/VWd4yS/IPD6B00XwsfcrMAAb1smU1rKRcidg F3dy5vkDhccB/vOxG/GKUMN5cF25IfZK8tGhFe8JtNBRj0qAA44+PlABZg8zFoGyvZZ3 hsVzLD68UbynNerVXRr2rmnMwKbaRhBASt5rgaUHSDnqxL8VLwQ17q65oCdV3IMmCyxk LYDnkbVCCrJjBE5f8X3ABeUA3skBYKyZfYUD+7ikbBffvhyyv4CRH9IE40FZv8dIBg/m 7o1Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y19si9125462pgc.540.2018.03.25.13.53.37; Sun, 25 Mar 2018 13:53:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752183AbeCYUwj (ORCPT + 99 others); Sun, 25 Mar 2018 16:52:39 -0400 Received: from muru.com ([72.249.23.125]:33880 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751142AbeCYUwg (ORCPT ); Sun, 25 Mar 2018 16:52:36 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 35555802B; Sun, 25 Mar 2018 20:53:50 +0000 (UTC) Date: Sun, 25 Mar 2018 13:52:32 -0700 From: Tony Lindgren To: Pavel Machek Cc: Dan Williams , Sebastian Reichel , Kishon Vijay Abraham I , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, Mark Rutland , Marcel Partap , Michael Scott , Rob Herring Subject: Re: [PATCHv4] phy: mapphone-mdm6600: Add USB PHY driver for MDM6600 on Droid 4 Message-ID: <20180325205232.GD5700@atomide.com> References: <20180322192843.GA17189@amd> <20180323105455.GB21644@amd> <20180323113521.45va72bhzis6ym6m@earth.universe> <20180323201343.GC23658@amd> <20180324142517.GA94954@atomide.com> <20180324200224.GA17857@amd> <20180325154512.GC5700@atomide.com> <20180325185857.GA7582@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180325185857.GA7582@amd> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Pavel Machek [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