From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932172AbcFUCaf (ORCPT ); Mon, 20 Jun 2016 22:30:35 -0400 Received: from relmlor3.renesas.com ([210.160.252.173]:48677 "EHLO relmlie2.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751579AbcFUCa3 convert rfc822-to-8bit (ORCPT ); Mon, 20 Jun 2016 22:30:29 -0400 X-IronPort-AV: E=Sophos;i="5.22,559,1449500400"; d="scan'208";a="213405592" From: Yoshihiro Shimoda To: Roger Quadros , Felipe Balbi , "peter.chen@freescale.com" CC: "tony@atomide.com" , "gregkh@linuxfoundation.org" , "dan.j.williams@intel.com" , "mathias.nyman@linux.intel.com" , "Joao.Pinto@synopsys.com" , "sergei.shtylyov@cogentembedded.com" , "jun.li@freescale.com" , "grygorii.strashko@ti.com" , "robh@kernel.org" , "nsekhar@ti.com" , "b-liu@ti.com" , "joe@perches.com" , "linux-usb@vger.kernel.org" , "linux-omap@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" Subject: RE: [PATCH v11 08/14] usb: otg: add OTG/dual-role core Thread-Topic: [PATCH v11 08/14] usb: otg: add OTG/dual-role core Thread-Index: AQHRxUkw4Sfo3DxzBkaeMKGjdEeIRZ/yBN6AgAApRICAAQ8RwA== Date: Tue, 21 Jun 2016 02:30:22 +0000 Message-ID: References: <1465564043-27163-1-git-send-email-rogerq@ti.com> <1465564043-27163-9-git-send-email-rogerq@ti.com> <575E672E.5070603@ti.com> <87h9coxq04.fsf@linux.intel.com> <5767C1B9.2060805@ti.com> In-Reply-To: <5767C1B9.2060805@ti.com> Accept-Language: ja-JP, en-US Content-Language: ja-JP X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=yoshihiro.shimoda.uh@renesas.com; x-originating-ip: [211.11.155.144] x-ms-office365-filtering-correlation-id: f4962e5d-347b-4475-4f92-08d3997bff1d x-microsoft-exchange-diagnostics: 1;SG2PR06MB0918;20:QiFcicTcvDAPAkmqs9+qw/aS/RMMUdGmmctqzUg1jgZ4zrIeXWJZEoytJdeuuw+8PENTv9wZtcB3znm6CXKODpYLQkNsMmLvpwefcyqlm53R6pOLKl1AYpjYj4FX2gFSPI9bsiq8baVm7ULPqHeU9wcTt1aiCn/2f/l6N5CRamk= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SG2PR06MB0918; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6055026);SRVR:SG2PR06MB0918;BCL:0;PCL:0;RULEID:;SRVR:SG2PR06MB0918; x-forefront-prvs: 098076C36C x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(7916002)(377454003)(199003)(24454002)(189002)(9686002)(76176999)(54356999)(586003)(101416001)(77096005)(92566002)(68736007)(10400500002)(11100500001)(50986999)(8936002)(5001770100001)(87936001)(7846002)(189998001)(2501003)(66066001)(86362001)(575784001)(8666005)(8676002)(97736004)(81166006)(105586002)(106116001)(81156014)(106356001)(3280700002)(102836003)(3660700001)(76576001)(5002640100001)(74316001)(122556002)(4326007)(2906002)(6116002)(15975445007)(93886004)(3846002)(2900100001)(33656002)(19580395003)(2950100001)(5003600100003)(7696003)(7736002)(7059030);DIR:OUT;SFP:1102;SCL:1;SRVR:SG2PR06MB0918;H:SG2PR06MB0919.apcprd06.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Jun 2016 02:30:22.7828 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR06MB0918 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Roger, > From: Roger Quadros > Sent: Monday, June 20, 2016 7:13 PM > > Hi, > > On 20/06/16 10:45, Felipe Balbi wrote: < snip > > >> diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h > >> index f4fc0aa..1d74fb8 100644 > >> --- a/include/linux/usb/gadget.h > >> +++ b/include/linux/usb/gadget.h > >> @@ -328,6 +328,7 @@ struct usb_gadget_ops { > >> * @in_epnum: last used in ep number > >> * @mA: last set mA value > >> * @otg_caps: OTG capabilities of this gadget. > >> + * @otg_dev: OTG controller device, if needs to be used with OTG core. > > > > do you really know of any platform which has a separate OTG controller? > > > > Andrew had pointed out in [1] that Tegra210 has separate blocks for OTG, host > and gadget. > > [1] http://article.gmane.org/gmane.linux.ports.tegra/22969 > > Yoshihiro, > > How is the dual-role architecture on your Renesas platform? About the dual-role architecture, Renesas platform (R-Car H3) has a USB 2.0 host controller (EHCI/OHCI) with OTG function and a separate USB 2.0 peripheral controller (HS-USB). The OTG function is related to some PHY control registers, so I intend to add the OTG/Dual-role core support into the phy driver (drivers/phy/phy-rcar-gen3-usb2.c). Best regards, Yoshihiro Shimoda From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yoshihiro Shimoda Subject: RE: [PATCH v11 08/14] usb: otg: add OTG/dual-role core Date: Tue, 21 Jun 2016 02:30:22 +0000 Message-ID: References: <1465564043-27163-1-git-send-email-rogerq@ti.com> <1465564043-27163-9-git-send-email-rogerq@ti.com> <575E672E.5070603@ti.com> <87h9coxq04.fsf@linux.intel.com> <5767C1B9.2060805@ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT Return-path: In-Reply-To: <5767C1B9.2060805-l0cyMroinI0@public.gmane.org> Content-Language: ja-JP Sender: linux-usb-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Roger Quadros , Felipe Balbi , "peter.chen-KZfg59tc24xl57MIdRCFDg@public.gmane.org" Cc: "tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org" , "gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org" , "dan.j.williams-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org" , "mathias.nyman-VuQAYsv1563Yd54FQh9/CA@public.gmane.org" , "Joao.Pinto-HKixBCOQz3hWk0Htik3J/w@public.gmane.org" , "sergei.shtylyov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org" , "jun.li-KZfg59tc24xl57MIdRCFDg@public.gmane.org" , "grygorii.strashko-l0cyMroinI0@public.gmane.org" , "robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org" , "nsekhar-l0cyMroinI0@public.gmane.org" , "b-liu-l0cyMroinI0@public.gmane.org" , "joe-6d6DIl74uiNBDgjK7y7TUQ@public.gmane.org" , "linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" List-Id: devicetree@vger.kernel.org Hi Roger, > From: Roger Quadros > Sent: Monday, June 20, 2016 7:13 PM > > Hi, > > On 20/06/16 10:45, Felipe Balbi wrote: < snip > > >> diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h > >> index f4fc0aa..1d74fb8 100644 > >> --- a/include/linux/usb/gadget.h > >> +++ b/include/linux/usb/gadget.h > >> @@ -328,6 +328,7 @@ struct usb_gadget_ops { > >> * @in_epnum: last used in ep number > >> * @mA: last set mA value > >> * @otg_caps: OTG capabilities of this gadget. > >> + * @otg_dev: OTG controller device, if needs to be used with OTG core. > > > > do you really know of any platform which has a separate OTG controller? > > > > Andrew had pointed out in [1] that Tegra210 has separate blocks for OTG, host > and gadget. > > [1] http://article.gmane.org/gmane.linux.ports.tegra/22969 > > Yoshihiro, > > How is the dual-role architecture on your Renesas platform? About the dual-role architecture, Renesas platform (R-Car H3) has a USB 2.0 host controller (EHCI/OHCI) with OTG function and a separate USB 2.0 peripheral controller (HS-USB). The OTG function is related to some PHY control registers, so I intend to add the OTG/Dual-role core support into the phy driver (drivers/phy/phy-rcar-gen3-usb2.c). Best regards, Yoshihiro Shimoda -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html