Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751809AbbK0Fxg (ORCPT ); Fri, 27 Nov 2015 00:53:36 -0500 Received: from relmlor2.renesas.com ([210.160.252.172]:19155 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750766AbbK0Fxb convert rfc822-to-8bit (ORCPT ); Fri, 27 Nov 2015 00:53:31 -0500 X-IronPort-AV: E=Sophos;i="5.20,350,1444662000"; d="scan'208";a="199413046" From: Yoshihiro Shimoda To: Kishon Vijay Abraham I , "robh+dt@kernel.org" , "pawel.moll@arm.com" , "mark.rutland@arm.com" , "ijc+devicetree@hellion.org.uk" , "galak@codeaurora.org" CC: "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-sh@vger.kernel.org" Subject: RE: [PATCH v5 1/4] phy: rcar-gen3-usb2: Add R-Car Gen3 USB2 PHY driver Thread-Topic: [PATCH v5 1/4] phy: rcar-gen3-usb2: Add R-Car Gen3 USB2 PHY driver Thread-Index: AQHRCxVugsTrC+OVrUOJE0PqXxaXop6vkLYAgAAIBlA= Date: Fri, 27 Nov 2015 05:53:26 +0000 Message-ID: References: <1445331471-5028-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> <1445331471-5028-2-git-send-email-yoshihiro.shimoda.uh@renesas.com> <5657E84C.5010800@ti.com> In-Reply-To: <5657E84C.5010800@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-microsoft-exchange-diagnostics: 1;SG2PR06MB0918;5:uRoH0xHVXeGioBhOB0BZL+omDvRLi8B+ae8ZJwaEUGG10I2xY+iCYjcQe6JzGD+zjFWTPnbcBxvUlQWByGgBJ+xF3TgqkYKvdiOxvc4VY0FrrcvUC34ebPJfhyImFjwGRGlqnX1LFdpUGl/3FomdCw==;24:CIst1nWoERJcAdJNnJ8TtBb8i/893GJxQGcoWzJbDe8nqds2d+e5N0cmRW02nPAFJQTIPnSlrb7StjkknU4Y8DYdtZRm15mABSNsGBphS7s=;20:Hzb4MTS/htQrf/AacwmnGnUVenv/Xfl7FOcYpM7uuTMBN/Mf0iv2MZs1IwPgnbrATlOu3C1fmT/FlrXEC14VMogIk1QFzTnvMeS18AfaG8vTkTzXbPkiPNK7LZmwy43njg4tNTNCN/uL6fN65W6BF9Cqaixg/dolwb6KEUScgUs= 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)(520078)(8121501046)(3002001)(10201501046);SRVR:SG2PR06MB0918;BCL:0;PCL:0;RULEID:;SRVR:SG2PR06MB0918; x-forefront-prvs: 0773BB46AC x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(199003)(24454002)(377454003)(189002)(105586002)(40100003)(77096005)(81156007)(87936001)(86362001)(106116001)(189998001)(101416001)(5001770100001)(106356001)(230783001)(19580405001)(76576001)(19580395003)(122556002)(2950100001)(3846002)(92566002)(2900100001)(6116002)(102836003)(76176999)(66066001)(561944003)(586003)(10400500002)(50986999)(5003600100002)(5001960100002)(5002640100001)(2501003)(54356999)(97736004)(33656002)(1096002)(1220700001)(5004730100002)(11100500001)(74316001)(5008740100001);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: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: 27 Nov 2015 05:53:26.2153 (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 Content-Length: 1644 Lines: 55 Hi, Thank you for the review! > From: Kishon Vijay Abraham I [mailto:kishon@ti.com] > Sent: Friday, November 27, 2015 2:21 PM > > Hi, > > On Tuesday 20 October 2015 02:27 PM, Yoshihiro Shimoda wrote: > > This patch adds support for R-Car generation 3 USB2 PHY driver. > > This SoC has 3 EHCI/OHCI channels, and the channel 0 is shared > > with the HSUSB (USB2.0 peripheral) device. And each channel has > > independent registers about the PHYs. > > > > So, the purpose of this driver is: > > 1) initializes some registers of SoC specific to use the > > {ehci,ohci}-platform driver. > > > > 2) detects id pin to select host or peripheral on the channel 0. > > > > For now, this driver only supports 1) above. > > When you do 2), make sure to use the extcon framework. Thank you for your proposal! I will use the extcon framework for it. > One minor comment below and then I can queue it for 4.5. Thank you! < snip > > > + provider = devm_of_phy_provider_register(dev, of_phy_simple_xlate); > > + if (IS_ERR(provider)) { > > + dev_err(dev, "Failed to register PHY provider\n"); > > + return PTR_ERR(provider); > > + } > > + > > + return 0; > > This can simply be replaced with return PTR_ERR_OR_ZERO(provider); Yes, I tested that this could simply be replaced with "return PTR_ERR_OR_ZERO(provider);". So, should I send v6 patch? Best regards, Yoshihiro Shimoda > Thanks > Kishon -- 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/