Message ID | 1468375610-18625-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 6E3FC60868 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 13 Jul 2016 02:17:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5DEB026A4D for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 13 Jul 2016 02:17:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5225F27BFC; Wed, 13 Jul 2016 02:17:24 +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 CBC8026A4D for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 13 Jul 2016 02:17:23 +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 1bN9id-0001cw-Bu; Wed, 13 Jul 2016 02:16:11 +0000 Received: from mail-by2nam03on0083.outbound.protection.outlook.com ([104.47.42.83] helo=NAM03-BY2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bN9hx-0008Vu-Jg for linux-arm-kernel@lists.infradead.org; Wed, 13 Jul 2016 02:15:37 +0000 Received: from BN3PR0301CA0019.namprd03.prod.outlook.com (10.160.180.157) by BN6PR03MB2500.namprd03.prod.outlook.com (10.168.223.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.539.14; Wed, 13 Jul 2016 02:15:07 +0000 Received: from BY2FFO11OLC011.protection.gbl (2a01:111:f400:7c0c::194) by BN3PR0301CA0019.outlook.office365.com (2a01:111:e400:4000::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.539.14 via Frontend Transport; Wed, 13 Jul 2016 02:15:07 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none; freescale.mail.onmicrosoft.com; dmarc=fail action=none header.from=nxp.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BY2FFO11OLC011.mail.protection.outlook.com (10.1.15.22) with Microsoft SMTP Server (TLS) id 15.1.534.7 via Frontend Transport; Wed, 13 Jul 2016 02:15:07 +0000 Received: from shlinux2.ap.freescale.net (shlinux2.ap.freescale.net [10.192.224.44]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id u6D2EQf0028042; Tue, 12 Jul 2016 19:15:00 -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> Subject: [PATCH v2 5/6] usb: chipidea: let chipidea core device of_node equal's glue layer device of_node Date: Wed, 13 Jul 2016 10:06:49 +0800 Message-ID: <1468375610-18625-6-git-send-email-peter.chen@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1468375610-18625-1-git-send-email-peter.chen@nxp.com> References: <1468375610-18625-1-git-send-email-peter.chen@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131128497072040077; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1110001)(1109001)(339900001)(3190300001)(189002)(199003)(85426001)(189998001)(50226002)(8936002)(76176999)(229853001)(5001770100001)(7846002)(97736004)(11100500001)(81156014)(106466001)(2171001)(81166006)(50986999)(107886002)(586003)(4001430100002)(19580405001)(19580395003)(105606002)(50466002)(48376002)(69596002)(33646002)(92566002)(2950100001)(68736007)(47776003)(36756003)(86362001)(4326007)(77096005)(6806005)(356003)(104016004)(8676002)(2201001)(5003940100001)(305945005)(87936001)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB2500; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC011; 1:kTMo26cbGnOCsI9vEHRmB/5GSF9FQpTUeHyM4vWPNfaGIi/To+Qo7MnT4YgWofs59oaEQM/1Oazu/57I0hi6vwxgYvnDxsX8fSlEFKJIPx2Pm1cdmrKe/60cH+05358sZIfmHH8mAWNIXthAP9vkejklSYdHQds+W64QjxfttxfyFQq1E6khCWJ39O0+AxaVR18ndpLd/8WCxubd44sK84HvAFoq74ygNuWssgI4RTs8FzR3CsG+7riLPhyyjvkylvqhFIP6E8HWK8PTwmPq9aVZ/d3FphKJv0927G+GAjLncZcUZ7K9sPAbkEr/0nvMbxgo2PKSe0lyXo6GmfWVfnaB3lxxMHJhpRfNtvSEqxiuk5dgfDTCSD5WcgPg0aueDRc17DQAYFCOeBtoIkGxb7T/Utzg2eaLVwW+2HPxB85L1PnKl/C2whIkhHnS3fwtUYomFa3E90apuehpLI3mTMrqNo7xM2YMmLwUt3hTL6+/UMt+WXuUEcP35WE4ciNVkK42D8uqp0/QNCnuIk0YFn2WkuBaPNdOjwpP70Oav8+yJkU4oGU2gfcrCWRnbfeBFYPu4Tid2FnHlEP09Gbe+WXWVaD7njZDHG239XpS1eYZaLTplSUpyIKec79sr6HSCvVKvv+AjOgu9zN8uGv1NNjTLPVkqI2vQchz0BwChmzFlmwCZMEwif7DyEG4hOSg MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 55bf75c7-dd3f-4312-e88d-08d3aac3825f X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2500; 2:SEEQWknFhRkVg1sq6EE/4IQ7ZPbVilOK+bT7tEn9jFI/ahL2VtKwSPxq7JWD+B1EoPmX7enJBBXpoGa4H1lDunQKEbdjotlon9lY1V/HQaK4uvENryvl8xf9bB1Grw8ujO9wWy3nrVYA754yE+8dq0ZJh/djL7KVVF7kRA7nitY7gYW5mpZt5UmjTNvThwyJ; 3:cL+ZjUMHejgO1VuQJixT53KTzFY2olW1v9G8wMgiocG34YCEs52IDM1IloqWGks/woi3hHXfsZobmHSTEmaKpJBSvz2e3zVQABq5FocU/unHs6d/UhojVjL990fWI7kBz/XtriX0ZVdN0d/OlbWZIKCrQVFGh+lSm6Jv22JEgWTUkF1rL8ktAN5ByNS8UZtf7nMsX4IbWHspZ2KNPkxsX84jtBsBWbXixgfU3Ozm8IU= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN6PR03MB2500; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2500; 25:YdmbFiLLqyzKMAt2gfkK8z0VXUrkrwVLfir/b4g/Fi4Ps626xM58KoV8xO75SCBLx7J73L5pcpjBALPb4gbOPEquPTHZFCxN+3c8Au5BT/oQZZsry3QLAdLRPadCYderW8CbtXOB/VvhyrG7fq+B+YEd+fn6dbdH0zrU780c5dMN/7Fn98qOYmcero2XtBmQYGJtd/t+Gg6ToHre8qtftmecMycJJwDshNwIIWz2sm/JEpVBvD8PdTxu1hhJeSJjoM30QydZ7sMtXrurrzFdPg5HABHUvdLOQGFGdoiFnNoilefanztIR3iNJctf4hsKZcZYSHGoKh7F7l3716rdz366FRnbVkWidf07+coiR/NxTXuE6OSNDF7bqt5PS4/6sE0/71UYi6DeL2a2xkDwVGxB0WsYsZ18p6DHy6wIW1fpulcYw0PWQSSuYFsBtMvpkeLswmPXauHXXVTwLg7F2rUI1+lGr4dnP6Gef7UggQRIv/pBX4Cyv6f4T131DfPWPceuMVOUxO//WYE4KHIFKp9AdlRFx+qiyqWPo6ARWnkZ5Lz41fxWaw9dEjyzqIF0GT66fN7NUADTrzEbBJ5AGJggoHLUDXpx50asOCHzqLUJDKrdfyImo4AIWPdPthvuTI2Kax5P7p2dZJaAM1z6N1rPeB2zP/3B5irUWwZPMViso3iAWOiXJvZwOhMxaO6hIl7SjM0oOaIeT4qEg1VJ2UeY1VZ1byIpuoD9QAMojKc=; 31:p5C59B/33VJRt4+2OmLnSB6vpkb2xyfGI7+0CbpSFyZgS1f+pK7XiK3mg2qdykfrRrRaa+dh+l1xMU7JM6ooJi2LD0g3W0WUcWlgimkjZnQB03xnwFuYJkXH1frQVGmLpYE4mTVCmEPPQfF94YVbDC19HtkNoAwKM28GNqszcbc4zVqI4zrBH7i2DLQxHnFaWO/eqrWamMbf2kpkBJ4rEA== X-Microsoft-Antispam-PRVS: <BN6PR03MB25005A73DD62B211937639608B310@BN6PR03MB2500.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(101931422205132); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13015025)(8121501046)(5005006)(13017025)(13023025)(13018025)(13024025)(3002001)(10201501046)(6055026); SRVR:BN6PR03MB2500; BCL:0; PCL:0; RULEID:(400006); SRVR:BN6PR03MB2500; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2500; 4:9iSLTUZbLgGYoFpB5YHuz6cMYNDxNn6dF4hzfRiMYgLsv+vXFENI5xJe1BQsf2CesMEIR9UUuihHNnurU9Y3Gy4z/Zazn+NYMvZ9tFekrpVhWJ2BSzbInULXqrlxmeqG6WF/E5j83gGud59y7wbRo75b4ac6tExinCha41Tgl9zlhks7nq3Stifr/mHcuZ8SsTYrvNNRzVGFssPwgwVtb1clOLGsmF3OfJTDKqKvXhIJgYVDH2WqTdZoeR8lMdLYytB2FZ1wP2qlRqBsv0XAuGCVkwIqF9svmFWqBk38YXSdDp+7FVVEsG56Qdp50lqJ/tbt561tn4ymeMVe/1PO8RBERZXWEE0An40hJu89Lqh50GxFi+PeAZsIdg75Swg7yhMdSwlWDpPko6LZFjYqiWUoazw82UvVij/3vSuVg8sPC2ghY93Risx7DSMknd+gVCDDkRxhxcTgy2N94jPn/Gd13QLg2SgV3PKmmRXgzzK2T69vALffmuYMG/D/XUZ5VJBnp9eP6zGl3YS1s+lccQ== X-Forefront-PRVS: 000227DA0C X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR03MB2500; 23:pub4gZo20nlKtJbWVmrVWslMcyVzl9d6h/6QV2SB4?= =?us-ascii?Q?XcFi35obOiluKwUbz6VbB58nONf5hR6p5C1RLntYmJJ2GriVri7ySLgofvXD?= =?us-ascii?Q?SZgRTtN/H8Ps+DQuB80NeRrBO6O0H2h3KHJiTEhiRgAsDt9XhksMXYOBiT/0?= =?us-ascii?Q?uX4ayaPPyDyjAX+DKEm+BqOhSzmV9DJBmuxdHP7bozB5Hoet03DC7A5vPY1A?= =?us-ascii?Q?RLgTZLQHIS2U9jrtQSfzqaJAscwYEX0HIsJYfv3Abib3gGhpXoVYwsDFhIf9?= =?us-ascii?Q?zmmQLZJBsJM54sTizTnveLSzuyP9Mhqni6M44SP7de7LvuHIM9zcHdbwGHN0?= =?us-ascii?Q?qod32xiiyY/+dBZd449kFCWs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ascii?Q?wsH5KTGes2EAVTPRVo=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2500; 6:/QlfiuuKQcVgrbLJyzOyFYQt22BlW3o8oYlsOVrmzzwG9bfSINXX76xIMLnMi1vJdiVQPsswh/HUH/DBXWYNQlWNKPffJUw0MwiyOVpp0VpTJanyaf2mD5WiEqpstws0QjToU4aym9LzXc8LhMPCS/qqqgqMgaH6tXL6aUBuArGOgYWO2kewPd+Lrk4O3AY9lXyXToArljpIr6eUjuaqRxC/zNU/aWDA/gHtYqNbRJXJ83D9NujT0uyWfmERa5iAH0fRdpRmLs5Rh2CFUh+6m44vmTuLmWul1Wk3ON/B2P8=; 5:dNjPAWjlEDVxZxDqSBReufVpRzaA24/Tch/9KbXSkKY3TMMnkM88i8/RRpSNX6PbjRwkq/b/z1XOzqUjGYgY8xChVAasmYfIuMb2cCTuWxiA7/T+mAx9XxwiQfFZI1Vvj1OGYhkItWPv9T/swELp7rmxQtQbFmzFez+A1aynyW8=; 24:AgqEzXpqnFityonQI5ERP5NZrj0ixlCG7QkxGKfBZS2wUGqY6toSj2PmvuLjWR00rGInK5bT+aYy/r6pwlVcHBGcJhopL0Vhdr76w+GevUw=; 7:bGIpJc3YsPR4hJVA2snTIiMTeRt9qyh4jzamcb+Xj8TwjXNLNORe4i3tCdtgwEA2Blon/2qdfKlOY+wfHQoVPTeRLfWg8nBy+tqJBXBAFSbYDy0Dz8WRRuf+SzR/gg6QDK9FArcUA1ksdBc0GubOygshTM45HGKCtpF0S6/CvhqFYNEEBskcmU5c5v4CSaCE8oP2HnUi+0elQfxA3m1i8GpQYLxa3orf36STWWfnvQWlz1eKhN8rhWckZuObCJGP SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jul 2016 02:15:07.0480 (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.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR03MB2500 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160712_191534_881402_20CA73A9 X-CRM114-Status: UNSURE ( 9.88 ) X-CRM114-Notice: Please train this message. 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, 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, 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..0d05812 100644 --- a/drivers/usb/chipidea/core.c +++ b/drivers/usb/chipidea/core.c @@ -914,6 +914,16 @@ static int ci_hdrc_probe(struct platform_device *pdev) if (!ci) return -ENOMEM; + /* + * 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->dev = dev; ci->platdata = dev_get_platdata(dev); ci->imx28_write_fix = !!(ci->platdata->flags &