Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751771AbbGMJEa (ORCPT ); Mon, 13 Jul 2015 05:04:30 -0400 Received: from relmlor3.renesas.com ([210.160.252.173]:53160 "EHLO relmlie2.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751354AbbGMJEV convert rfc822-to-8bit (ORCPT ); Mon, 13 Jul 2015 05:04:21 -0400 X-IronPort-AV: E=Sophos;i="5.15,461,1432566000"; d="scan'208";a="190218914" From: Phil Edworthy To: Sergei Shtylyov , "Kishon Vijay Abraham I" CC: Rob Herring , Pawel Moll , "Mark Rutland" , Ian Campbell , Kumar Gala , Yoshihiro Shimoda , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-usb@vger.kernel.org" , "linux-sh@vger.kernel.org" Subject: RE: [PATCH v3] phy: rcar-gen2 usb: Add Host/Function switching for USB0 Thread-Topic: [PATCH v3] phy: rcar-gen2 usb: Add Host/Function switching for USB0 Thread-Index: AQHQuKwjcYvjF2RvDkeFG+0NoRt2Cp3U67UAgAQ2M3A= Date: Mon, 13 Jul 2015 09:04:14 +0000 Message-ID: References: <1436270121-25924-1-git-send-email-phil.edworthy@renesas.com> <559FF47A.5000001@cogentembedded.com> In-Reply-To: <559FF47A.5000001@cogentembedded.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: cogentembedded.com; dkim=none (message not signed) header.d=none; x-originating-ip: [193.141.220.21] x-microsoft-exchange-diagnostics: 1;SIXPR06MB0921;5:dDfwiHt8cxFJZKeMGxKSV/+66kLAnXussTHEGjklWiKy12+bF6xoa+GKHhEFLEhaxcQwAC6xpIAzfzw0j/tnVhd+KzuSS6t3/Um36Zxp/IhVKqeulLjf+eJuClnuPFl8JrNpLOcU1azCxtobv1BkUQ==;24:4K/uTG36cJmpgjGKQHJVtF1GyGtKVwR7GadYoC+ZYjrYSsDeKgZ7mL3V988MUSUQJP2hkWyua+dvNnSy0qBxzED3DYqQHM2AZmXNOu4unBE=;20:Fh2legDVZ7dRBQdba0pGygTuQuLCG2DVhz35TzlHTU/HQLW707Kll55py0gNrWiYKkUnlFvzVuoF89VfHi/8L7gi7C4Jj33H1AR1xZd7AJSIm756KXebhVZ6ouXzuNb4a+j1FqiuqwVbn2wOw9HCvBUao4yNVPHiBN1a3QFKxdM= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SIXPR06MB0921; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:SIXPR06MB0921;BCL:0;PCL:0;RULEID:;SRVR:SIXPR06MB0921; x-forefront-prvs: 0636271852 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(51704005)(24454002)(377454003)(479174004)(102836002)(66066001)(77156002)(62966003)(106116001)(46102003)(77096005)(54356999)(50986999)(5001770100001)(189998001)(2900100001)(76576001)(2950100001)(5002640100001)(19580405001)(19580395003)(5001960100002)(74316001)(5003600100002)(76176999)(92566002)(122556002)(86362001)(87936001)(33656002)(40100003)(2656002);DIR:OUT;SFP:1102;SCL:1;SRVR:SIXPR06MB0921;H:SIXPR06MB0639.apcprd06.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; spamdiagnosticoutput: 1:23 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: 13 Jul 2015 09:04:14.3909 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: SIXPR06MB0921 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1338 Lines: 39 Hi Sergei, On 10 July 2015 17:36, Sergei wrote: > Hello. > > On 07/07/2015 02:55 PM, Phil Edworthy wrote: > > > Instead of statically selecting the PHY connection to either the > > USBHS (Function) or PCI0 (Host) IP blocks, this change allows the > > dts to specifiy gpio pins for the vbus and id signals. Additional > > These GPIOs don't have anything to do with the PHY, they're interfacing > Maxim MAX3355 OTG chip for which I have submitted the extcon driver. Hmm, I see what you mean... could you post your latest version of that driver as it seems to have stalled 6 months ago? > > gpio pins are used to control power to an external OTG device and > > an override to turn vbus on/off. > > > Note: the R-Car USB PHY only allows this Host/Function switching > > on channel 0. > > > This has been tested on a r8a7791 based Koelsch board, which uses > > a MAX3355 device to supply vbus power when needed. > > > Signed-off-by: Phil Edworthy > > I'm inclined to NAK this. You're modifying the wrong driver, I think. > > WBR, Sergei Thanks Phil -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/