Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp515686imm; Tue, 15 May 2018 05:15:37 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr0FFD/fveH0sOdS53gUjZHnNy8JbQrEdzG/YneEEjWftYBBJusqwb+PPnfQLLFA0U8hib2 X-Received: by 2002:aa7:81cc:: with SMTP id c12-v6mr15064812pfn.169.1526386537173; Tue, 15 May 2018 05:15:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526386537; cv=none; d=google.com; s=arc-20160816; b=xFOy0fdsOw3rOPPfuw7hVxDQ/IkS/FTB7dKIfPwnTw70A9ahd7ect04OyeiCZCrS22 bIrEZt6Kb+YCr7qxu7Y3d57Zv1kShIoJtrdNcuxg/dFok0vtLFU4XnnmwlbM3KILY060 BCYXZylTISqvrdu8sYvrN0mwKI88S1OzdJfgFKoHS4J8nLEqT5sB6lg8+BwYyLvD7dii D2kTadPzfC1L1vQJtcbrKSSskrUivaVj3EadMBCLvLyJkxILp/Igwoyfwf6RoA3Pwuce cBQ3YdVfczkatih97HVatx3QQSW1YxCL1LADC5wnBrHoGn+4B3FWuY5Ptb274HL94DZI S4rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=/+b4gZnnPHpp/eDWaBOdvV4I0M2TECq1fHnhFmifJmM=; b=K6aKUWfRCnuvJSZakvjwr4l8Tr4I7Hus/J4kjSpjM35JaCyaSrtJt48UIwzwHhfNvD k93scwyLezio/RQsv0fHClu3t4b3tNkDjcagEV8ReM8SeTzasBwJ6qDxoRxejO2slkGl l/TTUYcqLYpVHk16OqgsTVBrN/Q9TNCBiYw+YySGoC8DFT90ObCi1EiRo9oarHSBxSq5 /v/lweTMwktO2djI6mmuGmjNFTB0kG58tkrA7RFkbfirQEho3GaBU4z0I9jBGZAVwajo fTuXkGwcIh8vrwnHylwjK9V/RIsLDUYGc50iMyL3pN1f0uLB5gmCfkUgA71L6prtJp26 5ggA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=C1c0TAAj; 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=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b190-v6si9474418pgc.18.2018.05.15.05.15.13; Tue, 15 May 2018 05:15:37 -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; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=C1c0TAAj; 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=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753190AbeEOMM5 (ORCPT + 99 others); Tue, 15 May 2018 08:12:57 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:60667 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752490AbeEOMMz (ORCPT ); Tue, 15 May 2018 08:12:55 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20180515121252euoutp02c9e2e9502c5c4a96723022d41b824864~u0FGai2wS0940509405euoutp02s; Tue, 15 May 2018 12:12:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180515121252euoutp02c9e2e9502c5c4a96723022d41b824864~u0FGai2wS0940509405euoutp02s DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1526386372; bh=/+b4gZnnPHpp/eDWaBOdvV4I0M2TECq1fHnhFmifJmM=; h=From:To:Cc:Subject:Date:References:From; b=C1c0TAAjvb12KlzETOgP6ULbZlPQd9y5y2s22DfpIxS2edjOuKTB86lSs90qdXSX6 EKNN/k2XI3IyF+7IvfQun5p2x1VnzNp3u/hze3+8ZZCjXQ57sQUbJAgzBxXWc+eYOK 7hA2OiK0cIjEBrnJQ6d0TubQSmKHjp0poEqF1nJs= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180515121251eucas1p28e2feded45ee615a5cc31b4f45ffcac2~u0FFcDRaU0205802058eucas1p2E; Tue, 15 May 2018 12:12:51 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 11.33.10409.3CECAFA5; Tue, 15 May 2018 13:12:51 +0100 (BST) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180515121250eucas1p115e0ee3cefb47faacbd4e4583b11f6e8~u0FEay2sz3076130761eucas1p14; Tue, 15 May 2018 12:12:50 +0000 (GMT) X-AuditID: cbfec7f5-b5fff700000028a9-5f-5afacec34f9a Received: from eusync4.samsung.com ( [203.254.199.214]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 00.D8.04178.2CECAFA5; Tue, 15 May 2018 13:12:50 +0100 (BST) Received: from AMDC2768.DIGITAL.local ([106.120.43.17]) by eusync4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P8R00C6NR9DS130@eusync4.samsung.com>; Tue, 15 May 2018 13:12:50 +0100 (BST) From: Andrzej Hajda To: linux-usb@vger.kernel.org (open list:DESIGNWARE USB3 DRD IP DRIVER) Cc: Andrzej Hajda , Bartlomiej Zolnierkiewicz , Marek Szyprowski , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), Felipe Balbi , Greg Kroah-Hartman , Inki Dae , Rob Herring , Mark Rutland , Krzysztof Kozlowski , Chanwoo Choi , Laurent Pinchart , linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH v2 0/2] USB: dwc3: get extcon device by OF graph bindings Date: Tue, 15 May 2018 14:12:37 +0200 Message-id: <20180515121239.18192-1-a.hajda@samsung.com> X-Mailer: git-send-email 2.17.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrEIsWRmVeSWpSXmKPExsWy7djP87qHz/2KMti+lc/i1rpzrBYbZ6xn tTjW9oTd4vqX56wW848AxZoXr2ezmHR/AovF+fMb2C06Jy5ht7i8aw6bxYzz+5gsFi1rZbZY e+Quu8XS6xeZLFr3HmF34PdYM28No8fsjpmsHptWdbJ57J+7ht2jb8sqRo/Pm+QC2KK4bFJS czLLUov07RK4Mk6+kin4wVGxao9AA+N7ti5GTg4JAROJ/d3XWboYuTiEBFYwSvRvfQzlfGaU mNM5kQWm6veiz8wgtpDAMkaJXxejIez/jBLnjmiD2GwCmhJ/N98Emyoi4C6xbPk1VpBBzAIf WSRauj4CJTg4hAU8JfrfqYLUsAioSkzdfwFsJq+AhUTj4uXMELvkJZ5Nn8cO0ishsIZN4vva y4wQCReJCb3TmCBsYYlXx7ewQ9gyEp0dB6Hi1RI3XzSxQDR3MErc/90O9ae1xOHjF1lBbGYB PolJ26YzgxwkIcAr0dEmBFHiIfH62iuoIxwlVk3tYId4Mlbi9uqTTBMYJRcwMqxiFE8tLc5N Ty02zkst1ytOzC0uzUvXS87P3cQIjOnT/45/3cG470/SIUYBDkYlHt4dM35GCbEmlhVX5h5i lOBgVhLh3W0EFOJNSaysSi3Kjy8qzUktPsQozcGiJM4bp1EXJSSQnliSmp2aWpBaBJNl4uCU amDUXLMqaKtJbqg+l2DZ+XC+8KikNzVM/6TE2ruFzB9MVE62k7frZ+Bt1puUfHvWfs4ItUsz zt+cqcpe4ty7XGTLZgHXoyvYta4cmH//v17ubuN7Mtk33u6Ner5l1UXBmGsmvvLmXTOerpGY XmF13tH86+n+TXvfxfY2fPwi63lDYLHhXJUbH42UWIozEg21mIuKEwHblY8i5QIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprFLMWRmVeSWpSXmKPExsVy+t/xa7qHzv2KMjiyTdzi1rpzrBYbZ6xn tTjW9oTd4vqX56wW848AxZoXr2ezmHR/AovF+fMb2C06Jy5ht7i8aw6bxYzz+5gsFi1rZbZY e+Quu8XS6xeZLFr3HmF34PdYM28No8fsjpmsHptWdbJ57J+7ht2jb8sqRo/Pm+QC2KK4bFJS czLLUov07RK4Mk6+kin4wVGxao9AA+N7ti5GTg4JAROJ34s+M3cxcnEICSxhlPjxfw4bhNPI JHF94gZ2kCo2AU2Jv5tvgnWICLhLLFt+jRWkiFngK4vEpO8vgYo4OIQFPCX636mC1LAIqEpM 3X+BGcTmFbCQaFy8nBlim7zEs+nz2Ccwci1gZFjFKJJaWpybnltsqFecmFtcmpeul5yfu4kR GGLbjv3cvIPx0sbgQ4wCHIxKPLw7ZvyMEmJNLCuuzD3EKMHBrCTCu9sIKMSbklhZlVqUH19U mpNafIhRmoNFSZz3vEFllJBAemJJanZqakFqEUyWiYNTqoFxxnZVpxXpZ9bf7tu3jCtFdF6U 7ybF1BVPao6m3Nr+becsndiYV56SKyqTC+bWB6TmdMotvRMhURIvmJCbfak+71TLzXv1Mofu rL3oebKCYbPrDLvcP682fQjYeWmn2c+VLz6ozTGqX2XI/l6KY07OVfWbPndX7Nx6o+3mYp4X C4sO88Xu/LbEW4mlOCPRUIu5qDgRAMiLgHwtAgAA X-CMS-MailID: 20180515121250eucas1p115e0ee3cefb47faacbd4e4583b11f6e8 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180515121250eucas1p115e0ee3cefb47faacbd4e4583b11f6e8 X-RootMTR: 20180515121250eucas1p115e0ee3cefb47faacbd4e4583b11f6e8 References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This small patchset tries to address issue with broken DT extcon property in case of USB controller - DWC3. It exposes similar problem as in proposed USB connector bindings[1] - extcon device is required by devices not always connected directly to extcon device. Here we have: DWC3 -> USB-PHY -> MUIC -> USB-connector ^ MHL-bridge---------------------^ More details and proposition of generic solution in first patch v2: - rebased on latest linux-next, - since recently dwc3 fallbacks to ID detection using internal OTG block if extcon property is not present, added code allowing to fallback to OTG block also in case of graph is not present [1]: https://marc.info/?i=20180131134435.12216-1-a.hajda%40samsung.com Regards Andrzej Andrzej Hajda (2): USB: dwc3: get extcon device by OF graph bindings arm64: dts: exynos: add OF graph between USB-PHY and MUIC .../dts/exynos/exynos5433-tm2-common.dtsi | 19 ++++++++++- drivers/usb/dwc3/drd.c | 34 +++++++++++++++---- 2 files changed, 46 insertions(+), 7 deletions(-) -- 2.17.0