Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp131534pxk; Fri, 11 Sep 2020 02:27:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCQEhsV7l+R7K/myQBvEADitmMqnSVIr9lFINped2D84sSHocjGVgZzth7vVnEFVt5AeA+ X-Received: by 2002:a50:8d57:: with SMTP id t23mr1047072edt.308.1599816470189; Fri, 11 Sep 2020 02:27:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1599816470; cv=pass; d=google.com; s=arc-20160816; b=BL69kArgn+rGR+8MTjqmPQo0oaOuef3Jr7ZNGP6FFwz87S4KNYopKqLuCPj6BigO1G FgiPvXGOLuJjYtKZdVT714onU7KYWYi2hJwPgPoSpWluU9smHHolTxr8FJNaUCRTbs/X 3YgaPuShrbxWGl6ynFKtTj3jXnV4xSd1vgWVNCTjoWXjTArFWHFQgidg2rkQEwoqNJIl 6zwCsI0AVrlSgorC2FbiLUISamIObIhFIuZSfcb2sa1WuPQX50ijA60kK1IpaWKFRo7s mMraPG40anL8Xoyil2r/xiscLkB/v6PzKf7SuDNbtlztJxUEyXPxvM07oGhXV5Tg6G8A vy8w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject:dkim-signature; bh=gF3BeID7oAJnXA008hSaSqOm7d0b4PQrD5riMyhPPek=; b=XKcpKbIAIxou5OwmVEaH1HuiTSGzz9QT1L5ZsugB9hyCd+cEUfO/ch/Vw3vBYVvsr/ oxgpCoDUS/XXclz0HuydbzqphZzOdcHyRmIQSnH5Bexs/JltWTxJYPCaMgFGpK7Fq5gb 3qhtBuHAGzgtsgieE3bX+TttdfJmMfQAvF2bt/hFwZ0V7B8iQvdntrcTyz2mb8A9A3u+ xJR3stMFME3jMEbWz8KY/J/fZRL5lg2F7FEoJbxudioHQIE746d2H+J9UR59KYy/GUWs 3IBo3i/Z5mOIAyhzX6JTO1wSFhHhPnZyxeLHrUgHjhYDfM/2QV/EPflwpZdGYAlJvo9Z 8Gcg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=tEpitHCP; arc=pass (i=1 spf=pass spfdomain=xilinx.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a17si894897ejc.540.2020.09.11.02.27.26; Fri, 11 Sep 2020 02:27:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=tEpitHCP; arc=pass (i=1 spf=pass spfdomain=xilinx.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725805AbgIKJY4 (ORCPT + 99 others); Fri, 11 Sep 2020 05:24:56 -0400 Received: from mail-dm6nam08on2046.outbound.protection.outlook.com ([40.107.102.46]:8544 "EHLO NAM04-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725730AbgIKJYy (ORCPT ); Fri, 11 Sep 2020 05:24:54 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RfCa4Q94p94OeRg9QGvDdvXufzroJ5gqPbACKOyuwGZtsQXIgu43CS8+avV6GDXArnqF0Ia+cOX1YW0R2fznndCNExu3IpuI0sSrXX2nWqD77St4wMHgHLyAVGBtNqsgQhlVUnA1Vl/YfBaeRtBXBwC4CpZEvukWQiUv5JlA5efDKfZOD3XOQ/aqONV4U+qtIckjXB9wYckxTiaDQgFyeRV93U7k/ei9ORdhMYlc4cHRKUrh1JkKYyz2eIGK2sk3GdZm+YPZStXIr5mHtB5zThDHXkkQtoQ/hv/3F/JJmk1b7qz3wZlHRt4Zv7uI4UaIjNXjYhcRYGs4+CRbG3U0BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gF3BeID7oAJnXA008hSaSqOm7d0b4PQrD5riMyhPPek=; b=Md2JPdNl026CazhK5nJYIIx9GTlX0peeXdf6f9b3552bnUJrgZpL9qdiswMkPW4JwVmMURdFh5ECACC0sYA8X/9c2OFqI59HFBH2zDt/W8p9UmJFqRTw5Jc0qpdJMqdc3S8KW2LlEsnp2QG4VFYj1RkNtzJbNzkPM9XirgJiqwxIF1anIdqECS3QS6Vz8enF/W8kGuGaXaaCtdSITV4EpSfKffX4NdNKPOZvPVSR7honnQYY98BcgZsAsAKM2fiHBHsHmgBvIE8uFsMI1QDFTOOgbzFpbDiE3CkZ2UJe7ANi0Ff0xidfmTvEAx49RiynAFnoymSjfHSmoVd9RfZLwA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.60.83) smtp.rcpttodomain=arndb.de smtp.mailfrom=xilinx.com; dmarc=bestguesspass action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gF3BeID7oAJnXA008hSaSqOm7d0b4PQrD5riMyhPPek=; b=tEpitHCPXHrkNA6XGVGQj/0PynR6hn2UAD0JjEeTTr3JCsTLy/GzyzSl8uKgP3DPcJH12KMIq/vSnNsd4ULfhG0LFQLrYPTfrBzJj7kw6pHzhp+kCIrhv3HqBsn/+2MTfl7LE/wRyPDE9lFiY0GdefnjSAdUmhWvVHnVZD+cr2g= Received: from BL0PR0102CA0019.prod.exchangelabs.com (2603:10b6:207:18::32) by DM6PR02MB4748.namprd02.prod.outlook.com (2603:10b6:5:fa::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.16; Fri, 11 Sep 2020 09:22:15 +0000 Received: from BL2NAM02FT053.eop-nam02.prod.protection.outlook.com (2603:10b6:207:18:cafe::98) by BL0PR0102CA0019.outlook.office365.com (2603:10b6:207:18::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3326.20 via Frontend Transport; Fri, 11 Sep 2020 09:22:15 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; arndb.de; dkim=none (message not signed) header.d=none;arndb.de; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.83 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Received: from xsj-pvapsmtpgw01 (149.199.60.83) by BL2NAM02FT053.mail.protection.outlook.com (10.152.76.225) with Microsoft SMTP Server id 15.20.3370.16 via Frontend Transport; Fri, 11 Sep 2020 09:22:15 +0000 Received: from [149.199.38.66] (port=47694 helo=smtp.xilinx.com) by xsj-pvapsmtpgw01 with esmtp (Exim 4.90) (envelope-from ) id 1kGfG2-0002QQ-Ad; Fri, 11 Sep 2020 02:22:14 -0700 Received: from [127.0.0.1] (helo=localhost) by smtp.xilinx.com with smtp (Exim 4.63) (envelope-from ) id 1kGfG2-0000MD-O7; Fri, 11 Sep 2020 02:22:14 -0700 Received: from xsj-pvapsmtp01 (mailman.xilinx.com [149.199.38.66]) by xsj-smtp-dlp2.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id 08B9MBVQ000860; Fri, 11 Sep 2020 02:22:11 -0700 Received: from [172.30.17.109] by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1kGfFy-0000I3-W1; Fri, 11 Sep 2020 02:22:11 -0700 Subject: Re: [PATCH v2] drivers: soc: xilinx: Call InitFinalize from late_initcall_sync instead of probe To: Arnd Bergmann , Michal Simek Cc: Amit Sunil Dhamne , Ard Biesheuvel , Ingo Molnar , gregkh , Matt Fleming , Sudeep Holla , Heiner Kallweit , Kees Cook , Dmitry Torokhov , rajanv@xilinx.com, Linux ARM , "linux-kernel@vger.kernel.org" , tejasp@xilinx.com, Jolly Shah , Rajan Vaja References: <1599693000-25641-1-git-send-email-amit.sunil.dhamne@xilinx.com> From: Michal Simek Autocrypt: addr=michals@xilinx.com; keydata= xsFNBFFuvDEBEAC9Amu3nk79+J+4xBOuM5XmDmljuukOc6mKB5bBYOa4SrWJZTjeGRf52VMc howHe8Y9nSbG92obZMqsdt+d/hmRu3fgwRYiiU97YJjUkCN5paHXyBb+3IdrLNGt8I7C9RMy svSoH4WcApYNqvB3rcMtJIna+HUhx8xOk+XCfyKJDnrSuKgx0Svj446qgM5fe7RyFOlGX/wF Ae63Hs0RkFo3I/+hLLJP6kwPnOEo3lkvzm3FMMy0D9VxT9e6Y3afe1UTQuhkg8PbABxhowzj SEnl0ICoqpBqqROV/w1fOlPrm4WSNlZJunYV4gTEustZf8j9FWncn3QzRhnQOSuzTPFbsbH5 WVxwDvgHLRTmBuMw1sqvCc7CofjsD1XM9bP3HOBwCxKaTyOxbPJh3D4AdD1u+cF/lj9Fj255 Es9aATHPvoDQmOzyyRNTQzupN8UtZ+/tB4mhgxWzorpbdItaSXWgdDPDtssJIC+d5+hskys8 B3jbv86lyM+4jh2URpnL1gqOPwnaf1zm/7sqoN3r64cml94q68jfY4lNTwjA/SnaS1DE9XXa XQlkhHg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UOOBKqKaagfG2L5zSr3w rl9lAZ5YZTQmI4hCyVaRp+x9/l3dma9G68zY5fw1aYuqpqSpV6+56QGpb+4WDMUb0A/o+Xnt R//PfnDsh1KH48AGfbdKSMI83IJd3V+N7FVR2BWU1rZ8CFDFAuWj374to8KinC7BsJnQlx7c 1CzxB6Ht93NvfLaMyRtqgc7Yvg2fKyO/+XzYPOHAwTPM4xrlOmCKZNI4zkPleVeXnrPuyaa8 LMGqjA52gNsQ5g3rUkhp61Gw7g83rjDDZs5vgZ7Q2x3CdH0mLrQPw2u9QJ8K8OVnXFtiKt8Q L3FaukbCKIcP3ogCcTHJ3t75m4+pwH50MM1yQdFgqtLxPgrgn3U7fUVS9x4MPyO57JDFPOG4 oa0OZXydlVP7wrnJdi3m8DnljxyInPxbxdKGN5XnMq/r9Y70uRVyeqwp97sKLXd9GsxuaSg7 QJKUaltvN/i7ng1UOT/xsKeVdfXuqDIIElZ+dyEVTweDM011Zv0NN3OWFz6oD+GzyBetuBwD 0Z1MQlmNcq2bhOMzTxuXX2NDzUZs4aqEyZQ= Message-ID: Date: Fri, 11 Sep 2020 11:22:06 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23620.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7a9cf3a5-d66c-422f-d8ee-08d856342c1c X-MS-TrafficTypeDiagnostic: DM6PR02MB4748: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:6430; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gOSCaIROahM5slCgm05W+Dq0hP3MygfYrG9sEGeH3yA6dKWw+F9FdQPzI2uhz4YsV+vmag9oqQSDtJweHpLexqrElzBf3TpZFzx8zP5g2nOoJzi+udfW4+VEP4wvWKEXgFJAMt0uEcu1//m7AYd0su6EfmzK3oUbhTjPCjkppeVm2tSxSevil2FaxUJrdscUHiOJPbGbT25rG/6npDapPLrt4z4diPlOI/vytH93+SvCW7JyNJLHeYIwEmrzBP9BU/bR76Pzyj3ocChUYUnYBwo7hcjsxwia2E9ZoMBu78pDZesW33ey+MOeCiC1hlpcjqx9h/ZKuO03SrXpRNSJFWjXaUGIcMvprJtP7yLQY3cPOp2VMlTDp5BuSQMfkv5Prpt4CD3M+7m2iQR7oy0tktx6t0hDzNqaiNnDAWceR5k= X-Forefront-Antispam-Report: CIP:149.199.60.83;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:xsj-pvapsmtpgw01;PTR:unknown-60-83.xilinx.com;CAT:NONE;SFS:(376002)(346002)(396003)(136003)(39860400002)(46966005)(8676002)(31696002)(107886003)(110136005)(356005)(2906002)(82740400003)(54906003)(81166007)(47076004)(36756003)(426003)(316002)(53546011)(31686004)(26005)(336012)(4326008)(44832011)(7416002)(8936002)(82310400003)(70206006)(70586007)(9786002)(478600001)(2616005)(186003)(6666004)(5660300002)(43740500002);DIR:OUT;SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Sep 2020 09:22:15.1151 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7a9cf3a5-d66c-422f-d8ee-08d856342c1c X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.83];Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-AuthSource: BL2NAM02FT053.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR02MB4748 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10. 09. 20 10:35, Arnd Bergmann wrote: > On Thu, Sep 10, 2020 at 8:50 AM Michal Simek wrote: >>> @@ -246,6 +245,23 @@ static int zynqmp_pm_remove(struct platform_device *pdev) >>> return 0; >>> } >>> >>> +static int __init do_init_finalize(void) >>> +{ >>> + struct device_node *np; >>> + >>> + np = of_find_compatible_node(NULL, NULL, "xlnx,zynqmp"); >>> + if (!np) { >>> + np = of_find_compatible_node(NULL, NULL, "xlnx,versal"); >>> + if (!np) >>> + return 0; >>> + } >>> + of_node_put(np); >>> + >>> + return zynqmp_pm_init_finalize(); >>> +} >>> + >>> +late_initcall_sync(do_init_finalize); >>> + >>> static const struct of_device_id pm_of_match[] = { >>> { .compatible = "xlnx,zynqmp-power", }, >>> { /* end of table */ }, >>> >> >> Arnd: are you fine with this way how to check that it runs on zynqmp or >> versal? > > I might be missing something, but this sounds like the wrong way to do it. > There is already a platform driver probed in the presence of the > "xlnx,zynqmp-power" node in the same file. Wouldn't it be better to > either check for the same node instead of an arbitrarily different set > of SoC names, or to make the platform driver itself get registered > form the late initcall? Rajan/Amit: On the top of my head I expect that you can't call it as late initcall because you need the first part earlier. Does it make sense to check same node? There is and should be only one instance of this driver. Isn't it easier just to setup one static variable instead of calling dt functions which will take time and result will be the same. Thanks, Michal