Received: by 10.213.65.68 with SMTP id h4csp1098635imn; Thu, 22 Mar 2018 15:24:36 -0700 (PDT) X-Google-Smtp-Source: AG47ELvtx1j9IuLAuBs6mbiN4qvqtX80sp38cGuvO//jDGTBHNJFy/RpXRAfWiTYu9Iy3Tq1MB/D X-Received: by 10.101.88.76 with SMTP id s12mr19236401pgr.423.1521757476569; Thu, 22 Mar 2018 15:24:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521757476; cv=none; d=google.com; s=arc-20160816; b=VgsQHKRncqefkDU/G+/225ZbYMt2anWtSy+eEkJpc0ZooQRxne+Jm3Wey/3TCvFCVL Png28grA8luSmes1qnaRHpRUPO02ELGk68U+T987tB4EGa9+HfuRdYCrJCw9Kp0DWLSA JMmZQV6MQYvRry0+S6/CEzOz7lJqFjwVEr1s3DNbjWwc817DxqwBeTbpOBSq6lWDOSjs 1mVdUkPQNp37Xci0FwuYCjejaR1lpHjBGvfUWnKZlcHz1sGs0XgHGd+JzWXH4dz7x0Wf 86jv91IEsqRLiRJNqi7RNookGEZFaQA6CCu+zFzXBmstgBjkVbdk57BPKspz6K6DT6BW Zmfg== 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=uxc1oAlQvVO35XH9yRxsF3J3nzNclmuWqnxPif7UKhA=; b=ywwNZMcitEXGR6EsTraoY6vTzlwsuySzCu+O3n3k3mD3KpMyhgxNBoBPuQSgjnCMt8 FbtovqeChBb3Kf450NOPuTYfTF3O9663O/KQ9LIc7QVRjGlhLc+tBwP7TtAtSs38poOL U8WX6QCOvK7ZdcdDAYqvFBkAF78cn3hZbTTRwjTmLr7n7xlZscGUsSJY5mnvBFbhq3ke /cuyN2Y2VxcXwpEJzusmXH7fjwLuSLjBI4/Fr9qnYb7wQo+YNsr/5pJr78gOuUPLwfli upQeDLeG1MdCW6cFM0nzqU6M3LUZ8msSUv6sSumfRxO7PxUQGrqnBidAESxkFDY/QTyZ 4A3g== 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 n5si5052048pgs.106.2018.03.22.15.24.21; Thu, 22 Mar 2018 15:24:36 -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 S1751892AbeCVWXV (ORCPT + 99 others); Thu, 22 Mar 2018 18:23:21 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:48620 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751303AbeCVWXT (ORCPT ); Thu, 22 Mar 2018 18:23:19 -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 EBCF140201A6; Thu, 22 Mar 2018 22:23:18 +0000 (UTC) Received: from ovpn-112-47.rdu2.redhat.com (ovpn-112-47.rdu2.redhat.com [10.10.112.47]) by smtp.corp.redhat.com (Postfix) with ESMTP id 23EAC2023230; Thu, 22 Mar 2018 22:23:16 +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 , Tony Lindgren Cc: 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: Thu, 22 Mar 2018 17:23:16 -0500 In-Reply-To: <20180322192843.GA17189@amd> References: <20180309023750.108942-1-tony@atomide.com> <20180322135553.GA27648@amd> <20180322164633.GF5799@atomide.com> <20180322192843.GA17189@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.6]); Thu, 22 Mar 2018 22:23:19 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Thu, 22 Mar 2018 22:23:19 +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 Thu, 2018-03-22 at 20:28 +0100, Pavel Machek wrote: > Hi! > > > > user@devuan:/sys/devices/platform/44000000.ocp/4a064000.usbhshost > > > $ > > > sudo lsusb > > > Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub > > > Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub > > > user@devuan:/sys/devices/platform/44000000.ocp/4a064000.usbhshost > > > $ > > > zcat /proc/config.gz | grep MAPPH > > > CONFIG_PHY_MAPPHONE_MDM6600=y > > > user@devuan:/sys/devices/platform/44000000.ocp/4a064000.usbhshost > > > $ > > > zcat /proc/config.gz | grep OHCI_ > > > CONFIG_USB_OHCI_LITTLE_ENDIAN=y > > > CONFIG_USB_OHCI_HCD=y > > > CONFIG_USB_OHCI_HCD_OMAP3=y > > > CONFIG_USB_OHCI_HCD_PLATFORM=y > > > user@devuan:/sys/devices/platform/44000000.ocp/4a064000.usbhshost > > > $ > > > > > > As far as I can tell, > > > > > > +CONFIG_USB_WDM=y > > > +CONFIG_USB_SERIAL=y > > > +CONFIG_USB_SERIAL_QUALCOMM=y > > > +CONFIG_USB_SERIAL_WWAN=y > > > > > > should be enabled to enable the drivers (and I did that), but > > > without > > > device showing on the bus... > > > > > > Any ideas? > > > > 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. Dan > Anyway, that does not seem to work. Something is detected now: > > [ 10.819549] ALSA device list: > [ 10.831787] #0: HDMI 58006000.encoder > [ 10.841186] Waiting 10 sec before mounting root device... > [ 10.887573] usb 2-1: New USB device found, idVendor=22b8, > idProduct=2a70 > [ 10.897521] usb 2-1: New USB device strings: Mfr=1, Product=2, > SerialNumber=0 > [ 10.907684] usb 2-1: Product: Flash MZ600 > [ 10.914611] usb 2-1: Manufacturer: Motorola, Incorporated > [ 20.967193] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to > feature incompatibilities > > But qcserial driver does not bind to that. If I attempt to force it: > > root@devuan:/sys/bus/usb-serial/drivers/qcserial# lsusb > Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub > Bus 002 Device 002: ID 22b8:2a70 Motorola PCS > Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub > root@devuan:/sys/bus/usb-serial/drivers/qcserial# echo "22b8 2a70" > > new_id > [ 2059.267730] usb 2-1: unknown number of interfaces: 9 > [ 2059.272949] usb 2-1: unknown number of interfaces: 9 > [ 2059.278045] usb 2-1: unknown number of interfaces: 9 > [ 2059.283233] usb 2-1: unknown number of interfaces: 9 > [ 2059.288330] usb 2-1: unknown number of interfaces: 9 > [ 2059.293457] usb 2-1: unknown number of interfaces: 9 > [ 2059.298553] usb 2-1: unknown number of interfaces: 9 > [ 2059.303680] usb 2-1: unknown number of interfaces: 9 > [ 2059.308776] usb 2-1: unknown number of interfaces: 9 > > I don't get anything useful. Do I need to boot android before booting > Linux or something? How does your lsusb look like? > > Thanks, > Pavel