Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp85189imn; Tue, 26 Jul 2022 23:46:53 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t4N7XMVBDdzLzcRAHUPkcmqxGrBZxrXwGj2oAODm/p83nO/utZM+zLWITqOHwToUFurMQ+ X-Received: by 2002:aa7:9519:0:b0:528:c2e0:b7ae with SMTP id b25-20020aa79519000000b00528c2e0b7aemr20678507pfp.39.1658904413462; Tue, 26 Jul 2022 23:46:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658904413; cv=none; d=google.com; s=arc-20160816; b=tUgWeRnNpaHnBaTnrnWwNtt7no31EmzI3aOu6BWY5SnKQ7VqUpcsTEKKe/CtI7y6Lt q30PYcf3PqSNsb4eGKkfP5AHohadz30OyHVzcqFh7dqu0o4tQZnZYsj+OuTfnMrgi48X 7eC+RyDOHlTjCEqtYuZHfHgWXimWk0QJjgDFBX2NLZD9NI8X926tayBLmEXHvMf5AbKb 5cQ3NCT85TlcYswjOHinBwP3FKq9jwVoxokyB/SlO/66SKBuEjIF8n1ZlXYVMf+lgsek eSUUCDWmLdWMVlQqvb0ATYhAZx2Xu8hvW6mxPWDFrNUyOnDM6spwUdI/rWxUusAwv4S2 LSnQ== 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:mime-version :dkim-signature; bh=7iMcplvFrFuS0xFVwfzryrkAohaVYhMLEybsQJs2rsA=; b=sxPiQnXKID3uQF5KWJ/PQuVKkWPW6VJ57GwJadMBptiUEIupn/k+318JmC5iRnox40 dpZY690yDkGIK/maO6up/t1VG+ow2is7ORe7smjQ8rXS9ru/jArV1O3zVLZoHJlsEX51 RWpBlPGEd5bpAF8ZfdfbuRuSC+wfdNUcfqD756FUpydNFfnubbaYZKZzzjb8AUBxS2ri DCkLHmQcwRBylJ55A5fh4gFQxwmc4nqdpvDnuztGVyLo0OZpTlAbQvdRzuW2zy4HH1ax 5zE3yJOB70kzvOUhcuuvr+4uRQExdNqyiQ41CPpK1gcO2q3tgG4d98tf9KcHVBtH0gqo /yog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wdNXLAVs; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p22-20020a056a000a1600b0052bbbd3bbd2si1772112pfh.248.2022.07.26.23.46.37; Tue, 26 Jul 2022 23:46:53 -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; dkim=pass header.i=@linaro.org header.s=google header.b=wdNXLAVs; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231251AbiG0GpV (ORCPT + 99 others); Wed, 27 Jul 2022 02:45:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230434AbiG0GoW (ORCPT ); Wed, 27 Jul 2022 02:44:22 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EC453B94A for ; Tue, 26 Jul 2022 23:44:10 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id z23so29581007eju.8 for ; Tue, 26 Jul 2022 23:44:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:from:date:message-id:subject:to:cc; bh=7iMcplvFrFuS0xFVwfzryrkAohaVYhMLEybsQJs2rsA=; b=wdNXLAVsJZXFL2rKCa3aEnt3bq3gpHY9nBUggNpE8tRM8PxMeNxMk/ZwyuT71cBCtZ rTugaTBqG8u902DbJmnCeCRsDXDNc4JYq/CxgSRXx55cTVXN/uEU8DYRnmEhrv1IThR8 AG1awXakW1QzpqwZsNlS7sbL4ekY2yRJeq0STmDhS1oxJDaIR05WFq2H1f8xFWSg+hmB wZjuUG4uVj+LPb7oAMyFhmaG3SEA2388vp06upiX8Qd01YdZyzYgPkTPezl3edWRvP3q GA0yzKIm/jifVprE02zD3rEpbeCLPB1+DIwtrXQF4a74fW6TY3jV2nP6bQRqoAczVtGz u/Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=7iMcplvFrFuS0xFVwfzryrkAohaVYhMLEybsQJs2rsA=; b=sSkBJpEshGrkPDHcyk1JGSjgYOD5DB/pO3iFS45iP/MJhEIMS0RuvCOE/SZimH4jqW cmNFMqMuSeCDkq1wZzaun6P+FCIPB4vHZpjuiJGLgH5+iNZ61c0xnurwimQIfNMCbqFg tq/g6NDSXmbQqbC0kEWBPi77tbeEPb7wMZrfQVwyca/g7yFrMXRvqEOORPltn+yYz16K bn4XMa1vJ27dxz/RsTbhi3c9jRVLfIO2Tlb6iyIZgKXlRMcjuC2A5KI4rqxmyv8L8MtE u61gaItg4H7u90dZLbv2yacITfutTA6YlUOoMw1ovCc4DFDIaiodp8Ki8RvYZsmUVlZ7 yQzQ== X-Gm-Message-State: AJIora8yfytOik3TxjtQ3YCdsBhNBkYqmrPb/MGNstU7L/PiDtBPWYd5 NuPCwwHJbJwI7vNX4plbzEA7TVTbi+zCJ8eiB7IQ7g== X-Received: by 2002:a17:907:87b0:b0:72f:ceb6:5fd2 with SMTP id qv48-20020a17090787b000b0072fceb65fd2mr12586914ejc.448.1658904248365; Tue, 26 Jul 2022 23:44:08 -0700 (PDT) MIME-Version: 1.0 From: Naresh Kamboju Date: Wed, 27 Jul 2022 12:13:57 +0530 Message-ID: Subject: [next] arm: PM: domains: Delete usage of driver_deferred_probe_check_state() To: Saravana Kannan , Geert Uytterhoeven , Ulf Hansson , Greg Kroah-Hartman Cc: open list , Linux-Next Mailing List 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,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 Linux next arm BeagleBoard x15 device boot failed due to the following commit. The x15 did not event showed any crash log on the serial console. whereas, Linux mainline kernel boot pass. Anders bisect this and found the first bad commit is Reported-by: Linux Kernel Functional Testing commit 5a46079a96451cfb15e4f5f01f73f7ba24ef851a Author: Saravana Kannan Date: Wed Jun 1 00:06:57 2022 -0700 PM: domains: Delete usage of driver_deferred_probe_check_state() 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. Tested-by: Geert Uytterhoeven Reviewed-by: Ulf Hansson Signed-off-by: Saravana Kannan Link: https://lore.kernel.org/r/20220601070707.3946847-2-saravanak@google.com Signed-off-by: Greg Kroah-Hartman diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index 739e52cd4aba..3e86772d5fac 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -2730,7 +2730,7 @@ static int __genpd_dev_pm_attach(struct device *dev, struct device *base_dev, mutex_unlock(&gpd_list_lock); dev_dbg(dev, "%s() failed to find PM domain: %ld\n", __func__, PTR_ERR(pd)); - return driver_deferred_probe_check_state(base_dev); + return -ENODEV; } dev_dbg(dev, "adding to PM domain %s\n", pd->name); -- Linaro LKFT https://lkft.linaro.org