Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2345220rwb; Sat, 19 Nov 2022 14:06:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf4667OFhBosvPUkrLEvrURmQfljxSGvbqzZKGLquMwAUUIe5O5LDe4k3Ev856W3xXc/IxeW X-Received: by 2002:a17:906:c042:b0:781:541:8f1d with SMTP id bm2-20020a170906c04200b0078105418f1dmr10804652ejb.117.1668895561228; Sat, 19 Nov 2022 14:06:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668895561; cv=none; d=google.com; s=arc-20160816; b=hcDG/Vhq7ls19R+4ZaVA+yuV+f95uhb1WjoMF/WYqebAn/myW3ssZ/2MeRp+1PU6wn juMnOi9Ttq3tqXoFzyEhR7Jaiiu+P5O9K4T6MVvwaSpg+trPIggUUB3GbczlKji2mS94 m/uv1Eu2R0ocU6Ic+3OkvopchFNb/oSW4p3mbpjTzIF77nH5a+I/J+NoRaeyTwwYuqqK TRKqwq6Xs3MGggsvtHOLn+PJNvhnrkW1taijBYksSH88tzuBPhTFLW4o/k6RVxTJJUnp 18pgi9rKPuDbr/8LlWKcvJwCKZRTFq26Tlk1TcUNqZna/KiMlFWqvVZFJODOXoXO7il+ EnnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=KI/uaIZ0N9fBDKR3p7hp/D0x83QkWHbMrCesaL5UMNM=; b=nB+AzmV7jDFBsFBjLxdzqntd1QKRTycC28IphgerdFqWeW5f9nHcQnCinCCxrXtoNP VyADQYENLkc9GPP9Hax8zaIiNoyHXlaUKo5BvaTPPAYwGvqAg9bPUWxPFeg7B0zpSmnB yx3wFZyOZ+Sio0IsaE+0OgGeZSZ4wmah6EOk2gZTZ3sHIgy4QO8cGzIfSr3NNdE739Qd nai2jxc5hwoauMQ7oKFMC9ZnaAdrcBY+CXVGhOewS3p2CCkOlnckD2Zz5NH0yxNh0Qzw /MFhhpURG7mJ5HYIkz+HzYmSY0fHII2dmJ6Dp99ZNJ+VxpOJ4+woQ2ffWEarM6rDMwe/ gBBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=BsFed5eZ; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id et19-20020a170907295300b0078d9cec6a5asi4967976ejc.191.2022.11.19.14.05.37; Sat, 19 Nov 2022 14:06:01 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=BsFed5eZ; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234388AbiKSVjP (ORCPT + 92 others); Sat, 19 Nov 2022 16:39:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229635AbiKSVjM (ORCPT ); Sat, 19 Nov 2022 16:39:12 -0500 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F178B1A385; Sat, 19 Nov 2022 13:39:11 -0800 (PST) Received: by mail-pf1-x433.google.com with SMTP id 130so8053787pfu.8; Sat, 19 Nov 2022 13:39:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=KI/uaIZ0N9fBDKR3p7hp/D0x83QkWHbMrCesaL5UMNM=; b=BsFed5eZw+LHO69lCKjCT1rZZQqvfhqhHZ7bwQ+RusyafOVyBQ7RtalOaLO5GcEuV4 E6Z6hziRW3N4p3Pzak3YSuxoZZKSQPGzZHF/Dpk3aJCCQ8CuXAx9An1yIbOVqq5ntiqU HGaEf7jrJNwiFbrFWZavHLZLoyueeLbk713lrl33xpJwaiJ4IgvRUzg+wkeiz1HKARcy Nrz12bvYgw5tl2jiTsFem0puRiwPhQJRc1C7I9ZdgCqLbwDlC5jGEC62P4ftM5PKYLAm E36Zm2SLPN6ppwtpP+kow5j1b3SmZShIYro89tZ6NHMsB8H55lxghikVHfj59nhSqrYu 2LMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KI/uaIZ0N9fBDKR3p7hp/D0x83QkWHbMrCesaL5UMNM=; b=JJCBbFDmBNOxYBZ/e/YLFGtzWydYlW8LCdIne3+gQW+SOLo2I5qcOw9XWYuT3yK4h0 rRk/D+37nHCo9+4S5HnrqekCLVYRfxLzBsXnFZY/4XUkqLcFmcusZV08rgubrswLnBBL rkCl0J5rwwZhZLxnlkMhKkBmqNpui+mJmnvTGUU5kqIdqgIfNK17TJRXaC6QzhyOJ9RM ofMrg6XsYd2a7Iiv40jH5KOPRvb9iwsLuYCZjTkVonGk0+Pyc1oBny7ZAKypPpiu0SjB 79ZbDtYdaYOjyvebJCOwvWmONUOH+ObJop6tllzBB9+D/tcQ6JAOmqa6cr9xZ/JmYHsH AjwA== X-Gm-Message-State: ANoB5pml1hrkLqxQtGjgTYILdNQ0hp8NG/JKQne8AlIRvCnJ4CIylduy 8WKgL7yvmL1IvrY6QHXUYpoc+aNV5T5cVdF/FCI= X-Received: by 2002:a63:2f46:0:b0:477:4a13:f38e with SMTP id v67-20020a632f46000000b004774a13f38emr4171456pgv.131.1668893951380; Sat, 19 Nov 2022 13:39:11 -0800 (PST) MIME-Version: 1.0 References: <20220928124108.500369-1-linux@rasmusvillemoes.dk> In-Reply-To: <20220928124108.500369-1-linux@rasmusvillemoes.dk> From: Fabio Estevam Date: Sat, 19 Nov 2022 18:38:53 -0300 Message-ID: Subject: Re: [PATCH] clk: imx8mp: register driver at arch_initcall time To: Rasmus Villemoes Cc: Abel Vesa , Michael Turquette , Stephen Boyd , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , NXP Linux Team , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 On Wed, Sep 28, 2022 at 9:41 AM 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. > > Signed-off-by: Rasmus Villemoes > --- > It would probably be reasonable to do the same to the other imx8m* clk > drivers, but I don't have any such hardware to test on. Agreed. > +static void __exit imx8mp_clk_exit(void) > +{ > + platform_driver_unregister(&imx8mp_clk_driver); > +} > +module_exit(imx8mp_clk_exit); Isn't module_exit() unnecessary here, since we pass suppress_bind_attrs = true? With module_exit() removed: Reviewed-by: Fabio Estevam