Received: by 10.213.65.68 with SMTP id h4csp1479656imn; Mon, 26 Mar 2018 08:18:17 -0700 (PDT) X-Google-Smtp-Source: AG47ELun0dHbs+Nnxgl2kU+IDqYCCcbCy040mUrknvZcP2mlRfCMIsgmTHTbCge7LpdCKpKDVlrF X-Received: by 2002:a17:902:6b0c:: with SMTP id o12-v6mr41961707plk.295.1522077497643; Mon, 26 Mar 2018 08:18:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522077497; cv=none; d=google.com; s=arc-20160816; b=p5odxKqoO2XLppwfCvZYqOtUPzxTjpPeGHCwsLhiqYaClb0GqqC4H6gcvyXAb07psp JSF1A3AfEiFk9XBw755jIebRuyfRA+tZ7O8A7eCGCc5o5DMcKKzJiqhkZxO0ewCtuxzz cbHJtGtXpFaNnKCsfL0RaqQuHuA1XQ7FmNPpZEIIdzOwf+GVS48r2duZyaxhSTp9S1hz /e6StSk4KThmPzpVcANYcVzyp4SHt3em3b23T4aJJC85DBWLGjMiwLhU09//hYJMWX+S DdQluFmXc5ern5bxVMt4f2H7V2XlDwOvqhqRy3JpbIwiD4d0xMPxHftl9CP1zo5Th2mZ ztRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=/RpyY+Nm3G1PfokBsIB4yQ9SFG3myO0PlJYjOK/Yopk=; b=Tkn74XuncppLbeRKpT0/Olgkni3ZB5WmIscGp4bweVe9DPEIjD+wICOJHL0hiqO7qc JAKPSsRMK0IaSeRCEOdyaRZ/+S9QwZI8wW8yuHtMLHxnGQjPru+/cY7g75vAAlnT4q2x bWRcIaNkll1TtHcjRgL0+ShJCqO0ZEvJ8bFmaUXVF016UzVLpbeRc69R4LFtMdm+fUX2 CEQ1a40feLrMeA4EFc7gp3PHoN95IuZW0s0tvt+D4OZmKt2N1AgjU/X4UYWdhrTbyche XwG1My4VJ5+yjMWJNG4daI43iYFnHH6bC8LrrQd/yn+1YLSl5LoD3UmmiIs87T89Mof3 ULGw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m2-v6si14276078plt.207.2018.03.26.08.18.01; Mon, 26 Mar 2018 08:18:17 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752082AbeCZPQs (ORCPT + 99 others); Mon, 26 Mar 2018 11:16:48 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:36772 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751127AbeCZPQq (ORCPT ); Mon, 26 Mar 2018 11:16:46 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DE870406D6EA; Mon, 26 Mar 2018 15:16:45 +0000 (UTC) Received: from ovpn-112-44.rdu2.redhat.com (ovpn-112-44.rdu2.redhat.com [10.10.112.44]) by smtp.corp.redhat.com (Postfix) with ESMTP id 44DAAD7DFA; Mon, 26 Mar 2018 15:16:44 +0000 (UTC) Message-ID: Subject: Re: [PATCHv4] phy: mapphone-mdm6600: Add USB PHY driver for MDM6600 on Droid 4 From: Dan Williams To: Tony Lindgren , Pavel Machek Cc: 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 Date: Mon, 26 Mar 2018 10:16:43 -0500 In-Reply-To: <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> <20180325205232.GD5700@atomide.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Mon, 26 Mar 2018 15:16:46 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Mon, 26 Mar 2018 15:16:46 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'dcbw@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2018-03-25 at 13:52 -0700, Tony Lindgren wrote: > * 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. Use qcaux.c or option, unless the 6600 actually *does* have the same layout as Gobi 1K/2K/etc devices. If you're going to use qcaux or optoin, then you need to use some variant of USB_DEVICE_AND_INTERFACE_INFO to lock the serial driver to the specific USB interfaces that expose the TTYs and to ignore the QMI interfaces and netdevs. Dan > 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_om > > ap4-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