From patchwork Thu Mar 29 19:44:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Machek X-Patchwork-Id: 10316107 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CA32B60383 for ; Thu, 29 Mar 2018 19:44:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B9C1E287D4 for ; Thu, 29 Mar 2018 19:44:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AE7312A4D5; Thu, 29 Mar 2018 19:44:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_TVD_MIME_EPI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 159042A4D2 for ; Thu, 29 Mar 2018 19:44:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751973AbeC2ToQ (ORCPT ); Thu, 29 Mar 2018 15:44:16 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:50176 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751082AbeC2ToO (ORCPT ); Thu, 29 Mar 2018 15:44:14 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 5B28B8037B; Thu, 29 Mar 2018 21:44:12 +0200 (CEST) Date: Thu, 29 Mar 2018 21:44:12 +0200 From: Pavel Machek To: Dan Williams , ofono@ofono.org Cc: Sebastian Reichel , 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 Subject: Re: [PATCHv4] phy: mapphone-mdm6600: Add USB PHY driver for MDM6600 on Droid 4 Message-ID: <20180329194411.GD27688@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> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi! > > 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. You are right, it is detected as gobi now: user@devuan:/my/ofono$ sudo python2 test/list-modems [ /gobi_0 ] SystemPath = /sys/devices/platform/44000000.ocp/4a064000.usbhshost/4a064800.ohci/usb2/2-1 Features = Emergency = 0 Powered = 0 Lockdown = 0 Interfaces = Online = 0 Type = hardware ...and nothing works. commit db9b292f9290b97c87a8d4b4836af4763c06a39c Author: Bassem Boubaker Date: Mon Mar 19 17:57:31 2018 +0100 I tried this: But no luck: ofonod[15879]: plugins/udevng.c:create_modem() /sys/devices/platform/44000000.ocp/4a064000.usbhshost/4a064800.ohci/usb2/2-1 ofonod[15879]: plugins/udevng.c:create_modem() driver=telitqmi ofonod[15879]: src/modem.c:ofono_modem_create() name: (null), type: telitqmi ofonod[15879]: plugins/udevng.c:setup_telitqmi() /sys/devices/platform/44000000.ocp/4a064000.usbhshost/4a064800.ohci/usb2/2-1 ofonod[15879]: plugins/udevng.c:setup_telitqmi() /dev/cdc-wdm0 255/251/255 05 (null) usbmisc ofonod[15879]: plugins/udevng.c:setup_telitqmi() wwan0 255/251/255 05 (null) net ofonod[15879]: plugins/udevng.c:setup_telitqmi() /dev/cdc-wdm1 255/251/255 06 (null) usbmisc ofonod[15879]: plugins/udevng.c:setup_telitqmi() wwan1 255/251/255 06 (null) net ofonod[15879]: plugins/udevng.c:setup_telitqmi() /dev/cdc-wdm2 255/251/255 07 (null) usbmisc ofonod[15879]: plugins/udevng.c:setup_telitqmi() wwan2 255/251/255 07 (null) net ofonod[15879]: plugins/udevng.c:setup_telitqmi() /dev/cdc-wdm3 255/251/255 08 (null) usbmisc ofonod[15879]: plugins/udevng.c:setup_telitqmi() wwan3 255/251/255 08 (null) net ofonod[15879]: plugins/udevng.c:destroy_modem() /sys/devices/platform/44000000.ocp/4a064000.usbhshost/4a064800.ohci/usb2/2-1 ofonod[15879]: src/modem.c:ofono_modem_remove() 0x596480 ofonod[15879]: plugins/udevng.c:destroy_modem() /dev/cdc-wdm0 ofonod[15879]: plugins/udevng.c:destroy_modem() wwan0 ofonod[15879]: plugins/udevng.c:destroy_modem() /dev/cdc-wdm1 ofonod[15879]: plugins/udevng.c:destroy_modem() wwan1 ofonod[15879]: plugins/udevng.c:destroy_modem() /dev/cdc-wdm2 ofonod[15879]: plugins/udevng.c:destroy_modem() wwan2 ofonod[15879]: plugins/udevng.c:destroy_modem() /dev/cdc-wdm3 ofonod[15879]: plugins/udevng.c:destroy_modem() wwan3 ofonod[15879]: plugins/upower.c:upower_connect() upower connect ofonod[15879]: plugins/hfp_hf_bluez5.c:connect_handler() Registering External Profile handler ... With quectelqmi result was similar. I know there are AT commands available at /dev/ttyUSB4. Is there easy way to make ofonod connect to that? Thanks, Pavel diff --git a/plugins/udevng.c b/plugins/udevng.c index ff5d41af..6b103254 100644 --- a/plugins/udevng.c +++ b/plugins/udevng.c @@ -1578,8 +1578,6 @@ static struct { { "mbm", "cdc_ether", "0930" }, { "mbm", "cdc_ncm", "0930" }, { "hso", "hso" }, - { "gobi", "qmi_wwan" }, - { "gobi", "qcserial" }, { "sierra", "qmi_wwan", "1199" }, { "sierra", "qcserial", "1199" }, { "sierra", "sierra" }, @@ -1602,6 +1600,8 @@ static struct { { "telit", "cdc_acm", "1bc7", "0021" }, { "telitqmi", "qmi_wwan", "1bc7", "1201" }, { "telitqmi", "option", "1bc7", "1201" }, + { "telitqmi", "qmi_wwan", "22b8", "2a70" }, + { "telitqmi", "option", "22b8", "2a70" }, { "nokia", "option", "0421", "060e" }, { "nokia", "option", "0421", "0623" }, { "samsung", "option", "04e8", "6889" },