Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7286618rwi; Mon, 24 Oct 2022 12:23:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7u3xZWkAjhk+ztSZHjxQwkgvxRVueqlzVIwEilaoaF0pcLjByraiM57/sSnkhNBP+QelTy X-Received: by 2002:aa7:df16:0:b0:45b:f51f:ab73 with SMTP id c22-20020aa7df16000000b0045bf51fab73mr32266741edy.366.1666639388971; Mon, 24 Oct 2022 12:23:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666639388; cv=none; d=google.com; s=arc-20160816; b=Tpexnerif/vvO4AMrqmm0yF/3RhE5ZLfDilXuCYQzArBi6kz6yXro3ilM8sgm91xgx ZVETTVVQock/wrdUCr/u7rf8LMnpU0Q35PmI45jqEfmQ+HqSuF3nHzCIHEC0b296PJi3 H/SyR94VQ0257N5jY7t+zsqv2KnScjLb/VIOF9NFFWFqquovPRvEUWdrmSX8OdfHWjWr LjZS54iWAx6xUTDV+4q2si4MaHr09s5DExjcemMZZCQWltUKeKR7adicXpDwvGO6/5JI 1Vl4qCV0qDYeCqawN3P7hhP3h5m6wLvL9BmKlTJT1tmOAQV5rIcTFMy8a0GZ8wXrhb8X c6Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=K5Du4RqCRhvG+BegZUn55uy/2Pjc5TxmauQquCySjyQ=; b=KbmkXy3HPiTbonbjNYQsdSRQsOuLotJvSDAeQ7XCt3glBDZIMKGjWNnOi7BOsLkngO YmFB1SzMCTbGRypRZk/mVn87bW2CvE+pz9ojegOpuWjXm4MYEhkMzccfhPp8PZFI4YsP LlkFpNic/MuSN3NS+KOc7liNuFPRPrcyPiM8g34m8et6UMRRN58t6NetXA9f6a4OVh3S D26GMLD3m99V+lM9BoHL8cDyJIMpS3TG8uzm9X/ysLXSxalvm5HqkAdQyIg6wPx1wfkg 04VDW2netidyzihokP/LDZxIc4Ixu4xwpzBxe5jH6EhVA9KWRRi/1oiiPrt+attUxbbF WEfQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz7-20020a1709077d8700b0078dc5b2b6c4si599049ejc.666.2022.10.24.12.22.43; Mon, 24 Oct 2022 12:23:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232339AbiJXStb (ORCPT + 99 others); Mon, 24 Oct 2022 14:49:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232730AbiJXSsz (ORCPT ); Mon, 24 Oct 2022 14:48:55 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90D9B8BB99 for ; Mon, 24 Oct 2022 10:29:47 -0700 (PDT) Received: from ptz.office.stw.pengutronix.de ([2a0a:edc0:0:900:1d::77] helo=[127.0.0.1]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1omxzm-0001Lg-Qs; Mon, 24 Oct 2022 16:00:02 +0200 Message-ID: Date: Mon, 24 Oct 2022 16:00:01 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH] clk: imx8mp: register driver at arch_initcall time Content-Language: en-US To: Rasmus Villemoes , Abel Vesa , Michael Turquette , Stephen Boyd , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org References: <20220928124108.500369-1-linux@rasmusvillemoes.dk> <814496ae-4007-9a4e-0466-a0386aec6316@rasmusvillemoes.dk> From: Ahmad Fatoum In-Reply-To: <814496ae-4007-9a4e-0466-a0386aec6316@rasmusvillemoes.dk> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:900:1d::77 X-SA-Exim-Mail-From: a.fatoum@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Rasmus, On 24.10.22 15:48, Rasmus Villemoes wrote: > On 28/09/2022 14.41, Rasmus Villemoes wrote: >> We have an imx8mp-based board with an external gpio-triggered >> watchdog. Currently, we don't get to handle that in time before it >> resets the board. >> >> The probe of the watchdog device gets deferred because the SOC's GPIO >> controller is not yet ready, and the probe of that in turn gets deferred >> because its clock provider (namely, this driver) is not yet >> ready. Altogether, the watchdog does not get handled until the late >> initcall deferred_probe_initcall has made sure all leftover devices >> have been probed, and that's way too late. >> >> Aside from being necessary for our board, this also reduces total boot >> time because fewer device probes get deferred. > > ping Module build is unaffected, because arch_initcall expands to module_init if it's built as a module, right? Noting that in the commit message would be good I think. Also, did you try booting with fw_devlink=on? This should have resolved your issue too. Not sure what other issues it may cause on i.MX8MP. Cheers, Ahmad > > Rasmus > > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |