Received: by 10.213.65.68 with SMTP id h4csp1230907imn; Sat, 24 Mar 2018 07:00:42 -0700 (PDT) X-Google-Smtp-Source: AG47ELtEt/Rd64e45qmDNqX/oeE1LUdsdR5i+n3d4vzwbeC+EqIPS041PCFEC4KmDaXXiPDR4rab X-Received: by 2002:a17:902:a60d:: with SMTP id u13-v6mr14833668plq.161.1521900042303; Sat, 24 Mar 2018 07:00:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521900042; cv=none; d=google.com; s=arc-20160816; b=HwSQhuhuMmucFFAWjVaU45XJ1bJUHZ4Abv+A8QnFlTXkszzM431pjEbh9E7CprlCgu edFAkbqXvJHCPG9W7Lgg3RUaeX7Q+sibCexxYNKh5q7srS9byWgZHws86crSfawoWGri LwRZkcDG+1aQ6ojY4lsckABlTBsk5XZUtnPi7PuJmoUWYnugwiN3ozwWaT+rIWjVA40p swnFiZt0Ow9VCk5rvodBJw9aJC+OO4LyQS0RZ0XqAc3vylZigsAOb5Aqke1kHVDwf0OQ IPmDCDuk54h2tL690j6hh285Xw+rfzUf+WLPSNPx/1A5OwLb6jq3O8GOkR02p4+F7RlW 78ug== 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=F/TB0W2UlTtVwGdmqe0wQnKr+/+12xtIWk2mtZKWTII=; b=bJz23xFbnkLKmomOYCuM3NH3gPwUrHzVgoXMgU7+ao7JMIIbf6SDROg1TAZ9sFXGpP D61wSDkrxLibE5VottSEX2BVoqzFSV33gd1Xmyj3/n3RfMXk0f3YSLdXgQpiM0LLDc0o gOAstaHRakJ2cmhOKekCio6HB9+zIHBjbeu+PDxNf8hunn+PiOyhiLt/PyTGSF0AhYvv VgB6UOnjA77vs7q26fd98x4aGxKajh6vytpDQUj5NrK/faVo9ylUrG8DcXy3dc30cEcs 1LE0lQX5RZgTCmXrLektiLygLzJh10X+Qs8aeYsuElyDSdSLuz8hgBR+1u6QSKkZjd68 M4Sw== 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 o66si6383528pfb.0.2018.03.24.07.00.27; Sat, 24 Mar 2018 07:00:42 -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 S1752258AbeCXN7e (ORCPT + 99 others); Sat, 24 Mar 2018 09:59:34 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:51958 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751999AbeCXN7c (ORCPT ); Sat, 24 Mar 2018 09:59:32 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5F7C8EB6F9; Sat, 24 Mar 2018 13:59:31 +0000 (UTC) Received: from ovpn-112-37.rdu2.redhat.com (ovpn-112-37.rdu2.redhat.com [10.10.112.37]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6A6142023233; Sat, 24 Mar 2018 13:59:29 +0000 (UTC) Message-ID: Subject: Re: [PATCHv4] phy: mapphone-mdm6600: Add USB PHY driver for MDM6600 on Droid 4 From: Dan Williams To: Pavel Machek , Sebastian Reichel Cc: Tony Lindgren , 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: Sat, 24 Mar 2018 08:59:28 -0500 In-Reply-To: <20180323201343.GC23658@amd> References: <20180309023750.108942-1-tony@atomide.com> <20180322135553.GA27648@amd> <20180322164633.GF5799@atomide.com> <20180322192843.GA17189@amd> <20180323105455.GB21644@amd> <20180323113521.45va72bhzis6ym6m@earth.universe> <20180323201343.GC23658@amd> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Sat, 24 Mar 2018 13:59:31 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Sat, 24 Mar 2018 13:59:31 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.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 Fri, 2018-03-23 at 21:13 +0100, Pavel Machek wrote: > On Fri 2018-03-23 12:35:21, Sebastian Reichel wrote: > > Hi, > > > > On Fri, Mar 23, 2018 at 11:54:55AM +0100, Pavel Machek wrote: > > > Hi! > > > > > > > > > Do you have the related dts patches picked from next? > > > > > > > > > > > > fdd192037fce ("ARM: dts: omap4-droid4: Fix USB PHY port > > > > > > naming") > > > > > > e5b9fd7bdeb5 ("ARM: dts: omap4-droid4: Configure MDM6600 > > > > > > USB PHY") > > > > > > > > > > > > But yeah all you need to do is have phy-mapphone-mdm6600 > > > > > > and > > > > > > ohci-platform loaded and then ifconfig should show four > > > > > > wwan > > > > > > interfaces being added. > > > > > > > > > > ifconfig? I thought I should get /dev/ttyUSB0..3? > > > > > > > > I believe they are QMI via qmi_wwan, not TTYs. > > > > > > Well, qmicli expects device path... and I see nothing on > > > ifconfig. Any > > > idea how the device would be named? > > > > > > But I believe it just does not work, see the qcserial experiment > > > with > > > new_id below. > > > > Dan is right, you need qmi_wwan driver. qmicli expects > > /dev/cdc-wdm device. I use this on Droid 4: > > > > qmicli -d /dev/cdc-wdm0 --some-other-option > > Aha, there's ./drivers/usb/serial/usb_wwan.c and there's > ./drivers/net/usb/qmi_wwan.o . That confused me. > > qmicli now works for me, thanks! > > Tested-by: Pavel Machek > > Does ofonod work for you? I could not get that one to work... Because it's looking for a Gobi modem but the MDM6600 isn't one and doesn't expose that layout (and doesn't really need to anyway). I don't think ofono has a generic QMI driver, so you'd either need to for ce it to use the telitqmi or quectelqmi drivers, or write your own generic QMI one. Dan > ofonod[4083]: plugins/udevng.c:create_modem() > /sys/devices/platform/44000000.ocp/4a064000.usbhshost/4a064800.ohci/u > sb2/2-1 > ofonod[4083]: plugins/udevng.c:create_modem() driver=gobi > ofonod[4083]: src/modem.c:ofono_modem_create() name: (null), type: > gobi > ofonod[4083]: plugins/udevng.c:setup_gobi() > /sys/devices/platform/44000000.ocp/4a064000.usbhshost/4a064800.ohci/u > sb2/2-1 > ofonod[4083]: plugins/udevng.c:setup_gobi() /dev/cdc-wdm0 255/251/255 > 05 (null) (null) usbmisc > ofonod[4083]: plugins/udevng.c:setup_gobi() wwan0 255/251/255 05 > (null) (null) net > ofonod[4083]: plugins/udevng.c:setup_gobi() /dev/cdc-wdm1 255/251/255 > 06 (null) (null) usbmisc > ofonod[4083]: plugins/udevng.c:setup_gobi() wwan1 255/251/255 06 > (null) (null) net > ofonod[4083]: plugins/udevng.c:setup_gobi() /dev/cdc-wdm2 255/251/255 > 07 (null) (null) usbmisc > ofonod[4083]: plugins/udevng.c:setup_gobi() wwan2 255/251/255 07 > (null) (null) net > ofonod[4083]: plugins/udevng.c:setup_gobi() /dev/cdc-wdm3 255/251/255 > 08 (null) (null) usbmisc > ofonod[4083]: plugins/udevng.c:setup_gobi() wwan3 255/251/255 08 > (null) (null) net > ofonod[4083]: plugins/udevng.c:destroy_modem() > /sys/devices/platform/44000000.ocp/4a064000.usbhshost/4a064800.ohci/u > sb2/2-1 > ofonod[4083]: src/modem.c:ofono_modem_remove() 0x5eb380 > ofonod[4083]: plugins/udevng.c:destroy_modem() /dev/cdc-wdm0 > ofonod[4083]: plugins/udevng.c:destroy_modem() wwan0 > ofonod[4083]: plugins/udevng.c:destroy_modem() /dev/cdc-wdm1 > ofonod[4083]: plugins/udevng.c:destroy_modem() wwan1 > ofonod[4083]: plugins/udevng.c:destroy_modem() /dev/cdc-wdm2 > ofonod[4083]: plugins/udevng.c:destroy_modem() wwan2 > ofonod[4083]: plugins/udevng.c:destroy_modem() /dev/cdc-wdm3 > ofonod[4083]: plugins/udevng.c:destroy_modem() wwan3 > ofonod[4083]: plugins/upower.c:upower_connect() upower connect > ofonod[4083]: plugins/hfp_hf_bluez5.c:connect_handler() Registering > External Profile handler ... > > > Pavel