From patchwork Tue Aug 16 02:05:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 9282467 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 5E18C60467 for ; Tue, 16 Aug 2016 02:17:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 46D9628E64 for ; Tue, 16 Aug 2016 02:17:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 39E4328E99; Tue, 16 Aug 2016 02:17:10 +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 EEF9628E64 for ; Tue, 16 Aug 2016 02:17:08 +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 1bZTuO-00013y-Fj; Tue, 16 Aug 2016 02:15:16 +0000 Received: from mail-sn1nam02on0055.outbound.protection.outlook.com ([104.47.36.55] helo=NAM02-SN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bZTuJ-00009p-Lb for linux-arm-kernel@lists.infradead.org; Tue, 16 Aug 2016 02:15:13 +0000 Received: from BN3PR0301CA0025.namprd03.prod.outlook.com (10.160.180.163) by CY1PR0301MB0843.namprd03.prod.outlook.com (10.160.163.149) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.557.21; Tue, 16 Aug 2016 02:14:47 +0000 Received: from BN1AFFO11FD054.protection.gbl (2a01:111:f400:7c10::183) by BN3PR0301CA0025.outlook.office365.com (2a01:111:e400:4000::35) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.557.21 via Frontend Transport; Tue, 16 Aug 2016 02:14:46 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=fail action=none header.from=nxp.com; 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 BN1AFFO11FD054.mail.protection.outlook.com (10.58.53.69) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.567.7 via Frontend Transport; Tue, 16 Aug 2016 02:14:47 +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 u7G2Eg0V007602; Mon, 15 Aug 2016 19:14:43 -0700 From: Peter Chen To: Subject: [PATCH v2 1/1] ARM: mach-imx: imx6ul: populates platform device at .init_machine Date: Tue, 16 Aug 2016 10:05:15 +0800 Message-ID: <1471313115-30099-1-git-send-email-peter.chen@nxp.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131157872881477962; (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)(1109001)(1110001)(339900001)(199003)(189002)(2906002)(7846002)(4326007)(19580395003)(50226002)(19580405001)(8676002)(50986999)(356003)(81156014)(81166006)(85426001)(8936002)(305945005)(69596002)(586003)(33646002)(2351001)(229853001)(97736004)(8666005)(106466001)(626004)(104016004)(36756003)(92566002)(110136002)(77096005)(86362001)(5003940100001)(47776003)(68736007)(189998001)(87936001)(105606002)(50466002)(48376002)(7059030)(142923001)(32563001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB0843; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD054; 1:v1z4ISAPwIUJrC2Rglo3iK2KJV80w/gJFx+iIjqo9GL+aeQHuK+LXiN/Z16/WE536BksaH8IjE3X5RKTzG+PApFWaN0Y5XmA+XsGNzx7YeBBjQ7NEY3RZKXttoGw1rX3tVBlxbAuR3kYEvEQxcBMB8o1T7JQcb4WwxnfNoys91EQJi8EtIE0Mr9qOgp985lPjXElFiU/IBFVNsWzvbJC0Lzl5D7kIOLoxvzRm8AWrBj+1v0mY8QivgvQ6+IAZ2cjJo93U9/euQOQMkmkklmaui1XQSnI34clhVKkjKPd6bYj8cpzgz5QUKoKWhMaQwx12WMsijBS7FGj1+OrggEkvnSV2Kb/cOKWku16N55fDdd3N5+6tEXtxx8Mgs/Ft1HBVf0P7hjqco0ZxJ93CHzOLA6Gt6zeKkEEKrmPKsfkk1B2QwXiZ4RbCM8ma9w60XoLo6rCqDQx6LNJV4RVQRMFr/Hmwh5IL0aBHOF5YfTsn9pAxn9uKsUKzHlZF+PvL3UiL4axxac2dCZ97Ccl1ZLOlpBKmEPyE0R/ravEOhKmirA71iPo3RKnvNWeAj+iIDIO/FF8K6ZVQmULS1KitLSYsXcD+T9V7atvQ5Osd4laiiu1XKLr6pigI9clnPNQLd10TqLU5m0zi7fUfWGwHlJ5oA== MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 4f570b43-f811-4114-9e52-08d3c57b18fc X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0843; 2:QUPlvh59Q7l7YaLCRQ68zr/imfGEDGfOFBUW2mLovqWqdE7/CdLj+u/ZsUBptw47olDVzl2KpGiW5SbTD0/YIZ8cQ0L+8caUxchsGJkQVtrIqFXxxZvOSXywu0MuQlDMLlCXwLL8hAxhvg3CJsLiR+NKvzdbmnOixnTBlQzV8ujQ1R4sg5dvPcUSdSbDE3n2; 3:fpVKnDk/N0xF9/oFbN1d8qky/9xlLJsIj6nuJ9iR8dxx5Nh61krUk+NXNd5mkaxAgEG1dtbYGCjk67h0cN3e9KU2nb5GzM6PDyoBu3sNDfXPzjLA4qiNPtK4RYbW/LwX4IG8IaGhpo371iwhl0T0FHfozt67MMv3z/l1H5cdkcgOzQHY3DY07E8cPV/FgL8BhdERdmiweguHUnPasw8fMGusoZWyhC4xDzyv2TnSnUU=; 25:m24y/GdvcJX23me06xRRS6ElVRGRkHjLESoFuZFqCFyb95PZVatfrU885N/oH0/pHdekoPe/vwhtIKFLZGuBdVyCt3N/Byvc0pIf1XQuDSFSsuKuay7xIUwNHQnvZJ2ShgkU3ZXmTpThZ/MRz6yyoH5Z6HBT3KQZfZFl6v4STCwKLnsE2hXNf4DGIzt+r6nmlSghSQP18BJAi+SNAx8pDLsL/Rq0jHT82Inu+yaq5nEAqxeiusifvGVKwykw18TX2XkgmSVDKpsf+q1fFI31Hscr9+EKMvLAKz+aW6KQT5YOll59lR5nkGNgZAXMrMxHqbNs23OeXWTuadtbyAbHFdK1+JhI7V2Wvh6U9LCU4lrLiIYmLG/AiF4QGps3XdclYLWiACuWEj0uRZcJara10SV81FTptJhGoh9SPrZwgno= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB0843; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0843; 31:sDxpQ8wfKOJ7SwvSsTRSUBEyXuGqiXmU9uVtos3iBxs1fW2PYWKRVgFgTtFf4FR8WEAKVwfX5V+Wj2HEXSyb8jmUXhjK6Dyh4au1eTvTZD/xh0p2K6MXBdlUi3cbCrMK8heYco/62Q6VUkDP2y7l1VoZLHwxmdv1hAjqEOFFQDdJhNaFDpIz8XhhJRlHmn8Db3dW6HBA2Egp6Fv47vEqw7lnY2W9vcBi/upUKkMNyUI=; 4:AsGBrC6wBuXSZW953CF1dl0QkLkZwLEaXzjJcvb1RObrWLzBaSGCairCHaN8eXb3OIx4MQ1tfszetB0kgTULlltyKG24af/o+1Kq8HFLFS3KWHVyAzir5gK4fWhWzsny0YNBUB9bBsdvyPuQmIyxA3xg8D3lNQOfxhHSP+a+WmmfwA7W2et1m+g9rjTcl5du2QhkDJfwCfxbYYa7+vjp09eiKo2BkP8LZT5RqFIR4lLlJu95dZKxqYs7E+6ajRWUcHDBtmT6zNbriXWhFDzs1BxQt7cGYFeW1cNIH6IOU5MUqgQxc+nniBZX0dkGaST+2wbli1cF31Zg/lVnkVRfuV3xBfI6mQ5aON8CwINXaTGInd0JyMtxF1ofqDlrDSJqgFtyHkkKhVJWgAwrw4krktaxTRRrlvhK2iSUJsZxsdlOqyGR14yXSFpW0Lnx4DdiQKb0Jg6lLVpEFT2rAXFz15lwG+i75HvxCIxUQWuiAlK01YhnbvD4ztVXmbP/ggMoIakeQwduturAe5Shlt7e/vkjoFvrneMQDpOrZR0/4WXKsEGh0c5W7nx0oiFr5TYYfwmNDhil8UrTfTxJ6AeldUbnLmRE+GZ5WTFtJ7w6Wz0= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(9452136761055)(185117386973197)(50582790962513); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(13018025)(13024025)(13017025)(13015025)(13023025)(5005006)(10201501046)(3002001)(6055026); SRVR:CY1PR0301MB0843; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR0301MB0843; X-Forefront-PRVS: 0036736630 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB0843; 23:sDeLOJy+JYHLtxikCeRuZzIT5PU+oddWolDlPa2?= =?us-ascii?Q?EQag57MVLUxtscSAzb2D1U+qAiFOHdUiHLNxzDXRjYomrJzwX+R+SCRTVJxH?= =?us-ascii?Q?bJsvuOxc/OBaWxyPXB4KJ0Pe0TcfcW/WZmE0vcZbW6F24kNav9d3DFesDETW?= =?us-ascii?Q?jerriN8xcAVkRsKghpxHPpxaB+fLf6ffIEMZ/3xeu2+aUU8hzQYZuDA8OfXe?= =?us-ascii?Q?rftjfMdQujMsQof38yDjS6iqOrCTMmI9YOILnyMo5eDGVMNPRcqolMk0YZJc?= =?us-ascii?Q?/cgMT4HL7xaE7Z8U7hWgA0ygBOqMOnl81fjuRZcGZWrqrGgON9ydzXSWCKW+?= =?us-ascii?Q?SSWkuKgr1Ecr4bKJbvv4ii6TQFM92+dFvR+phUcJcuBPBuq9f77CB6UTMgnH?= =?us-ascii?Q?en1Vaunh4QnlySqC70jeWjYBmqp7sKLEoDr6VqgQIpM/sZHCJfyi48V9f2t/?= =?us-ascii?Q?c83L1JRuD0Q4Ck6CyZwRGVJ9m0LdTLpAvevqhP/iTpSVQbnLti5M5NmHxyPS?= =?us-ascii?Q?VVRVSow+fROlEzKjn/YGQAuAIZj3/IhBIej4tvUQrL27B0N7FCNDvTHB1oKy?= =?us-ascii?Q?Ks9Fu9v4APWJGYHkNzg1GqbcFYLouWn0c7+tj3xA6TlC+/tvimgLUo3+PjcE?= =?us-ascii?Q?KiCYIJG8sbipZgJky6BTfUlC1d4Iz+FiYFJSiEzK0nbsU9tOekBkR0a8TKPf?= =?us-ascii?Q?Xc42eiX+EYBGbNqwQQi16Ehsq9Fj7gf74WGOdntQ2rJaPG7dyNiiujmFldQv?= =?us-ascii?Q?1SvAgqqwA2D9in0P+k4bUOxec2x1IBSN4rkqe/4A8KqYWzcCXosm52I+SpXs?= =?us-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ZRtP+jI3s+7QVLcHhM3Z/llhr5TcrWLm0IU41GUt5qUSVAztGfZgAxWNja/0TFQSZ2u1X8nSwVmgJwzofWstwX0bbF5hncDdscDr4BKENfVdJPFDonFbOwjFXXoEGyv+O1bzQd00Z07UhSD8d2eh9oVjRt5CoOReG9EMesWpOnHKRnomKaIzIbVK5ecuO5zArMsIryqjKND+Edccek SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Aug 2016 02:14:47.7889 (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: CY1PR0301MB0843 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160815_191511_868215_F757FC6C X-CRM114-Status: GOOD ( 10.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Chen , Kefeng Wang , Anson Huang , stable@vger.kernel.org, kernel@pengutronix.de, Fabio Estevam , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP At imx6ul_init_machine, it calls imx6ul_pm_init which needs to find platform device for ocram, but the default populate platform device is at of_platform_default_populate_init, which is located at arch_initcall_sync, and called later than arch_initcall (.init_machine is located at that). So below warning message will be showed during boots up: imx6q_suspend_init: failed to find ocram device! imx6_pm_common_init: No DDR LPM support with suspend -19! Due to lack of ocram device, the suspend mode "mem" which needs ocram to store suspend routine code is invalid. This commit populates platform device before imx6ul_pm_init like other imx6 platforms do, and the suspend mode "mem" can work successfully. Cc: Anson Huang Cc: Fabio Estevam Cc: Kefeng Wang Cc: Rob Herring Cc: Fixes: 850bea2335e4 ("arm: Remove unnecessary of_platform_populate with default match table") Signed-off-by: Peter Chen Reviewed-by: Fabio Estevam --- Changes for v2: - Add Fabio's Reviewed-by tag - Using the correct commit-id for "Fixes" tag arch/arm/mach-imx/mach-imx6ul.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-imx/mach-imx6ul.c b/arch/arm/mach-imx/mach-imx6ul.c index 5d9bfab..6bb7d9c 100644 --- a/arch/arm/mach-imx/mach-imx6ul.c +++ b/arch/arm/mach-imx/mach-imx6ul.c @@ -64,6 +64,7 @@ static void __init imx6ul_init_machine(void) if (parent == NULL) pr_warn("failed to initialize soc device\n"); + of_platform_default_populate(NULL, NULL, parent); imx6ul_enet_init(); imx_anatop_init(); imx6ul_pm_init();