From patchwork Fri Mar 10 13:01:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 9616853 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2D00B60415 for ; Fri, 10 Mar 2017 13:03:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4BB2F28705 for ; Fri, 10 Mar 2017 13:03:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 408FA2870D; Fri, 10 Mar 2017 13:03:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E211628705 for ; Fri, 10 Mar 2017 13:03:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935565AbdCJNDu (ORCPT ); Fri, 10 Mar 2017 08:03:50 -0500 Received: from relmlor1.renesas.com ([210.160.252.171]:32235 "EHLO relmlie4.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S935500AbdCJNDr (ORCPT ); Fri, 10 Mar 2017 08:03:47 -0500 Received: from unknown (HELO relmlir3.idc.renesas.com) ([10.200.68.153]) by relmlie4.idc.renesas.com with ESMTP; 10 Mar 2017 22:03:34 +0900 Received: from relmlac2.idc.renesas.com (relmlac2.idc.renesas.com [10.200.69.22]) by relmlir3.idc.renesas.com (Postfix) with ESMTP id 92F8C4CB75; Fri, 10 Mar 2017 22:03:34 +0900 (JST) Received: by relmlac2.idc.renesas.com (Postfix, from userid 0) id 956B328076; Fri, 10 Mar 2017 22:03:34 +0900 (JST) Received: from relmlac2.idc.renesas.com (localhost [127.0.0.1]) by relmlac2.idc.renesas.com (Postfix) with ESMTP id 9083D28070; Fri, 10 Mar 2017 22:03:34 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac2.idc.renesas.com with ESMTP id YAD06846; Fri, 10 Mar 2017 22:03:34 +0900 X-IronPort-AV: E=Sophos;i="5.36,140,1486393200"; d="scan'208";a="236324887" Received: from mail-sg2apc01lp0243.outbound.protection.outlook.com (HELO APC01-SG2-obe.outbound.protection.outlook.com) ([65.55.88.243]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA256; 10 Mar 2017 22:03:33 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=xLKcnjDHTxrfzC1oPtk+E067mFwF+VwpaNjmYxxUcMQ=; b=UEFH+9uQLRVXyV/mqBnUK/nGj24ypwGBaQrA1VH34mzlfZFtt+faFLnCRhvMq91wAtrd5aBXQA2zz9JCYpEK0uVso/XKpkfMHxlOfRgE5+DbCOlyGImQkW+B3tcJR+91xkenvgr5BxS4tBv3K3neB+aVKTsFLKQU8pL87N4zavg= Authentication-Results: rowland.harvard.edu; dkim=none (message not signed) header.d=none; rowland.harvard.edu; dmarc=none action=none header.from=renesas.com; Received: from localhost.localdomain (211.11.155.144) by KL1PR06MB1639.apcprd06.prod.outlook.com (2603:1096:800:12::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.12; Fri, 10 Mar 2017 13:03:32 +0000 From: Yoshihiro Shimoda To: , CC: , , Yoshihiro Shimoda Subject: [PATCH/RFC 2/2] usb: host: ehci-platform: set hcd->phy to avoid phy_get() in usb_add_hcd() Date: Fri, 10 Mar 2017 22:01:26 +0900 Message-ID: <1489150886-27862-3-git-send-email-yoshihiro.shimoda.uh@renesas.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1489150886-27862-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> References: <1489150886-27862-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> MIME-Version: 1.0 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: TY1PR01CA0116.jpnprd01.prod.outlook.com (2603:1096:401:d::34) To KL1PR06MB1639.apcprd06.prod.outlook.com (2603:1096:800:12::21) X-MS-Office365-Filtering-Correlation-Id: 2c03c2de-4049-40d5-8704-08d467b5db42 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:KL1PR06MB1639; X-Microsoft-Exchange-Diagnostics: 1; KL1PR06MB1639; 3:4Lcd2cJVxat+QQRtOut0Cb8kdC/HQHIKwS9oDKohZOsJsZ9S3rKslDt9hpHLuJLou7RF+DZJiLvsYIe+9LwxDQeQCZiVLLVnQPaFgQWst76+QO1lbxnwtH/QVC50EJxdhiXTPVxl1gFqRUOe3c92pFTFV9jVBfjfgnoNe5elbr5+OkelxvQttZyE9/3kNX4R42DwAp1wNujix2M0VdgbPtBL/h6ynIdIhaG4k+EVV+TfVo4tn94V7j7QEyw00fdpQAGWkmXR5vGgEqgVGM1j0Rne/AvCwXF8Ii/Eg47UWeE=; 25:WqGKjUmgC1lJ9SvvWY9k48qb0pBUGPKPsjugdDvju5rx3EDJ+/0w9Jwazl3TNbw4Z8YJ99z8Z/jGgsS52AKfeFuM2tkwqmlxEyzm/O8Mj6o61nzFJUaesvHkznBuAQs3nIgmVtVdTMkuCv1d+YvlNjUhcwqesQM/zEVtelIFCXPy689fBl0r/TXYMRjkgmzqMRCAv0YmURLIe/HjLTsO2TcsrKAcSMQnO5N6TLw9lxBXC+mQyoysgaNd5vOx2DH2yxuWsxn2U7qNSrSRWpy5uHNZZJZ9Y69CAB59TvNGp2BeIH9IL+O/rr5Qdrd7XmVZeXOOJu6u/nnNKrS0De8tcDjytILUqCQbWrLqD80h6nAYD70cDJS87NEsDvlolq+UGF4ncgop8J7UGdq7dqvaUlJ5L40Gr6btvHArap3lUxMsW4NaiDk5DBoyUCdz3xXUv8xxCmZaji1l+zTEzjwETg== X-Microsoft-Exchange-Diagnostics: 1; KL1PR06MB1639; 31:4qergg3XIc/9xzJxtf9FpcdDDCdiAlJr8xctUB4t5qvFB/+v58XbNTY95yBTWxOG6wCOe+/E73ao31w6PALZGmRV1ry87TI4aF63Ye0L1nYsJE/E8eRFSC2+4LVQA3W+bMEvoDg5kLNK2P/mHAuNs/bE70XgfOSIro+vtzslaTCk7NMr1z8bOKvendV6e8IM2BQtJPIGl8x0qHMgrfJczZEU+DDSM+Z4hTVfHv32IcM=; 20:NbN4lhOO6/J7z9wMi7y0jXe8a+F/WgvZwJImn4xuNqYjL1lAqxztJyjZVK4AgH7+ySYzEqVF0fp7nWyDkbVCJHXV1IoqJT3pLqDFAdvvqZz27p76v2oxt53EtPZb0M9vtsVbln5mfVafBcrWhGQlke5cvJIE48ra8ZxH+6kKTRIF8oNYYGw320C8hmTGXyOFK/HAVWjDm0+ZxAEgXHqzk/hE1PSK6yjVh2XBsI4LxsXkU0WnFdIFgGikkkFw7c8GSr06lbkofoEe+6G3jKaWLamAQgx43VeFbO5N7Psi7tYoM+BDAwUkCTcenMCAGGpNV0sms6DceYlVRtPvInCwuClGG1TSnoYB3USfEchlibac25s/OUF7G9e34TG2yBlvte9Tjg9Te93vxF5PFlQKTf0snPQY0bprKcnhpFPxu+lTJOdSs6kXpJFwdFxrA5XLA4jX6VWHHEXkcgFD2ecEopkCifJx7i60lknF5Uybw0GOcVR8ZFMIlTrTRlXAi3/m X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6055026)(6041248)(20161123558025)(20161123555025)(20161123564025)(20161123562025)(20161123560025)(6072148); SRVR:KL1PR06MB1639; BCL:0; PCL:0; RULEID:; SRVR:KL1PR06MB1639; X-Microsoft-Exchange-Diagnostics: 1; KL1PR06MB1639; 4:WUB7k32tTcFbsIHbE5zaM2zpbubhtbvGlz2u1+yiDLxtyl5YHxIrRoJMcFAC/c2hr6mMGaqzn2IeKGvJ5EoN8s5fLXdC3bsAQ7Og0CkfogHjU9mR/fIErgMWzjMcOyPP8cfqjF2hMZFKeY05xT0Nk0dF3QJ6hZ6YZqzhsApwEJH3ptzzc32Hw1KMsNr/2OolRTB6xPFz8589EYr/9Q9z3p357ixCuZax/B8CoEfslk+4TLzAYVx7H2Cy+nhHvfeLt4G/Vq8dXAnufvsnnnk0baFFfM10/AidYpZA8rcEv35knB0Cnra3eliEMlSc5fx79klFMqdmFbWDc8pKb4VrVgiWDPB+49tgmfHaIZC4OSX2eJ/pVoqHUQ+cGY2+7CQgVccKDM1bN5yUzA9fFlUWPrMClpKeqPP9qWo/ZaZ4t8HYf/1/4HLa3uA/Q6TlyWIsz4qnDDOl8ULdKjZQSieH7Eo8Re2HjoNMulTzc5hKuxCnhHUGe1sTuz+EbKnczR4bthNKZiW9/A3NsHURiKhUn3IuIgnqbZbgiTSkHW/TcQ4Vx7wVTHEeoS9nvpMtDXFzPRUH2heUN4D/U3RgDE1JkzKzs/r3OPYDbvrSglK+nWmk6s4skMJs+BPoVaUkV0Sl X-Forefront-PRVS: 02426D11FE X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(6069001)(39860400002)(39850400002)(39840400002)(39410400002)(39450400003)(6666003)(48376002)(2950100002)(50466002)(42882006)(189998001)(68736007)(78352004)(2906002)(53936002)(47776003)(4326008)(3846002)(6116002)(33646002)(305945005)(7736002)(8676002)(50986999)(5660300001)(66066001)(6506006)(76176999)(81166006)(2171002)(6486002)(38730400002)(107886003)(42186005)(54906002)(5003940100001)(36756003)(6512007)(50226002); DIR:OUT; SFP:1102; SCL:1; SRVR:KL1PR06MB1639; H:localhost.localdomain; FPR:; SPF:None; MLV:ovrnspm; PTR:InfoNoRecords; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; KL1PR06MB1639; 23:QvsPQfYr7w2UZY0TCsL0nU2WMS22aQlSpyUW3tREM?= =?us-ascii?Q?4KbANhMYjBficQLgsVJ7i4RdqjmrM1BnJRe3C7Sqg+YYRtvlu+sXPlHG1nzb?= =?us-ascii?Q?OZNYTZQIRYE51cmXIB0YoOfaEXSpWndJHce3XSHg/VF+W94jTtal6zAO3cyy?= =?us-ascii?Q?EVA6BuriLhVYuII8S8KbtABINeRkJjP8ubqp834ehTWpKenn3WKKt0qZ0oAU?= =?us-ascii?Q?oXwIDJ1JhFHNCkcHHQZPIzPfrw9Kpo72uwUT6OZ9buZkQdj4QoKCw8fzhzKf?= =?us-ascii?Q?VpH1/OW+KgBrUD9qRom3TGM6+Scdsg6srAgvvleEHkeSuwX+cOQk47fL38H3?= =?us-ascii?Q?cJbOUjYt8WaegAte3nEMN+7KN/fSLVmyZv73aHiAyeNx6G/K/mat5V7IoQlr?= =?us-ascii?Q?NROcDLR1VuNTTkZwmpfrdDp0EJTzR7zAY+TkVo/X1Liiejvx60DAAA3XoDdj?= =?us-ascii?Q?1xiRdPzQoMGaFa23/Xwrx/aXPZpxQBghx3P7mNNu+X2efnoEHc/lKsDXP/dU?= =?us-ascii?Q?ejn+hfQEDHw0rZLbu49mSrofLqa7/n2Cu4nU1UMCYbXInnHjUa21yRi5Emqb?= =?us-ascii?Q?Gc3jypR+RjBx6gdNOl3pmHMZSV6dVyTTi3tGUfobAKqwRmdaMRHwduErZVNa?= =?us-ascii?Q?phUK1B3eztL7A/O7hfniLOrLhLlKTnp7vMAqYd9eHAQOyh0EBBX7bqWxXx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+GabgCEpTSYXGvoBLfs05N4pg=; 24:bLMGEPlbnTyCChjPwHiGh9XZQ9ilqQI5zjcVnfh9jt60gqejwM0hvTZ2537W2BwyKXz9s8mzJhGkEK1cjAgL4k2m5fyDOsg2aSdZz+VXSQU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; KL1PR06MB1639; 7:r3ahCPz+rfoNm0AouWCJ+8z75hs6XIV7koi2aKaWswJu4AVnOLnRgqhek4xJxvPEYvW+dHUUbaB4YIYee61dkplNZv3AbC/kUKZmu2isU5SRP5ztgGV6mmOa9JQTPs69ER7wrPmD4v0P+UFYFrdg+IUK7amJdG6qh8vygrAr43jzB/nfUSt/pAUA+EpqFY9WRMcEgi97huBcmvF9/e3fJDvxcqupj97JT2heGjeUuXsGB0lP6T77N1MgiohOMjhkU1YufYLArZUBnvG0yG0o4JtYoG1HZdbbjLBmpx/xLCCUZ4CcN4cSYcE3e2c53H8BrlLsphqUjbrhEbDMKGDGLQ==; 20:CFyLeZqAppbQ/VQmIefaNw7MFcdDGBta4owzqYiKvTOHvlLgg5CNBYXqoiR6pMtaOS2T22YxhOKgXwlPle9XnrxUH4v09NnLc1YYUaKr1XdzxqnuEg69wWc+5qIKTlCVsKRq+qiDsmvoNrglF2jI4d5m7BjQx3QopyT86wTs4ds= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Mar 2017 13:03:32.5769 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR06MB1639 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch sets hcd->phy from own phy context to avoid phy_get() in usb_add_hcd(). Since hcd.c manage the phy only in usb_add_hcd() and usb_remove_hcd(), there is difficult to manage the phy in suspend/resume. Signed-off-by: Yoshihiro Shimoda --- drivers/usb/host/ohci-platform.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/host/ohci-platform.c b/drivers/usb/host/ohci-platform.c index 898b740..00cc841 100644 --- a/drivers/usb/host/ohci-platform.c +++ b/drivers/usb/host/ohci-platform.c @@ -185,6 +185,8 @@ static int ohci_platform_probe(struct platform_device *dev) goto err_put_hcd; } } + /* Avoiding phy_get in usb_add_hcd() */ + hcd->phy = priv->phys[0]; for (clk = 0; clk < OHCI_MAX_CLKS; clk++) { priv->clks[clk] = of_clk_get(dev->dev.of_node, clk);