Received: by 2002:ac0:c50a:0:0:0:0:0 with SMTP id y10csp1025770imi; Fri, 1 Jul 2022 01:08:30 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tRhKyd8nBF7mSo8VMg5w9T4+PGPIFytvX5LsGYdi1thXRqeh4dZIqGEPw5WEO5b3IxQnKi X-Received: by 2002:a17:90b:3851:b0:1ed:d98:fe35 with SMTP id nl17-20020a17090b385100b001ed0d98fe35mr17432051pjb.35.1656662910371; Fri, 01 Jul 2022 01:08:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656662910; cv=none; d=google.com; s=arc-20160816; b=y+2p2A+i6tq0Aig4glR8Orcdsr7mHeHgWHphVb5uCZKonmQP5qSAwwLeo5X9eXV7BB JHx5JDlDYPbIynDxpzym6ijoKh+8UWrhRB/6g2QQhBYJfSvzlLlpboeaZujLtCSQK3QH 3Bv84JmTVlabEyMYytbg4zilHbWe1Ng7TqPJ5ZHbfWfVi+WWJ/7cqT6SmbToRFSfxsw+ nJ1dl1wMVw6ek8+Af/G/AL1XDDNicvJUly7bUWJa6mrHsYWsG8HHGgywPWcxHrG60yOm cL3bNCB+OUY4kLR1EC5FcxLSEX5/PJENzWzjHoYKbkUHh055hU+OfJySI+zmtCvnHe4Z LICA== 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; bh=YU1XddcO32RLHJVgcyV4xbGLKtUqtr7Z4CGj+gDtTi4=; b=lJxe7Jpv8Y7nCP+jfMCA5PnoUweRWKMOuaSi1rd/J4qveQmv02umUM/OLnOh6LrH8A dKmE7rc8Rl/Xb895H9RgunWnqHTm8Cv9K1ZPFhyQ78JWlHzd6moPnE1a8wiY6qwk5RC8 CcP7N4Xep8eDtY17MG3nMhW+gp3m59n1wEteKwhQHDLINslwiZK9SePY4/1jsIi5aRUb aCSjWnMGUUQPjC+Ni1TX8S+FDOeYY6jvU21bVoHU74W/nD4wtuQN3T+98+HE3VagRbuQ R7v5m58zE0nwxJAutu8m0MMRqzU5ccaUEMTyffzxrFt8DPmciWZV5m+dfGVMW3Nprgjh JP6A== 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 m11-20020a17090a858b00b001e87c97ce10si9010439pjn.133.2022.07.01.01.08.17; Fri, 01 Jul 2022 01:08:30 -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 S234911AbiGAHaq (ORCPT + 99 others); Fri, 1 Jul 2022 03:30:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230523AbiGAHan (ORCPT ); Fri, 1 Jul 2022 03:30:43 -0400 Received: from mail-qv1-f46.google.com (mail-qv1-f46.google.com [209.85.219.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAED36B816; Fri, 1 Jul 2022 00:30:42 -0700 (PDT) Received: by mail-qv1-f46.google.com with SMTP id cs6so3346520qvb.6; Fri, 01 Jul 2022 00:30:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YU1XddcO32RLHJVgcyV4xbGLKtUqtr7Z4CGj+gDtTi4=; b=VkpdRWCRntWC8WiwirkMoru7TKi6USC/NtwS2PZ4hGyli2lDhw88rAPX4qj4kNGy92 bOPCi/3NfuwYw+ZD5l58OlDRV6TBSm3nrzyJhYe5YtnavvxB7Er4qj9B2enXoxKffNML 8LdlKKoAP7lHt6RHVfftT2Y5CrXXwDA2Pgk/0B2I7zZDT8Ncsr2oeXznWIHoQH0i53R3 dNtRAndUEnchZtHYhrfZPp9PSKz6x24/m26Y1xR2MF7TANjABtMAyFVVmyEV8x//UjmM qZYummJcpHySLdxM6tSQ+dwlkbl9IVN/Ot+1Mj4AcSYQcLDVOcDwb2tZuYwe50b4YCUS 2YOQ== X-Gm-Message-State: AJIora+5XdTQQ+EqLTpeKUXj5kJBtCODY43VrAiMkEpfQ7g9x7pLiOka APBsfPt+osBwL7vz47kbMC4iqDl/18eB3A== X-Received: by 2002:a05:622a:3ce:b0:305:2667:5103 with SMTP id k14-20020a05622a03ce00b0030526675103mr11208027qtx.7.1656660641568; Fri, 01 Jul 2022 00:30:41 -0700 (PDT) Received: from mail-yw1-f171.google.com (mail-yw1-f171.google.com. [209.85.128.171]) by smtp.gmail.com with ESMTPSA id v2-20020a05622a130200b00304e47b9602sm15428507qtk.9.2022.07.01.00.30.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 01 Jul 2022 00:30:40 -0700 (PDT) Received: by mail-yw1-f171.google.com with SMTP id 00721157ae682-31780ad7535so15241047b3.8; Fri, 01 Jul 2022 00:30:39 -0700 (PDT) X-Received: by 2002:a0d:c787:0:b0:31b:a963:e1de with SMTP id j129-20020a0dc787000000b0031ba963e1demr15110386ywd.283.1656660639601; Fri, 01 Jul 2022 00:30:39 -0700 (PDT) MIME-Version: 1.0 References: <20220601070707.3946847-1-saravanak@google.com> <20220601070707.3946847-2-saravanak@google.com> <4799738.LvFx2qVVIh@steina-w> In-Reply-To: From: Geert Uytterhoeven Date: Fri, 1 Jul 2022 09:30:28 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/9] PM: domains: Delete usage of driver_deferred_probe_check_state() To: Saravana Kannan Cc: Alexander Stein , Tony Lindgren , Greg Kroah-Hartman , "Rafael J. Wysocki" , Kevin Hilman , Ulf Hansson , Len Brown , Pavel Machek , Joerg Roedel , Will Deacon , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Linus Walleij , Hideaki YOSHIFUJI , David Ahern , Android Kernel Team , Linux Kernel Mailing List , Linux PM list , Linux IOMMU , netdev , "open list:GPIO SUBSYSTEM" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi Saravana, On Fri, Jul 1, 2022 at 2:37 AM Saravana Kannan wrote: > On Thu, Jun 23, 2022 at 5:08 AM Alexander Stein > wrote: > > Am Dienstag, 21. Juni 2022, 09:28:43 CEST schrieb Tony Lindgren: > > > * Saravana Kannan [700101 02:00]: > > > > Now that fw_devlink=on by default and fw_devlink supports > > > > "power-domains" property, the execution will never get to the point > > > > where driver_deferred_probe_check_state() is called before the supplier > > > > has probed successfully or before deferred probe timeout has expired. > > > > > > > > So, delete the call and replace it with -ENODEV. > > > > > > Looks like this causes omaps to not boot in Linux next. With this > > > simple-pm-bus fails to probe initially as the power-domain is not > > > yet available. On platform_probe() genpd_get_from_provider() returns > > > -ENOENT. > > > > > > Seems like other stuff is potentially broken too, any ideas on > > > how to fix this? > > > > I think I'm hit by this as well, although I do not get a lockup. > > In my case I'm using arch/arm64/boot/dts/freescale/imx8mq-tqma8mq-mba8mx.dts > > and probing of 38320000.blk-ctrl fails as the power-domain is not (yet) > > registed. > > Ok, took a look. > > The problem is that there are two drivers for the same device and they > both initialize this device. > > gpc: gpc@303a0000 { > compatible = "fsl,imx8mq-gpc"; > } > > $ git grep -l "fsl,imx7d-gpc" -- drivers/ > drivers/irqchip/irq-imx-gpcv2.c > drivers/soc/imx/gpcv2.c You missed the "driver" in arch/arm/mach-imx/src.c ;-) Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds