Message ID | 1470108652-16812-6-git-send-email-peter.chen@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 A5D686048B for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 2 Aug 2016 03:42:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 94DE1284F5 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 2 Aug 2016 03:42:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 84479284F7; Tue, 2 Aug 2016 03:42:55 +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=-4.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CD912284F5 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 2 Aug 2016 03:42:54 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bUQa8-0008No-9w; Tue, 02 Aug 2016 03:41:28 +0000 Received: from mail-dm3nam03on0071.outbound.protection.outlook.com ([104.47.41.71] helo=NAM03-DM3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bUQZV-0007mK-03 for linux-arm-kernel@lists.infradead.org; Tue, 02 Aug 2016 03:40:51 +0000 Received: from BN3PR0301CA0065.namprd03.prod.outlook.com (10.160.152.161) by SN1PR0301MB2064.namprd03.prod.outlook.com (10.163.227.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.549.15; Tue, 2 Aug 2016 03:40:26 +0000 Received: from BL2FFO11FD022.protection.gbl (2a01:111:f400:7c09::137) by BN3PR0301CA0065.outlook.office365.com (2a01:111:e400:401e::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.549.15 via Frontend Transport; Tue, 2 Aug 2016 03:40:25 +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; nxp.com; dkim=none (message not signed) header.d=none; 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 BL2FFO11FD022.mail.protection.outlook.com (10.173.161.101) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.549.5 via Frontend Transport; Tue, 2 Aug 2016 03:40:26 +0000 Received: from shlinux2.ap.freescale.net (shlinux2.ap.freescale.net [10.192.224.44]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u723dYUM006554; Mon, 1 Aug 2016 20:40:18 -0700 From: Peter Chen <peter.chen@nxp.com> To: <gregkh@linuxfoundation.org>, <stern@rowland.harvard.edu>, <ulf.hansson@linaro.org>, <broonie@kernel.org>, <sre@kernel.org>, <robh+dt@kernel.org>, <shawnguo@kernel.org>, <dbaryshkov@gmail.com>, <dwmw3@infradead.org> Subject: [PATCH v4 5/6] usb: chipidea: let chipidea core device of_node equal's glue layer device of_node Date: Tue, 2 Aug 2016 11:30:51 +0800 Message-ID: <1470108652-16812-6-git-send-email-peter.chen@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1470108652-16812-1-git-send-email-peter.chen@nxp.com> References: <1470108652-16812-1-git-send-email-peter.chen@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131145828267004201; (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)(7916002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(105606002)(305945005)(356003)(7846002)(19580405001)(19580395003)(8666005)(4001430100002)(47776003)(33646002)(189998001)(107886002)(50986999)(106466001)(2906002)(104016004)(85426001)(5003940100001)(48376002)(50466002)(229853001)(7416002)(2950100001)(87936001)(81156014)(2171001)(81166006)(77096005)(50226002)(8936002)(5001770100001)(36756003)(97736004)(586003)(92566002)(2201001)(4326007)(86362001)(68736007)(76176999)(8676002)(7059030)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR0301MB2064; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD022; 1:iD+p8sgB7gaxeNENIVpbGZdFeXeZFNG8gMwMJxmK38FdbS0Deao8j0V3tFMPx2d8XLGj+1+Slp/ELucqrDTT5fSQvwkMUrXQoNpyqobGQASNrpE12kaUXb8KkTopJECWLUZrCzYB8wbi1mYZ+Dty4QOLYxbLT7RtJb7PL2Y2MMW3CJrPvEjB4KUIf2cFRrwDkI6mCsZiPoU64o8IDqbSWVl6g47yHciPvz9p9wZniy5OtutVTudMS5w7LRWWqpqUeVAzOwv9AZ1ZklHSEf/Jx2V3InnutMY+Vmdm73cCQWK3FnTBc1SmpcRuHTlHorqWgWODiFjuWiQ/Q/nFznUkl+Xw1TlYd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bU6AqVehzLWmX1EfcDoVVx1XrFPueNu1QFFSnHuq+xB1bzCYNgWGSb5sdyOV6PQNDtQknpJRE0vrUwNC9VfY0uK8Q75cewro2uHEcXqcwmYEAg== X-Microsoft-Antispam-PRVS: <SN1PR0301MB2064540C64214C64135F6A718B050@SN1PR0301MB2064.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(101931422205132); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(13017025)(13023025)(13018025)(13015025)(13024025)(3002001)(10201501046)(6055026); SRVR:SN1PR0301MB2064; BCL:0; PCL:0; RULEID:(400006); SRVR:SN1PR0301MB2064; X-Forefront-PRVS: 0022134A87 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR0301MB2064; 23:tuiWvBznIkCLe6XQBDJHRUnJ8pPvq/k6JU8i0UB?= =?us-ascii?Q?yUA8atB3EwR3nG7TYOLmOlDcKM/+8seyhBbM5+x9mF+SkSZasxonT89nS1BK?= =?us-ascii?Q?BTaLnxVmV5bJ2yoPR6sFqPW6cp2EpiXRICedA1MWqS224TcVDnZ9UlLBCzxK?= =?us-ascii?Q?NxJAiXaxv0GLp+Dtr6LyU+MNbmwC536LaC27pf/TJSEki/lP5pvXqdrU2VfG?= =?us-ascii?Q?8Kxoh1lW/sTTAvt9PCE4vtIZpFGuj/nvmadelXpaXc88wuZqu1Ae4338P9nj?= =?us-ascii?Q?1GM8jyZgg7Dywz+OS17ZWDB5+SQ/d90bIzWnBu8Y7sYxyvcKNMd/cUgu7gIX?= =?us-ascii?Q?Wg4JqvHz7gWo8orZbTq5nchoJT5DImS6d46AXNzMcwCVLnYK4pugxVKWGvCg?= =?us-ascii?Q?VGjvaCAaLdv5sga3vZSkFkZ1Y7CTAzvu4RIOJ0VBQVPWDfikw0Iwg6mjuwO7?= =?us-ascii?Q?8F+XWvsSwD0TE9rtPq0TDBDLth6bpySigthZyvkRVZ1rbYMgWs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TS447xFrAsX72PZ4zIW2wB7zkmEuy+gvG36lQM8zrXDjNnsyLsZmfSS6e/OnF0MpnNj6eAsgj0CF/MfrLgAVQd+C4AY3CeXJTzhuW9BNE9skUTPfXvwPfK+4MDvG73OCUp8IUa9qkG2FFPbjJNKMlNj4MwxMZDXD3WWjq0p1VRxsjrskrzpeEX1U=; 5:Ze3QXmSqLahu0NoZyC62ik6/oWxhE08AMAyGuXa6Qlos2sO+L76Vu2m2b8tTWYf4N5TghtL8CotLocLJkoC+ZrU9FzjqKP8phmooSscgLZm+Wz1IwQMU1A4jKTzUI+8vrcBewbEEbxSuOWEYZKGw/Mf5RBseBEcY3NmEdy/7aOM=; 24:ar2KOP27knrbcL6Q+Rn9k4F+i1mmC+jc/Wcv7LCj7QAcg0SxVeBAkBiln951FeKfSyJkm9jc2U0S/QDnjPj1GptkLLMotkYmQPuFPO5FmSw=; 7:21HTCJMj0klC2fvbNoj8vuI4kbLumglNes5DASbKZ//kEHWiwTCb7P2VeYu8Y3SqJJsjl1LVuoQOs5Zpmda4E5bEcBUBNQnqiVBD6TLgKqvzaeA/g0wWkP1PKW/mjfNDoE75kpWCBu4hhwd2kCesqOw83uaApd9nQg0U10KM+hfCHOMXuWeSiVdWYZeP+JFHWXYzfIp/WAF4Psr78u15oIMMgCXdgCeRBZCnxMWpZ935BT4dDLJ8wZy8LBDunat7 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Aug 2016 03:40:26.5132 (UTC) 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: SN1PR0301MB2064 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160801_204049_326037_AABE77C4 X-CRM114-Status: GOOD ( 13.58 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, k.kozlowski@samsung.com, stephen.boyd@linaro.org, oscar@naiandei.net, arnd@arndb.de, pawel.moll@arm.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, s.hauer@pengutronix.de, linux-usb@vger.kernel.org, mail@maciej.szmigiero.name, troy.kisky@boundarydevices.com, stillcompiling@gmail.com, Peter Chen <peter.chen@freescale.com>, p.zabel@pengutronix.de, festevam@gmail.com, mka@chromium.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c index 69426e6..b189dc7 100644 --- a/drivers/usb/chipidea/core.c +++ b/drivers/usb/chipidea/core.c @@ -954,6 +954,15 @@ static int ci_hdrc_probe(struct platform_device *pdev) dev_err(dev, "unable to init phy: %d\n", ret); return ret; } + /* + * At device tree, we have no device node for chipidea core, + * the glue layer's node is the parent node for host and udc + * device. But in related driver, the parent device is chipidea + * core. So, in order to let the common driver get parent's node, + * we let the core's device node equals glue layer's node. + */ + if (dev->parent && dev->parent->of_node) + dev->of_node = dev->parent->of_node; ci->hw_bank.phys = res->start; @@ -1057,6 +1066,7 @@ static int ci_hdrc_probe(struct platform_device *pdev) stop: ci_role_destroy(ci); deinit_phy: + dev->of_node = NULL; ci_usb_phy_exit(ci); return ret; @@ -1076,6 +1086,7 @@ static int ci_hdrc_remove(struct platform_device *pdev) ci_extcon_unregister(ci); ci_role_destroy(ci); ci_hdrc_enter_lpm(ci, true); + ci->dev->of_node = NULL; ci_usb_phy_exit(ci); return 0;