Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753757AbbF3D3y (ORCPT ); Mon, 29 Jun 2015 23:29:54 -0400 Received: from mail-bn1bon0115.outbound.protection.outlook.com ([157.56.111.115]:38527 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752880AbbF3D3r (ORCPT ); Mon, 29 Jun 2015 23:29:47 -0400 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=freescale.com; vger.kernel.org; dkim=none (message not signed) header.d=none; Date: Tue, 30 Jun 2015 10:06:08 +0800 From: Peter Chen To: Mike Looijmans CC: , , Subject: Re: [PATCH 1/2] usb: chipidea: Reduce ULPI PHY reset pulse to datasheet spec of 1us Message-ID: <20150630020607.GA7586@shlinux2> References: <1435326424-18748-1-git-send-email-mike.looijmans@topic.nl> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1435326424-18748-1-git-send-email-mike.looijmans@topic.nl> User-Agent: Mutt/1.5.21 (2010-09-15) X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11FD048;1:+OuI3aRAZeMP5tOe+4QX8CcIv9KhT4a3kgRrup1RnpNEpBv0oWQXJpjQH81VJBRNNiCVaGZAyAbpwn9ytTI2BBvEyQBp2fsWXsAEJP4HNCm6ckS6QWVdoYYQqNAhN3Mj22lWV/YNIvBZ5JQxUNX3Rv3CAm28bMNnUt+BKeSoN2IYzH7RwGb816b/iEjiioKQVvw1KGBgG0nXEoembIGwjLk2xTGe+QRE1HiXsrYX5L4WA3XQUkpnDHjiUTwA0/EDvXLy7cnHRvPCCeFM2RFttxzhmkw7lF4xPkkQAtM7NegHuF/SC6kADnYjT3tIvOE5+IMw7ATAXVFoMkdzCGG4dJ9+a/AS+jtd3Y5tXXJeojM= X-Forefront-Antispam-Report: CIP:192.88.158.2;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(2980300002)(1060300003)(339900001)(199003)(189002)(24454002)(76176999)(54356999)(19580395003)(83506001)(23726002)(19580405001)(4001350100001)(85426001)(33716001)(105606002)(50466002)(77096005)(46102003)(46406003)(62966003)(50986999)(87936001)(4290100001)(5001960100002)(2950100001)(86362001)(110136002)(92566002)(33656002)(110436001)(106466001)(77156002)(104016003)(6806004)(47776003)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:BLUPR03MB278;H:az84smr01.freescale.net;FPR:;SPF:Fail;MLV:sfv;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BLUPR03MB278;2:8CuxPv3+4uEqJ1HSvRZowI7psWfardFdWxIZFA0Q9gEadBBaUqzx4HnsewpGtSIi;3:ot3Wpf+pt41TvSYEFPVQUdwQSoO0MLc5l4vLh1tIwf2QnVvSYFC9mMgkP+JR0xqwiwG7orWUyhLNG0CQae64Uzomk7AvHHA3ZpbQ/QV3HfNtFzU5voWSOtfBDeJM83XS5nC3cVQ+vHlWuf9xhcgICxWj/OGQevmZPKDqETHH90eO31dMWBFMEmSYD+VybtRYgOjjJg/Jij9xdTzxisjVtw3yJJXMBr3gR7lQP7oKwUY=;25:WDF5+/ydPPbEsPOXWJuXfP/j/dXFuteQx6l3cowvl73sNOF2UhEtU86+KH4UtF5o32O6CjdMTz49VUiGFGGJoe5f55Zi7n0qJS4Ea/qOX1/u+b/NQy9xvES/5SWaQ8uQmrMKeDdXOLa00vAT/SXgfoenbOR806oHdfMw9ui+P8lh9yFsC4oapgTsu9qAyqinHeH0tVes75aHRdZWrSIugrki29DAoXAkzK2Scmg/QMdZWGI5b078oS9lnSVtz/Jo;20:IeZHpyPaN3aGruVTTTZOtQgBh+0HQezjoRSwajXh6GebBRCui8ZXtCBxAXDEdLY+3PB8Q6RxSfkCblqaM+dP8VCvOmSaBVVkz6fP9Kqojy/wRgJ099N3ucI9RHJzsz1IS8yOUfWduKxuTwzDsxVQtBEuOZM0hoclIfzcluhYgkzGouiDODt2kVU+MHVl2Sn+3Hg64rEY1kjtZzNhqWwuFNcWFPwB2JM9JmUKBL0LOkDT+GGl2Y8aX9q8RRtzsTCzEorE4rMKc4wepkqjtQUnH4wiJF9OnMreGVf1FRmoyL6SXXhD2gLHGLIXiXLoLGYYUfTh6ioD3biruYix78JcldW8NK04Z0/3E5+vy/d0Ncw= X-Microsoft-Antispam: UriScan:;BCL:1;PCL:0;RULEID:;SRVR:BLUPR03MB278; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:1;PCL:0;RULEID:(601004)(5005006)(1201001)(3002001);SRVR:BLUPR03MB278;BCL:1;PCL:0;RULEID:;SRVR:BLUPR03MB278; X-Microsoft-Exchange-Diagnostics: 1;BLUPR03MB278;4:4uVZj+FA7ci0FwJoZpmnJX0My+dT1ba2S2LC9Wy5wV7CtSgm93rT4iAIz4F5/+xFiiuMCdLzuATZG/bPcz5TJ+O5M66KXyfuunMufF6hgX7l6R6MgC07qcNQ2tMrCvkae2fYHKq0swOg006JlE7UCnKDA/Y/3xyXyHLv4fBbIr/p/7/A7+NoIUziOYZrMdj/4dLSOQg0CtIjB7cJQQrVxRCQ9ZglIyCQdSi2iSx9Wyf5tgjwoB91mTC2fNtTU8eSCtgZthRNuAavR8kw0j4T9x1NGFB6j7M/upkC/zaa/Q2Eb3DvYSXO0RIMbXsTk+55 X-Forefront-PRVS: 06237E4555 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BLUPR03MB278;23:Wcr+c1tM9ZET5llS+g3R4fpchA18iZ5v7HheQzp5n6?= =?us-ascii?Q?pIdmYpBd99Q3vrYVs//j9g5jedVZnY6qOx3bDab7vZg+Ta1Olnx6MiUZx3d9?= =?us-ascii?Q?tIJJIGL7slC8e7YUj9eLmbLvZM1LaiqzMbPPE4BQ/WXgF/q2NgNl9HGDC7ms?= =?us-ascii?Q?TmID4zS/Ftl6CCG9vsafo6qjSocgbZ4uGqfYayGTpL73ooj/vZOCFAKnI2L/?= =?us-ascii?Q?BLXD6D/f6XPfqv2VVBz2bSFLSoosNbpBgJZi8vj6a1kKsJ46q3+ehl0F1Smf?= =?us-ascii?Q?DkUlbDqpFFw7hZguzF0rBMfmhvWCO7423dv4LGplnoJp6gV11q4cWLAXq0om?= =?us-ascii?Q?nfNjYTUKZBt7u8XfTArcFViE2EOVYzibQpvyRjjkX/eaDj4YylO7EQnwwd38?= =?us-ascii?Q?NsbQJErquHXSVhvbwrQTjtjoIgxQtST1tqst9e7H+iN2s627OnHzTHJhf9aK?= =?us-ascii?Q?TblHZ+sDWlNgvijVU81LBflFvxyNV4Fo1ysASSE/jP0lMJLB4c33Xhg7C9xd?= =?us-ascii?Q?80dx+f17GRr4frgouZ3MBw5D86usJdULBEqTm9Z5EvVv0wModQsec/lHS1bi?= =?us-ascii?Q?pGtQ/qCiuOrDJKOlZ9q5LecsDEShzFChzbGEPVIE0K+pLGAfxqUKmZsw/lBv?= =?us-ascii?Q?jLBaFAZNe1qTL94+w5eBoGQgghioSF5+Ylo+wXRMJrFp0eZ1hMKorE3IL37m?= =?us-ascii?Q?4Jt27Wa/XeLkyGQe78+8k5e2agz+sVy7T2YRaacL/ro3XNd5V7hLOr0P8Q46?= =?us-ascii?Q?tnpY1CnOLeRX1WDD8To3YKkkxwyyW+2aVoqlrzx5k+MuGOkw+ohw/PMcCnbk?= =?us-ascii?Q?T+7wMk91gVqfyXp/TVkmmTXMHEjmG5Un43Yq3n4Z4sdyIFomvjiKjAEbdPte?= =?us-ascii?Q?knf2ViJ9RUaKK1poKZRVSAjW/qpsMOfAt75A7dYomvT1URDVHyDU8rEmnPaR?= =?us-ascii?Q?0ghtBaWLCqiXDgX4P8VR/sduATtnb4s0ftkiWZzjLL0kOYqEJ5pISsXlcVz4?= =?us-ascii?Q?4QGHS+lqrWtwQGZysakCzk?= X-Microsoft-Exchange-Diagnostics: 1;BLUPR03MB278;5:1hqzKpdCj7E/3IPqsPn9REBLrR//lKqth6uUhtd1zfDoCd+3yyzaoNu03InqF684jhHpobvr/fFL/gcS/l56Bd3j4rHyGNvygOrj/vPWxZLrUebofqyp0qe4yzGJSdM0EX9VBIFE+2MrW6KgS4k/HA==;24:QQH5apmWLnzH//B9q68DfNCEWFFWrj7OZc3GhVoElkJnglDqoSaS2guQUjC6mAZWvWo9mSnihCBRByiGjDS80EX2T+2cLy8gS2KhxJYIfsw=;20:V2afnhh/xDcE1sV1x8WDPgU2Fd+wiTYnZBbG6lMI+IpN6lyoLt0zlp9p1QHzM3QsZKv2tMyQJnLhjbaaX4k+mg== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jun 2015 03:14:45.0745 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d;Ip=[192.88.158.2];Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB278 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1441 Lines: 43 On Fri, Jun 26, 2015 at 03:47:03PM +0200, Mike Looijmans wrote: > The datasheet for the 334x PHY mentions that a reset can be performed: > "... by bringing the pin low for a minimum of 1 microsecond and > then high." > A delay of 5ms to implement that seems overly long, so reduce it to > just 1us. > As for the delay after reset, the datasheet only mentioned that the > chip will assert the DIR output. 1ms seems like a safe time to wait > for that to happen, so no change there. > > Signed-off-by: Mike Looijmans > --- > drivers/usb/chipidea/core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c > index e970863..c865abe 100644 > --- a/drivers/usb/chipidea/core.c > +++ b/drivers/usb/chipidea/core.c > @@ -664,7 +664,7 @@ static int ci_hdrc_create_ulpi_phy(struct device *dev, struct ci_hdrc *ci) > dev_err(dev, "Failed to request ULPI reset gpio: %d\n", ret); > return ret; > } > - msleep(5); > + udelay(1); > gpio_set_value_cansleep(reset_gpio, 1); > msleep(1); > } > -- > 1.9.1 > We have no such function at mainline code. -- Best Regards, Peter Chen -- 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/