Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3988625iog; Tue, 28 Jun 2022 06:57:22 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uqb/5vbZsIk9nLSGGU31Zy6Ec/WicbPnySCVw8UzB8/u+RlNzFSrOpdIG+NzPHE36jljvW X-Received: by 2002:aa7:91d3:0:b0:525:1f61:dacf with SMTP id z19-20020aa791d3000000b005251f61dacfmr4902801pfa.40.1656424641849; Tue, 28 Jun 2022 06:57:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656424641; cv=none; d=google.com; s=arc-20160816; b=OsJ/ZhMbII+VNtJo7ryjbleQYcBJUP1aC5pKzR1bh6tPa7cXGehnrQmTinP1FGXb8S DRCexqGDXHNn+QA2qUz/95wM430m4UTuUIu1KRFiig5nCemYA/MVOBELM24C2fbSc+mv tCRKgVjHeNEFOJxgit1ba5He9ZnnM1I2krdH4vJkrFBU7eLYM2SzlqJix0lTAFO+3/UI E0h9BfuXm2QNhM3Ypn4Iy/SiWJpj9FBNY8XaWwgjqBMvrbdfRrz7Xj8KwMK/kKIY0hjk H6u3K+dn0DzKp/GwSmWtpcKaurtQMx0zeQRI31RpMTH5wYDTFLr10DZ9ioSSCy6CJq2W LMiA== 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=l0lBZBoRWVZwKeLsg5bhh62sfkY43Fuz7vbWyvz07jo=; b=gCsMvxSxoAGF5P9HS2Rxl5tCyjAa49AzOt0NWXrhTx6iKUsldB2c/yxubbF+kemaEB 9SyBWq6A1N3aS2Si63jcRwQJL/FdFjfyskOjEPu6saQDxX8amyMdN3xJCV50uUDnf3qX QTtz5gWw5qk1uYjr/4Zh9YT8Bfhjnjv7oMLOFwxIs3Q1QffqVFdXmO1a9VYmvUQU4ZoQ D4b9hA2kZzMoXAMU4Te3rge9WRbtA7X+wkX7nT1VqoSUExFKmJ2EErbQgw5vUuuFpoy2 eu4mBklTxg3UnzhcBmf5+ElZUppm75cXPK5wblKZ1iDJQsMAog/lGIDBwaYefpm/cFGJ 6twA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hGw9T6Ca; 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 h191-20020a6383c8000000b0040c624bf6f7si17516347pge.409.2022.06.28.06.57.10; Tue, 28 Jun 2022 06:57:21 -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=hGw9T6Ca; 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 S230229AbiF1Nlr (ORCPT + 99 others); Tue, 28 Jun 2022 09:41:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231733AbiF1Nlp (ORCPT ); Tue, 28 Jun 2022 09:41:45 -0400 Received: from mail-yb1-xb2b.google.com (mail-yb1-xb2b.google.com [IPv6:2607:f8b0:4864:20::b2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94AD32A738 for ; Tue, 28 Jun 2022 06:41:43 -0700 (PDT) Received: by mail-yb1-xb2b.google.com with SMTP id r3so22290121ybr.6 for ; Tue, 28 Jun 2022 06:41:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=l0lBZBoRWVZwKeLsg5bhh62sfkY43Fuz7vbWyvz07jo=; b=hGw9T6CarZQ/NMBim5LFKd5YTY/o2ySRURtSkju9ltnp+I2dfsm1E743dkEP7vIdI2 EF0DRNKbp1NoePxE8d03JMmSXIQyxTYmcA6StyWwY4r+YQPVJD8cCVXjq4KFryi4BOBX R1mZO/ER1L2SAM2BBGv6AMAXI5Jfk4vSpWXci5dnkjMyWFiBRxV+lukWKp040ydV0UYw pi8tg+vw420tIDHBWpl4HD2i87IuVJPBeZxJfEHlBvY0Am4KybIx85T311V7Sc3PDZDd 4o1lrjtE8IrlXi97SmhrBQzUpnLpRq4Op7bcrYUqg0s8X0We4xxPIjbi6qZfZCCR6FAX 0Wjg== 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=l0lBZBoRWVZwKeLsg5bhh62sfkY43Fuz7vbWyvz07jo=; b=1fP5YgppQexJAucuHsWF5bctCltfSgCYyOLpUuj21p9oHQSVddYvfa1Z+XuRKhP8Fx mdUvqy8PHKYJyozNTBIzuvoSXgqA95wDOyY3MCn6sur+oyIJ0PcCtTYvPCUd32GRO52B Q+CD6GuOrOX7gYSWagkHjWACxPivIjGCkoZbcat6ApudseVYNOITx9WquqOWCpGqPPNr bCmxFoNJXYsh+qAiUgVhpGliZVOMADJc21dNNpbtsTKA2n8jSuhEJ8tltqwKWAgK3Y9e nY1vEt2n0d7HOQCD8GG0Dp94Yea7oijMS5mJv1/5h/e96PgxkXSzTMM1PyDmlceuYJNN bXyw== X-Gm-Message-State: AJIora/m7mr12mfn0L1WzWK31flLnpSueLwiSeoHWDqEHlf1tFDCFqXW O3S5gS1WggODNKkJzGOpzZ1MQYO4A7+mA0DCJn3mdQ== X-Received: by 2002:a25:1f57:0:b0:669:b6fa:167e with SMTP id f84-20020a251f57000000b00669b6fa167emr20917137ybf.295.1656423702377; Tue, 28 Jun 2022 06:41:42 -0700 (PDT) MIME-Version: 1.0 References: <20220623080344.783549-1-saravanak@google.com> <20220623080344.783549-3-saravanak@google.com> <20220623100421.GY1615@pengutronix.de> In-Reply-To: <20220623100421.GY1615@pengutronix.de> From: Linus Walleij Date: Tue, 28 Jun 2022 15:41:30 +0200 Message-ID: Subject: Re: [PATCH v2 2/2] of: base: Avoid console probe delay when fw_devlink.strict=1 To: sascha hauer Cc: Saravana Kannan , Greg Kroah-Hartman , "Rafael J. Wysocki" , Rob Herring , Frank Rowand , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus , Len Brown , 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 , 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=-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,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Thu, Jun 23, 2022 at 12:05 PM sascha hauer wrote: > Also consider SoCs in early upstreaming phases > when the device tree is merged with "dmas" or "hwlock" properties, > but the corresponding drivers are not yet upstreamed. It's not nice > to defer probing of all these devices for a long time. Actually this drives a truck through the entire approach in a way. It is perfectly legal to have a device tree with dmas specified but leave them unused in the operating system. DT just describes what hardware is there, it does not mandate that the OS implement drivers for all of it. This approach really needs that the resolution mechanism is aware of whether: 1. a driver exist for the resource at all so it will eventually resolve 2. if that driver is compiled in or module at all (IS_ENABLED()) 3. If the resource should be grabbed early or optionally later such as dmas for console UART Only then can the mechanism work in the generic case. Yours, Linus Walleij