Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5250822iog; Wed, 22 Jun 2022 15:41:17 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u/P5ivHUxpxOjVKi/Uh4LeOqygDrhc0uwgTnFS7n5yN9ayN6fh1JxzDRHlKZKXBQpakqj8 X-Received: by 2002:a17:906:9f0c:b0:712:1b55:37e1 with SMTP id fy12-20020a1709069f0c00b007121b5537e1mr5244368ejc.69.1655937677684; Wed, 22 Jun 2022 15:41:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655937677; cv=none; d=google.com; s=arc-20160816; b=05IYtvYIlybiFemsgb8o2gaSL71y9hbPVXM5L3hNfSSdA6zhI9eyJGvxX3O9uadPZO 85fioYLNXCWTY/xHqpgxRVIK2q46INr4e7SXiwQp1KW99D0syO60hpD8v10CwVsivGr+ OwFY8jgp3FxwySWcjR2H8O469hzVgtg8uA1b8m9jUaWLV6Ef/8JHvV9OFmcIlfQE8T8s 6WQMHdsETEBXqyqcfoWaGHSFb1EzcHesH9iaDSfR2aw6KjNFC9O/wzjB5Z0Iqns08OzG JPIaKJ0jOFdouR9VOiyLMPj2b3Z5Y6z0V1biDphudHz3SVB6KkCZdmQ0XMu09kVcW54n 6E1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=Ah2iRj02YiwPhgw+fxQ8yR+iMVe2r8+mhYVV0rIvZow=; b=B7teoLSeP2Oo00J8DBwiJuJYQex+JvwcMzYBBuxhwEtziVcEeNFbBNagBxPVHhc4Q2 xy5rFRlb0DzZ0fEX0Bhkn+Eb2NLELUZwmFIMLw2GRu3+0ih946rHg4SNcwOQgTLeUVJQ fo9TFHgtB80Vu8ZWs2CSJrQlMzO3RMDdhnLc82xPtkjI22rdpa9sV9ngw0puR6ukvsJz VMeuD72Z/w/ZbjPFesxG3cwlqqst+7/e+5pSqghRNCwg4l0WYkGfwm0SyCq+vEGxb1/S oL1K3Cy2KnTywz9cHtt6pHZ+STyqYa3x7EiR78+usuWr0zE5k+XCQ7yvysZzL3T2ldWC uLsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=i3p4bjKE; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id go8-20020a1709070d8800b006ff21848071si18609557ejc.637.2022.06.22.15.40.50; Wed, 22 Jun 2022 15:41:17 -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=@google.com header.s=20210112 header.b=i3p4bjKE; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358418AbiFVWAF (ORCPT + 99 others); Wed, 22 Jun 2022 18:00:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349226AbiFVV7f (ORCPT ); Wed, 22 Jun 2022 17:59:35 -0400 Received: from mail-yw1-x114a.google.com (mail-yw1-x114a.google.com [IPv6:2607:f8b0:4864:20::114a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7605714081 for ; Wed, 22 Jun 2022 14:59:23 -0700 (PDT) Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-2fed274f3fbso154272957b3.17 for ; Wed, 22 Jun 2022 14:59:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=Ah2iRj02YiwPhgw+fxQ8yR+iMVe2r8+mhYVV0rIvZow=; b=i3p4bjKEtbMXzQEuzp8oUcL2dOBUx5t3ouIxH3WFaHxtQBesxVZ95zRpRsbv0rotKc DCfLguFUFd9z7qjx0Dt8NAVaz0jRnB1K5Fh9Yi5/ZA7DG9FgX6RK9DwoMGuX/btXSeNY jRizfq/806YnP4p7qCTtBJ9GK0YOoKEvQNuF2KL6ayR3OaHneYEgbFUH1cZ3RoYx5Y7f 2KbJ9cRY3K9bypygWX7MY4tpexszDMtIlE99YgGPEudPytCeem3ndf6dqYBx6cC19AlU 1k9DIcVe8I+qgmnTG95ADMGi1utSftyTTlGvgR8EUYa2yoeI/p7XaS4EVakP4MZtD+7U xgkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=Ah2iRj02YiwPhgw+fxQ8yR+iMVe2r8+mhYVV0rIvZow=; b=cag3vF4m1AqI3KALqiuNxRtMVEAjuuSvOLxqDq6xfXn7DWMb38Or4AeC8EXsfrd525 W3LVQQLuSgrnFFSB77EraW8ZNg8vYBvZg9+hWfuIxVTafGEVT+ROLCF/Dh5CMIVVn/DX pLPbMWPZqOnSIlxsCLgXMow5D6FOisJLRCgk3KcpB0cwCGpoKPpxMtohxrF4ivhqR04t VzXZqj3CUaD0za3Fwb+Sor1I3PIm0mhHEUzfu/4/krP/SdSHRyVwEy8iqqTF98V9Nk05 m5qsr2cjuLVO6VgzJo3DDNs4PqCHwz9X8IgBcmQnADQ2wOtklHvgoyNwi7cQis1FY+Uk 0h5A== X-Gm-Message-State: AJIora9OPU6NGQiy7xN0dsu/+U46QmkPwol5zVo34iiIXOV7rJVJMEhk H5g/aEtLmklBsKuLUjJveBNzW3xLZ4NZtyM= X-Received: from saravanak.san.corp.google.com ([2620:15c:2d:3:be1f:89ac:a37d:6bb4]) (user=saravanak job=sendgmr) by 2002:a25:6a46:0:b0:669:1da2:ba1d with SMTP id f67-20020a256a46000000b006691da2ba1dmr5894467ybc.163.1655935163161; Wed, 22 Jun 2022 14:59:23 -0700 (PDT) Date: Wed, 22 Jun 2022 14:59:11 -0700 In-Reply-To: <20220622215912.550419-1-saravanak@google.com> Message-Id: <20220622215912.550419-3-saravanak@google.com> Mime-Version: 1.0 References: <20220622215912.550419-1-saravanak@google.com> X-Mailer: git-send-email 2.37.0.rc0.161.g10f37bed90-goog Subject: [PATCH v1 2/2] of: base: Avoid console probe delay when fw_devlink.strict=1 From: Saravana Kannan To: Greg Kroah-Hartman , "Rafael J. Wysocki" , Rob Herring , Frank Rowand , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus , Len Brown , Saravana Kannan Cc: Sascha Hauer , Peng Fan , 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 , kernel-team@android.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, iommu@lists.linux-foundation.org, netdev@vger.kernel.org, linux-gpio@vger.kernel.org, kernel@pengutronix.de, devicetree@vger.kernel.org, linux-acpi@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL 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 Commit 71066545b48e ("driver core: Set fw_devlink.strict=1 by default") enabled iommus and dmas dependency enforcement by default. On some systems, this caused the console device's probe to get delayed until the deferred_probe_timeout expires. We need consoles to work as soon as possible, so mark the console device node with FWNODE_FLAG_BEST_EFFORT so that fw_delink knows not to delay the probe of the console device for suppliers without drivers. The driver can then make the decision on where it can probe without those suppliers or defer its probe. Fixes: 71066545b48e ("driver core: Set fw_devlink.strict=1 by default") Reported-by: Sascha Hauer Reported-by: Peng Fan Signed-off-by: Saravana Kannan --- drivers/of/base.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/of/base.c b/drivers/of/base.c index d4f98c8469ed..a19cd0c73644 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -1919,6 +1919,8 @@ void of_alias_scan(void * (*dt_alloc)(u64 size, u64 align)) of_property_read_string(of_aliases, "stdout", &name); if (name) of_stdout = of_find_node_opts_by_path(name, &of_stdout_options); + if (of_stdout) + of_stdout->fwnode.flags |= FWNODE_FLAG_BEST_EFFORT; } if (!of_aliases) -- 2.37.0.rc0.161.g10f37bed90-goog