Received: by 10.223.164.202 with SMTP id h10csp504238wrb; Tue, 7 Nov 2017 09:41:31 -0800 (PST) X-Google-Smtp-Source: ABhQp+RErA6FOQfofV8d70ffqv6kNo/MvWZ75rsL2NevGC4oZ4oJo2dAiZCqhsI3TY2eEP/flHqw X-Received: by 10.98.74.93 with SMTP id x90mr21374206pfa.177.1510076491465; Tue, 07 Nov 2017 09:41:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510076491; cv=none; d=google.com; s=arc-20160816; b=FbPNBpsmku0WB+LAWZ/o6mG70gDV4q0bsV1jRlzm2Gsw4NOv0I0D07E9/07ZBIoZsc CY9VT3K2bcZQGWt8ZT82vunI01F94A7V3fzjG8p2wrqFCW38z7ziLXCDDVYcDAXBe7+i +TchK9V34JnZ05R896v5vyipAA5QnE382w71k7aX6RUUlHAagxThNmbLcNAIOrGPOG8z VZXEZUoff2JmDFI9ZMLgfplgYNMdU4swrV4tQmyZv4yUxIZVH69pQ0dn5epZTTcmMgAK 3mPm9kmRS4vPsQ2yEElPsRGQjC1+D9EDHrXnE6WzC/JEJBTQ+cZOAmqNoeCBpHEyryKy 2oBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:arc-authentication-results; bh=PK7TRVBmxBmPA91zNnV7YFrJwNyzqXE04ygpo5pNUQk=; b=coYt1wPWGLMA9xk0pQyNG/KDvdg5kLlJ6N8yX5m0MSqNolGkXhRtdXgKGwx5gZKdlI Z2H023nu4fV2NWcdaeIhU4JW5JjzdIdJ66Swnh4BSIeom8lnP7csNXPpm8XseZcjcIHL d+WbaO2IoSQhkJpCGrpKwcnAbYEldPA03ZkYu2jEH5IC94+gmSvigAMuEGbEiVqCMGOT IenldDSOP5M4OtzILU5NRBPsUQjtrjYFc9GwAlPzOqox+lZpz4Q6g1nYB04cp9sDZ6rS mbHvQlat2O/ZIE1L0QVwCsZ8Pp51vfgiPI0LLpwXzvW5mCI3Gt9WTfnoNeSUYRSIuboa IJew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k139si1819388pfd.399.2017.11.07.09.41.18; Tue, 07 Nov 2017 09:41:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755500AbdKGHjv (ORCPT + 91 others); Tue, 7 Nov 2017 02:39:51 -0500 Received: from mail-bn3nam01on0065.outbound.protection.outlook.com ([104.47.33.65]:31099 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753216AbdKGHjq (ORCPT ); Tue, 7 Nov 2017 02:39:46 -0500 Received: from BLUPR0301CA0036.namprd03.prod.outlook.com (10.162.113.174) by CO2PR03MB2360.namprd03.prod.outlook.com (10.166.93.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.197.13; Tue, 7 Nov 2017 07:39:44 +0000 Received: from BN1AFFO11FD048.protection.gbl (2a01:111:f400:7c10::137) by BLUPR0301CA0036.outlook.office365.com (2a01:111:e400:5259::46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.197.13 via Frontend Transport; Tue, 7 Nov 2017 07:39:43 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1AFFO11FD048.mail.protection.outlook.com (10.58.53.63) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.178.5 via Frontend Transport; Tue, 7 Nov 2017 07:39:43 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id vA77dN0G019819; Tue, 7 Nov 2017 00:39:37 -0700 From: Ran Wang To: , , , , Felipe Balbi CC: , , , , , , , , , , , Shawn Guo , Sriram Dash , Li Yang , Hongtao Jia , Ran Wang Subject: [PATCH v2 3/3] usb: dwc3: Enable USB 3.0 phy driver Date: Tue, 7 Nov 2017 15:20:55 +0800 Message-ID: <20171107072055.26945-3-ran.wang_1@nxp.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171107072055.26945-1-ran.wang_1@nxp.com> References: <20171107072055.26945-1-ran.wang_1@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131545139840395588;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.168.50;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(7966004)(336005)(39860400002)(346002)(39380400002)(376002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(36756003)(85426001)(2906002)(81166006)(8656006)(81156014)(8676002)(8936002)(86362001)(498600001)(5003940100001)(305945005)(356003)(316002)(16586007)(110136005)(54906003)(2201001)(7416002)(6666003)(50226002)(97736004)(2950100002)(105606002)(106466001)(50466002)(189998001)(1076002)(76176999)(5660300001)(39060400002)(77096006)(4326008)(104016004)(48376002)(47776003)(33646002)(68736007)(53936002)(50986999);DIR:OUT;SFP:1101;SCL:1;SRVR:CO2PR03MB2360;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;PTR:InfoDomainNonexistent;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD048;1:u7GLp7AeZTU4r00PuKjnx6LYW7xkCSbLXNrp3+IDm5tqw/pUFBICfIfotANDKfO6nxuQIbN7DtjEWEauDBPLrKrFNFrVe4/QuQ/LCK4Vh76OVzL7plLFYQAXiMsK9XDg MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 60e8dffa-6f35-47ee-47e6-08d525b2b692 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(4534020)(4628075)(201703131517081)(2017052603199);SRVR:CO2PR03MB2360; X-Microsoft-Exchange-Diagnostics: 1;CO2PR03MB2360;3:R2WsFAGuQHIFbndVcVcRqxFBENW406WpKOQGCj7O9gbJBY0kCxIEjv87tdgpHsieMgIxOO/xcITsMR7omXNe5etiA8p1GDbhb/ZdUbGd1ds30+g0tp84MEz265czyLhNxt/bkU28lNf8/0iIpK5Acyj86/ebXrkZXspEQwfEM3lUD0yUF52qlmEA/hv1UiexZlbYMgLZzU0bV+8UJWVjwN7OIc/Kadcn3f2/B9cgDfQOMZ1/x3a/KhR3eZjuIZvhrkcZl+JRVWbx7MBJcaQUdAnUl6PxTN8j8mmkoZd6Hr2xv2idrfOEGUzo5N1jET01WwWAEHskVycAHzNSfOSlSIx1l6gc+RpZ6MQuPj6SoBs=;25:BDRy2BboBwtRhzEffi5NT+6bkSSbr97fz4PsPDIX66KJ+wkmc3BSojrhgU5cH6kaC3kkeoU6983y7qoeCDdig8QvYuouPYEyOZidV5XRQQ7NMP4nTokTRoVPGjj2pPGTbzoyAHi+Q5+KkqO4ORztfOUChyCrE1uBxPhIVW6ntPZ4qdqPVFxOmoRDDReKpK/nklQtyLkJ9raH/qbR4Yd/ZKTTKlRCVRIwuUwlud6QcNFVeOKbJilAg1GZMouLyKLYNCOvRANcRCLN0TbUPO0KQurxRGD48QSa18uLhhQkqrsMZCCvRscM3Ktet3WgWJSjFvq28g8Ljc1cQVbSHw/ByQ== X-MS-TrafficTypeDiagnostic: CO2PR03MB2360: X-Microsoft-Exchange-Diagnostics: 1;CO2PR03MB2360;31:guV3lw2yC4HljiTqfOc4p8wtmNxud4YyeKKzKe+LaHoTvDMfs+1KiA42JcXtpxOaSXiUIn/JpDHlQCozMGoEhwKCnSo33HV2JgM3zVoaQaef5Wj0Pc3v/gxk7TGE8/Rg+kOFZl+aEm4DcFOTw2FAhZV1YMTw5iiUYxqROaQD9inbSi38CPwIjufrf1KzsAYUx6VhNSWrFe6qamiJWyj6UXc8gY52mJODoWIk9Ew4X9A=;4:G7osQW+AvEQWNeNqVl04u2nk7Ok+hmrs+k+CEXBbIIgGA2ucEWwWNlehKQtqFzYZx2+i9pFgLbmcx/5F8vRGC7ydcT0znsbM9jkjo/x6F4EbYorRdvOSk/X2XDjjbwLiA0Y1AdhEP2TpOGE3n1+wodcCiMM3B8kTrnX5I60NQnBwjb6C+lWhzuvIHPclL+LBjcvne5kOd+GFGcNpwwga9+7yDeekvg/vs8U3Pqep3MIegbeiEIKjqJB1axCwteXHafQQtVG6Ge8Zl83Wk4ZLYc2RpRj/1CWJz/VKO4pItNlfM2axP4TCNDxYWzKyN0GV X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(3231021)(6055026)(6096035)(20161123565025)(20161123556025)(20161123559100)(20161123561025)(20161123563025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:CO2PR03MB2360;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CO2PR03MB2360; X-Forefront-PRVS: 0484063412 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CO2PR03MB2360;23:Nl/ra2dFjG9wOoXHFmW2fzTguva2vIRp7NMVhgvi8?= =?us-ascii?Q?FtgkNYoBYIwIS7gaihqQ4xtyv7wbhm6k49lrNGCOvGOlZP6dckV+PC8geWuj?= =?us-ascii?Q?TYM/6/oPd8SfEJOSxT7XfDLAXz0bEKoczSG6hyzzwAeTxu+Q9MYzq3oyfHMo?= =?us-ascii?Q?bVlw/kitX2YjjoI+o1uNu05w5N+cNUjiVTC3RqO+flIdegsPCVPRSXoj5BUk?= =?us-ascii?Q?zJkvTUJQFiSmH7y933hwA+pHvMq9Kut78px7DKPsR8muFLnIwGnj/1B+4qYz?= =?us-ascii?Q?RBzdlKu5cl1eqLWizNvgK8ylwNe37ZefxwQcihk3FfKl0YmurSzy+k/QIOjY?= =?us-ascii?Q?QaNCN2ZMBuuhRQR3QGtboO25yBOSkPEEh2paN3efrro/DxNZqTX0dcRt85ut?= =?us-ascii?Q?1wSNUyL6n1SQQoOBPiHmO553aQFkKQlNk3KXu58Au8TtnHjd6HC0A7a0bBfl?= =?us-ascii?Q?jC7AuoCui52APZ3KiAkPaXR/e9pmJkz2gzuxvIunfzltli2AQObL6I5C3eIX?= =?us-ascii?Q?cn0D0zB15yl8kYwFH3zHMLfE5aNr30GbbB0d8wyJDzbrtMX2lfeLgMQ++bGS?= =?us-ascii?Q?P5ejzUldOi4xaAUO/lFRdn9YZv2lT50ppqgMh13QsSPcOePAUwTtPIxNgqSm?= =?us-ascii?Q?ag/j9nGXNxfScD4mU5hBupchsSXg/ssde8OCDxXkpuy3D88VjIJK8pxqSYxo?= =?us-ascii?Q?xG7HYZZwDnEbrhhV7MG8GuxB3BSEHiSgQimAFAtdLW67NNnz3vPUIPEQeix/?= =?us-ascii?Q?8TryF5pYR57t2n7fhpAykcHaJGDAumAD3QA/OFw8BZWGb59s8D22k0LXTeje?= =?us-ascii?Q?SgT90tned0jl+x1mKh4yDXxsq2ooutq7OaBVUeO6EQUjVFe8Y5ZwQD1RtGes?= =?us-ascii?Q?kCtAwEbXveMngLg67bClFtA3eB3i2kP8wSfi/8pvjWExz3HwbusebkD6Rbvy?= =?us-ascii?Q?Brq16NYfqi7u4kQAxokTjFOKhSPRLZbUcYLeth5XnOIozuj4d7m3wvRZACTD?= =?us-ascii?Q?fsk2D9+Aep2LB/hIs2QYRiJ+QjfCsLZ1QEXmx4BXgVPtZAQVXSmDolePTtac?= =?us-ascii?Q?Ka1X4lUev08xu46kU7NOABz3FBqKec6x22yLvzll+CddF75DP6BK/QHSiOUA?= =?us-ascii?Q?lBt11vWg8hzV+WGh5WSCmCgtZ/+6M7qdMCnbXv504lCkssLDxNUWazWFT9tR?= =?us-ascii?Q?9BJN3WSX4oSmoWIutI7KoDO11/2s+5Cq5Tq+T0PN2pKKmOtJaoyRmpCAO9/E?= =?us-ascii?Q?OvWIkdEWHpmzeTOYtQ=3D?= X-Microsoft-Exchange-Diagnostics: 1;CO2PR03MB2360;6:AfRUqlrOkfzmEQ4ThaKZn8FhDl4eT0pmoWEYp8QjCcuizlUIdIpfNg4Uz+njeZEqkxI9pjCnFdh1GN/ysx/hCj70gWyrSVJnKikaUYxRY7nyrLihfF5AVrDfm8FLLuIU4flUYpPh9QQcEIu0GVHsm/fP266OIAIn0wc5hLLFbnmii9zHbtypQws55EVpgVwZTEgCkugoPu3UQU/9iqmVV5UoYmyaqN/joFg7zoTyekNd3I6EF2z+2InUdUCpIKLKhnUX4QaH/ddYTf0IjpSUtoQRSm4WtChwFfwxfb9p7KoUW0kvoOx1K05ohqX+ZdymDPU0RxYsA/RbxjITZIpJSF/qkasL+vTWxFFZBGxtVfU=;5:rVJJA+ZbxRrbsTtMAeCpQ+uhB0ux5gr1da+nlIZI9jCEOSACLWLcLGMOXEO9r9NL5stx2xr6GnDL6LRY8UYHt5nQz5KzKfAauVw77oTcaJIEtqoQ5dquSsckgn66PzwIksUMUGhzhQ+9VHdEFMgceYdYVz6GqhJUxNKx9a/oqsg=;24:B8WoX++9l0ycEDQI+8XE5xTl1CSsKBxesq3SFsX5tn/wXCLqVe+VkaJ6fsn48SFv6C8NTHY0VSHRuGeCYh5gSrWCLizbUvrQOQ5PSblshzg=;7:WJOjcfx4idcDcwREILnKgrzZrqoK6v3haZ2afVrN4OA36hh5zZXae8qgDeOXHEKpgb+T9a2tWaw85aMzK1eSDf/tOZEvyDG1tWjbdStoKrP/Dv6uc5g8+lY1Ak42r6FJoLRr2GL5NCQPHmFMZL/XxMFq171hVAL5b2xH24jjiKdFxP98s3x5bLuNu/ulyCu3l+evaPHdTyhwiHkr70xLqaaox7pgVRqPVYuAeS2243DafDb1QfvOGQcY7bubzJN0 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Nov 2017 07:39:43.5715 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 60e8dffa-6f35-47ee-47e6-08d525b2b692 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[192.88.168.50];Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR03MB2360 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adds entry point at dwc3 core init function to enable USB 3.0 PHY driver. Signed-off-by: Ran Wang --- Change in v2: - New file drivers/usb/dwc3/core.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 03474d3575ab..a9df03c64a7b 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -746,6 +746,8 @@ static int dwc3_core_init(struct dwc3 *dwc) { u32 reg; int ret; + int retval; + struct phy *phy; if (!dwc3_core_is_valid(dwc)) { dev_err(dwc->dev, "this is not a DesignWare USB3 DRD Core\n"); @@ -770,6 +772,19 @@ static int dwc3_core_init(struct dwc3 *dwc) if (ret) goto err0; + phy = phy_get(dwc->dev, "usb-phy"); + if (IS_ERR(phy)) { + retval = PTR_ERR(phy); + if (retval == -EPROBE_DEFER) + dev_dbg(dwc->dev, "usb-phy no found\n"); + } else { + retval = phy_init(phy); + if (retval) { + phy_put(phy); + dev_dbg(dwc->dev, "phy_init() error!\n"); + } + } + ret = dwc3_core_soft_reset(dwc); if (ret) goto err0; -- 2.14.1 From 1583495348829371670@xxx Wed Nov 08 11:00:44 +0000 2017 X-GM-THRID: 1583333049916108051 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread