Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1097476rwd; Thu, 8 Jun 2023 12:04:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5r+3MIeE4W5OWUO95L9bIugvPlamVlMIJuyE46sFK/oM21WrBZC0JhCG0vbBPs95LonjlU X-Received: by 2002:a17:902:d38d:b0:1b1:e6a4:2797 with SMTP id e13-20020a170902d38d00b001b1e6a42797mr5818157pld.45.1686251060345; Thu, 08 Jun 2023 12:04:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686251060; cv=none; d=google.com; s=arc-20160816; b=gCIlFUhl3eWph9MEnvslFOrxONSEGkep741rcFHDYMAtg/YAah/lw6kr0T7/uzzzTz kpSgrpluHvtNa/phT1GHrAu1r0BtRDwZZieeyVOS2STnbkgIw41VRezImsCRHHSKyx4R op7UDazoYMLQ71z9sOe8I0OmZuYJJwoYloolmzS17U1xcDqXxTp4byZej3IRZar8vJat QQVFJOrqMJnSpAltEKkhx10YLMatX+EC99QfZbAiHGdt722aMKzZQYyti9vAT4key6vB w0lPRWgKowu5dhWbwxICZ0vfbF9/sDXhuwDYa1jRSh9mpMTlfSHK9rm/ul1FNGUkZGYs o6+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=I6AjDwR0ptMSx+JUF8hl+KxGxvEo5Yse4u2Qkil1oAQ=; b=EFDYzb7/NhPt/+kc2dBbsUrGj+OSPNWDunX5XHfZtGPH9oGL1rEvnzx3UQ25sjTPBC ndLKHqMrgRemwxcGLE43TupBzfRddPUtynMaNty5igowZvRtz+HQCzCoj3wwW/lP3y1n yy/niEkPUZNVhpIHv7ZY+NK434ocm2TmBB9ogGrSRoQtEPVVML8qM+1puh8F4gYW1CuZ 4TAnIFW+Pbx26IT3pSsvpNUiweF6cDKYjMErDkRmP92XfTk0J3sr+ZjZzaAq0ywPfsnV eiBsonqB/ARkiLfHxksawECpRSbfSJ2O8Ig9QoRvyeiIUdebny6ZidreovTLbdGkvh39 SKEw== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lr8-20020a17090b4b8800b00246f8b06125si3271023pjb.108.2023.06.08.12.04.07; Thu, 08 Jun 2023 12:04:20 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233018AbjFHS2f (ORCPT + 99 others); Thu, 8 Jun 2023 14:28:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231675AbjFHS2d (ORCPT ); Thu, 8 Jun 2023 14:28:33 -0400 Received: from mail-il1-f171.google.com (mail-il1-f171.google.com [209.85.166.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27E63C3; Thu, 8 Jun 2023 11:28:32 -0700 (PDT) Received: by mail-il1-f171.google.com with SMTP id e9e14a558f8ab-33e5054ba6fso4369615ab.0; Thu, 08 Jun 2023 11:28:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686248911; x=1688840911; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=I6AjDwR0ptMSx+JUF8hl+KxGxvEo5Yse4u2Qkil1oAQ=; b=bIgW73jNQ0yZBtkyCH+bQ3vvS3IOFYxKD6zm3K4TNbP4elyjkMsUAuARXmv8uRJh4/ I/U2IlD6y2YM6fRlrh07WavDrt1mEzLiPShzM/ELrUXeTyLvfprvN0yHvg5GFAR0L7EK DESIU6W0h7d994uWzU63FNHqpzbnIMhmzijqZPFO4F2ngyiTp9W9qM4b4gdcN6yomBVy /5T4stdaTByDJKvfk9U9Rq9FL5dj9L7v3lScv8jXu6stopriz9StOn9sMMzCru1Ajb/u skdEMFk7YCXBIoD3zw3esxhJVCMD6eu0hApQO89BdSv1M/vVK9X35AQn0B7uSjJsnzjv m1tw== X-Gm-Message-State: AC+VfDwnoetpL4CW8vPNuJk9Llj37IjhIQwjSfMuv/sIp2zWghCU4AAj IGPuBdM8PXX+qp6/ah/elqadsC/Jng== X-Received: by 2002:a92:c908:0:b0:33b:abaf:d493 with SMTP id t8-20020a92c908000000b0033babafd493mr12283395ilp.16.1686248911076; Thu, 08 Jun 2023 11:28:31 -0700 (PDT) Received: from robh_at_kernel.org ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id l15-20020a92280f000000b0033842c3f6b4sm541876ilf.83.2023.06.08.11.28.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jun 2023 11:28:30 -0700 (PDT) Received: (nullmailer pid 3198330 invoked by uid 1000); Thu, 08 Jun 2023 18:28:28 -0000 Date: Thu, 8 Jun 2023 12:28:28 -0600 From: Rob Herring To: Anup Patel , Saravana Kannan Cc: Palmer Dabbelt , Paul Walmsley , Thomas Gleixner , Marc Zyngier , Krzysztof Kozlowski , Robin Murphy , Joerg Roedel , Will Deacon , Frank Rowand , Atish Patra , Andrew Jones , Anup Patel , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, iommu@lists.linux.dev Subject: Re: [PATCH v3 02/11] of/irq: Set FWNODE_FLAG_BEST_EFFORT for the interrupt controller DT nodes Message-ID: <20230608182828.GA3183987-robh@kernel.org> References: <20230508142842.854564-1-apatel@ventanamicro.com> <20230508142842.854564-3-apatel@ventanamicro.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230508142842.854564-3-apatel@ventanamicro.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,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 +Saravana On Mon, May 08, 2023 at 07:58:33PM +0530, Anup Patel wrote: > The RISC-V APLIC interrupt controller driver is a regular platform > driver so we need to ensure that it is probed as soon as possible. > To achieve this, we mark the interrupt controller device nodes with > FWNODE_FLAG_BEST_EFFORT (just like console DT node). > > Fixes: 8f486cab263c ("driver core: fw_devlink: Allow firmware to mark devices as best effort") It is good practice to Cc the commit author of what you are fixing. > Signed-off-by: Anup Patel > --- > drivers/of/irq.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/drivers/of/irq.c b/drivers/of/irq.c > index 174900072c18..94e1d9245cff 100644 > --- a/drivers/of/irq.c > +++ b/drivers/of/irq.c > @@ -535,6 +535,16 @@ void __init of_irq_init(const struct of_device_id *matches) > INIT_LIST_HEAD(&intc_desc_list); > INIT_LIST_HEAD(&intc_parent_list); > > + /* > + * We need interrupt controller platform drivers to work as soon If it's platform drivers/devices you care about, then perhaps this should be done when platform devices are created. > + * as possible so mark the interrupt controller device nodes with > + * FWNODE_FLAG_BEST_EFFORT so that fw_delink knows not to delay > + * the probe of the interrupt controller device for suppliers > + * without drivers. > + */ > + for_each_node_with_property(np, "interrupt-controller") This function only operates on nodes matching 'matches', but this operates on everything. It does make sense that if we init an interrupt controller here, then we will surely want to probe its driver later on. So maybe just move setting FWNODE_FLAG_BEST_EFFORT within for_each_matching_node_and_match() below. > + np->fwnode.flags |= FWNODE_FLAG_BEST_EFFORT; > + > for_each_matching_node_and_match(np, matches, &match) { > if (!of_property_read_bool(np, "interrupt-controller") || > !of_device_is_available(np)) > -- > 2.34.1 >