From patchwork Mon Aug 15 03:37:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 9280301 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 B652360467 for ; Mon, 15 Aug 2016 03:48:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A7EAB28B6A for ; Mon, 15 Aug 2016 03:48:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 995C928B6D; Mon, 15 Aug 2016 03:48:59 +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 1041828B6A for ; Mon, 15 Aug 2016 03:48:58 +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 1bZ8ro-0006bx-U9; Mon, 15 Aug 2016 03:47:12 +0000 Received: from mail-co1nam03on0075.outbound.protection.outlook.com ([104.47.40.75] helo=NAM03-CO1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bZ8ri-0006a7-N4 for linux-arm-kernel@lists.infradead.org; Mon, 15 Aug 2016 03:47:07 +0000 Received: from BN3PR0301CA0044.namprd03.prod.outlook.com (10.160.152.140) by BN6PR03MB2708.namprd03.prod.outlook.com (10.173.144.15) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.549.15; Mon, 15 Aug 2016 03:46:43 +0000 Received: from BN1BFFO11FD047.protection.gbl (2a01:111:f400:7c10::1:143) by BN3PR0301CA0044.outlook.office365.com (2a01:111:e400:401e::12) 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; Mon, 15 Aug 2016 03:46:43 +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 BN1BFFO11FD047.mail.protection.outlook.com (10.58.145.2) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.567.7 via Frontend Transport; Mon, 15 Aug 2016 03:46:43 +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 u7F3keLU013979; Sun, 14 Aug 2016 20:46:41 -0700 From: Peter Chen To: Subject: [PATCH 1/1] ARM: mach-imx: imx6ul: populates platform device at .init_machine Date: Mon, 15 Aug 2016 11:37:16 +0800 Message-ID: <1471232236-12635-1-git-send-email-peter.chen@nxp.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131157064041941077; (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)(189002)(199003)(189998001)(106466001)(33646002)(2351001)(85426001)(8936002)(47776003)(8676002)(5003940100001)(626004)(97736004)(4326007)(68736007)(104016004)(356003)(50466002)(229853001)(48376002)(92566002)(110136002)(105606002)(36756003)(19580405001)(77096005)(2906002)(86362001)(50986999)(305945005)(7846002)(8666005)(11100500001)(81156014)(81166006)(50226002)(19580395003)(87936001)(69596002)(586003)(7059030)(142923001)(32563001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB2708; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD047; 1:m/ffwkeRaapgToM/6LSu5xsd/02HLq0lH4DcbNGnxPSa0GD/n1nf5IsJFWPoIHQVY3xReqse03u7I9QNUKsMQi//elDhrzYhKroUsf5MtCdpkAJ/7vKTqZAzux69sTJy4apC5sO/uow8sIgaukDAoAECyiNE/kc8t+H+Dd7tCcATsgZAEvwgxw4JQDpvEORCO+IMUMYq2TIDlZTyMU3IP3iDJlfVt8UfZmN+UkXzfp5I53t+jzs6956Fg3lyWk7jxFVSaztTWkiEFKAoJBnka/j8HzjZ4tFI0yOV4Ls3zEdyNT1WyHmSc74fA+s2qmHqqoG2mrOtbTCM7m+lon3FWq7tdl0sUzUO6VYkulDrtUEmbf4gbs+EwZtms83HU3l+ZzCVPPblVNQJsDqn0OnMzjMKYCNczkUiJ3gkhbuohykRydspietRXgK2JUXVcRu0wyO6cvFhx+Zr33+XdvY/5PLLUb6jv7RHgKBC1NEErMDUU6sS+mDgimM5SN3o141kfgzQm6UdzgncIrkD3Jyut+MzvSBObog31RXITMpVQm6MwZdpbEvzcKFC/69E3d87i4SLWBmg5n1fAbRMenRjhdKwkEm8QQXBq0+R5orGdkZz4lyNMp8RoLAGQSM8k6HK MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 6670f50d-d7a7-42c7-66f7-08d3c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+yvP8BR1iaUnQZi7CUjGzX5GMY3mofilNnV0bEh/JaRjGWeOLcGdU9Fwz/Bn1Dp374Ff5fA7jQTh8ENkGDKVV3qa7Qztu7fyTlW+Ft+99Kl5YsXB4qLpLux9sKjTP84C/wdO/xPbQILeY7Ho3e/dqRX9wRqiOW2gQDrAPTs1KfTGY1hok8=; 4:u0Xyg3310AMM56oMX1qauKfwrXrWaSyxMzKL63X7tT5g+I4dEpkhe9X6VIRQ/SEfEAwimW76/ri+qHNL9nlaYFhh2myZmX8Z6i8yyAjZCLtidxmgpMlSW9t3yun1bELP+5bSrrv8c8NP6TwQdH5GRbam+vGWBatiwPteK2VYQ/ARmYg9fiHRvcrWFdcfBQ7vHK5AcE41yNQDVoFzx8C8YGoEEkJdVFOEdC7b2m6Mkee3frmgy6sXIgkkYGTBCNCFchFW6/XiRYN5M0k1E6eEsH9cHZzlNxTWdyV/0yMQopYn7HGFqrXpTkjgseIW211CxWf5EeHh3XDlPldtcFNZ5ZMwtGlFR2XTyrY3KzH6+GYRGKJu4ynRoHgdgySv68Hd+g1yRXBKoabnlWX72ENqGgNj6Wbwyizrdo1ePDqkhf0DMWoWtg/iitFnhcoAS4ioTkEs4NaGbkZ4weHsNLCTs8H/KQjo7CYzBhpd91vihOIRfGJ/KV/lhS+hWXFJq7a2y318GSpV8H0SmcY4ZbIKtO+sgRZjCdgAKdiEWAImgbY+IKAOpYMLpMuBKiipOie0tDjUvXRUqNGl1F17Sa8p3Q== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(9452136761055)(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(13024025)(13017025)(13015025)(13023025)(13018025)(8121501046)(5005006)(3002001)(10201501046)(6055026); SRVR:BN6PR03MB2708; BCL:0; PCL:0; RULEID:(400006); SRVR:BN6PR03MB2708; X-Forefront-PRVS: 0035B15214 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN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lFUyP9Nr3wFXTvTOwAzQ4KbCILwniAal8g4lRbPoETvB4ue2o89bEk4uXpYl4wuYPFbQWg/bdwxHuIz4mGc/p1w+1zu50WLKMT6thjr5IUWAxBF5knFeq9bj45MX+JCNXdjdtdmTcTj5yEmP4nGEBt1hh2rkUu6SECnJzD7RhQuWVAroo2HrTp0P8XpsKVRbiiJV1boBrs SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2016 03:46:43.9601 (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: BN6PR03MB2708 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160814_204706_882251_C675D5ED X-CRM114-Status: GOOD ( 10.89 ) 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 , 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: Fixes: ee4a5f838c84 ("ARM: imx: add suspend/resume support for i.mx6ul") Signed-off-by: Peter Chen Reviewed-by: Fabio Estevam --- 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();