From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753404AbcEPIMt (ORCPT ); Mon, 16 May 2016 04:12:49 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:47952 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752049AbcEPIMo (ORCPT ); Mon, 16 May 2016 04:12:44 -0400 Subject: Re: [PATCH v8 10/14] usb: otg: add hcd companion support To: Rob Herring References: <1463133808-10630-1-git-send-email-rogerq@ti.com> <1463133808-10630-11-git-send-email-rogerq@ti.com> CC: Peter Chen , , Tony Lindgren , Greg Kroah-Hartman , Dan Williams , Mathias Nyman , Joao Pinto , Sergei Shtylyov , Li Jun , Grygorii Strashko , "Shimoda, Yoshihiro" , Sekhar Nori , Bin Liu , Linux USB List , linux-omap , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" From: Roger Quadros Message-ID: <573980EA.10901@ti.com> Date: Mon, 16 May 2016 11:12:26 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13/05/16 21:13, Rob Herring wrote: > On Fri, May 13, 2016 at 5:03 AM, Roger Quadros wrote: >> From: Yoshihiro Shimoda >> >> Since some host controller (e.g. EHCI) needs a companion host controller >> (e.g. OHCI), this patch adds such a configuration to use it in the OTG >> core. >> >> Signed-off-by: Yoshihiro Shimoda >> Signed-off-by: Roger Quadros >> Acked-by: Peter Chen >> --- >> Documentation/devicetree/bindings/usb/generic.txt | 3 +++ >> drivers/usb/common/usb-otg.c | 32 ++++++++++++++++------- >> include/linux/usb/otg.h | 7 ++++- >> 3 files changed, 32 insertions(+), 10 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/usb/generic.txt b/Documentation/devicetree/bindings/usb/generic.txt >> index f6866c1..1db1c33 100644 >> --- a/Documentation/devicetree/bindings/usb/generic.txt >> +++ b/Documentation/devicetree/bindings/usb/generic.txt >> @@ -27,6 +27,9 @@ Optional properties: >> - otg-controller: phandle to otg controller. Host or gadget controllers can >> contain this property to link it to a particular OTG >> controller. >> + - hcd-needs-companion: must be present if otg controller is dealing with >> + EHCI host controller that needs a companion OHCI host >> + controller. > > I thought the conclusion was this is not needed? This is still needed to differentiate between primary+shared HCD case vs primary + primary-companion HCD case. > > One thing that is not clear here is otg-controller is a host or device > property while hcd-needs-companion is an OTG controller property. > These lists should be separated. Agreed. I'll fix that up. cheers, -roger