From patchwork Wed Feb 21 23:30:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saravana Kannan X-Patchwork-Id: 20761 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp1357426dyc; Wed, 21 Feb 2024 15:32:19 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW0rHv2SNEs/56xPOR5y/5fOYW0tKfkqwtkmGPQHzuvl2DpvDxgXXP7/hlMT1NQTQ+JfzQo466rNF6w33aZl0qod6dIAQ== X-Google-Smtp-Source: AGHT+IEwsdfX/P+UQSRMMBcFgbt66NSQoc91Qxq9bD+fci6zUcMvN8rF1G+ywGGeU34TJ6b6nmuT X-Received: by 2002:a17:903:2449:b0:1db:e74b:5bb4 with SMTP id l9-20020a170903244900b001dbe74b5bb4mr1268721pls.14.1708558339417; Wed, 21 Feb 2024 15:32:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708558339; cv=pass; d=google.com; s=arc-20160816; b=O2ifWlJP394iTPa0aprKrdzl39/y1nsWV3zEV8lIi5kbcm9vG1nA2s/ywL7MnAe23V rlJGTv94t9foOqivf5sGzXl6JwJC9M0FhOrqIby2Rtcc7kVPhhTo3WplVEhHgA9iFIIN XSUCsieoJbTvSrP2HeVwi7PSRLvLowdpH2vZEy4gHHkoAT5TZmGPatmtIjmKyiZvTOga ASnEM3ypOkoKyk+R8dktMsbTiD2T8cm2BLCJ5SWS1v334HxY1VjvsnrrkeHDP8K+Pn5c upf+DoB0NUSiQu3GiRcC8M1fIhL+FhY9g08SLKlmkq5DR+utMTKMEOPoUsXyw08nmtW7 GHqA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:date:dkim-signature; bh=RsJ1fv6sfnN74ztB0VWfE18M80nrvJ6wlqEGStg9ZSY=; fh=Dk0SrSSjEMmnTWl7i7rWRz8uOMGrgcQRd0NY7EfA55k=; b=gxvFmjsuv9b4WYR4R/JYZUQlHaFbD8sa9bdf+OKWzn+j2yH4MRa4wlVSRiI6qZ9v48 adeFEdSVHHucWIn9p6RumO2Wt9sZ70g0KfSI6Suh7UG75AKUvrB4itz01BQiXcozikmU gj7pF1MB2bFmxXOukWtRfShOYiTl7+DhDDuweRzDUNrnVUUpIJwgFKS3bHUr48JBwFb9 jBgrD3AkfvM0ffamaUYa9SqiXn3pqq4AKXLL+zoR85dcy1wj0gNIFUhmKMGkIXJi1VaY allbFbkHOWF9M4j30ljfi0Zo8fS1oYCQRpmLXUQdSUVa3es4yMvculFv8/LmDTeU2GBk expg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="pGG5W/pC"; arc=pass (i=1 spf=pass spfdomain=flex--saravanak.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-75655-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75655-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id u7-20020a170902bf4700b001dc41a33ad0si940284pls.491.2024.02.21.15.32.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 15:32:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75655-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="pGG5W/pC"; arc=pass (i=1 spf=pass spfdomain=flex--saravanak.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-75655-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75655-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 3B957B22822 for ; Wed, 21 Feb 2024 23:30:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EC8C912BE9E; Wed, 21 Feb 2024 23:30:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="pGG5W/pC" Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6CEFC1E485 for ; Wed, 21 Feb 2024 23:30:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708558234; cv=none; b=kumvnvQpiohWVYiuMo/iMfzQuM/Sh8xF2t1Xwi2pfZnPKI79K0s9rbRHrsHdKIzFcqDLSTGgmkUek25VdfLgMVRGeFJpdtD3mvUiZBzd4frtO8v02/6fr7C5QVnEV7Mjc2qJBcdk2TxCFwOAHXRUMBDhJJ2HyH9zjw4/EegYHbM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708558234; c=relaxed/simple; bh=rMfghQHSrf66m2xYpU7sUmwUlSg6uFRoFfJUQDk9JaI=; h=Date:Message-Id:Mime-Version:Subject:From:To:Cc:Content-Type; b=YluQUkY6mUCKqlKUs36nA6DNy5G1ln3wazKT2C64XSGDlRPwA5FA9S4v2fhaG2KOe5f5g7kwq8wXyOzKqrwVByFOWek6oDDKvbP9tqovyZQ3k+VXn+DG/F9c85Jjt6yzzVSCGZYloZjUt0ssLKpZc6NCIIbzx/s91mOwHrk3c5g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--saravanak.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=pGG5W/pC; arc=none smtp.client-ip=209.85.219.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--saravanak.bounces.google.com Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-dc647f65573so12745893276.2 for ; Wed, 21 Feb 2024 15:30:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1708558231; x=1709163031; darn=vger.kernel.org; h=cc:to:from:subject:mime-version:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=RsJ1fv6sfnN74ztB0VWfE18M80nrvJ6wlqEGStg9ZSY=; b=pGG5W/pCpowgB90F6DOeurXkM0sDYn2DGbPwU6oOalRQK0gqUbERNIDe39Oow7i9re 3mkubDSPCtNrY3OhAfrvGEQ0ZVhTyoWAIUkDPVf3oDbuezJtVl/8fntnz30jA/aqyspz KgY59ihna18AXxR+UdUCaYRBTqGDJDL6oTHifkDfNZpCYOxdpVALsfnPYqt7NfQl93b2 O6ZHzLkzTnOMkNPiyxm+vJS2dGIvo1mZoBJorw5FEoje2jSQVIOAz5E5bPfZgQJ6RdvQ TqoijWnpUN7/nEqoYUftm9oM3yIKwTvD/VdxiTuCi1T+CqIH7Y/iJYLcIS0bIYqPpwWC tAig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708558231; x=1709163031; h=cc:to:from:subject:mime-version:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=RsJ1fv6sfnN74ztB0VWfE18M80nrvJ6wlqEGStg9ZSY=; b=qY90ixLIGfZrFJxKE1gNMSuAY3s4sOCJGhnHxmiBFK4Z0pnI4myRY8LzIjHjhFVHMb w1BPvUlDBK875yxTb16gaXIh1wOcEXWeuEeSup+np8dIc3JvqU061AkIDJElBSh+H0po +obKradKdDAP3NuIWB6N9wnI4cxN5ssl3TNxS1E+d5h6SIYYoESlbxq+6QkMpU0FRbs/ IiEE7Fi1ieAIE54P3WaSE8U2dYoCuvtg4VxhRyWL486mR2Q37nMEk7HcDE4crQNk5rBd uL7BLftbEebpnpf33/1hop+z0NGteY9EszE/Jv2AbZzmFbUlNyK6Z1H8NhCAm2bg1drH AnnQ== X-Forwarded-Encrypted: i=1; AJvYcCXLvSta99ERPhONv3+g5iqgyj6vqQwA+lagV57CnsMursxOJrKZel761wRywRY8oxc6elbR89RXphIUE6M4lpaLJay6/fChihGz8lc8 X-Gm-Message-State: AOJu0YzxpLxghtSD77kbW9H0G/+2/vyg7/PAfr5HfLhsY+TEvnXFGRY2 7XPNtiZAnwifDnJdAmLdtLOj9sGAYKAzWlSlWUL3w9Q1CEuhkpx1EcJjcyykWWeN/Y9uqBN3zg1 2AWRJ9REDk7Jidw== X-Received: from saravanak.san.corp.google.com ([2620:15c:2d:3:4e1e:336a:2b30:13fe]) (user=saravanak job=sendgmr) by 2002:a05:6902:1024:b0:dc7:48ce:d17f with SMTP id x4-20020a056902102400b00dc748ced17fmr199215ybt.10.1708558231444; Wed, 21 Feb 2024 15:30:31 -0800 (PST) Date: Wed, 21 Feb 2024 15:30:20 -0800 Message-Id: <20240221233026.2915061-1-saravanak@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.44.0.rc0.258.g7320e95886-goog Subject: [PATCH v3 0/4] Add post-init-providers binding to improve suspend/resume stability From: Saravana Kannan To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , "Rafael J. Wysocki" , Ard Biesheuvel , Frank Rowand , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus , Len Brown , Saravana Kannan Cc: kernel-team@android.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org, linux-acpi@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791553269007643044 X-GMAIL-MSGID: 1791553269007643044 This patch series adds a "post-init-providers" device tree binding that can be used to break dependency cycles in device tree and enforce a more determinstic probe/suspend/resume order. This will also improve the stability of global async probing and async suspend/resume and allow us to enable them more easily. Yet another step away from playing initcall chicken with probing and step towards fully async probing and suspend/resume. Patch 3 (the binding documentation) provides a lot more details and examples. v2->v3: - Changes doc/code from "post-init-supplier" to "post-init-providers" - Fixed some wording that was ambiguous for Conor. - Fixed indentation, additionalProperties and white space issues in the yaml syntax. - Fixed syntax errors in the example. v1->v2: - Addressed Documentation/commit text errors pointed out by Rob - Reordered MAINTAINERS chunk as pointed out by Krzysztof Saravana Kannan (4): driver core: Adds flags param to fwnode_link_add() driver core: Add FWLINK_FLAG_IGNORE to completely ignore a fwnode link dt-bindings: Add post-init-providers property of: property: fw_devlink: Add support for "post-init-providers" property .../bindings/post-init-providers.yaml | 105 ++++++++++++++++++ MAINTAINERS | 13 ++- drivers/base/core.c | 14 ++- drivers/firmware/efi/sysfb_efi.c | 2 +- drivers/of/property.c | 17 ++- include/linux/fwnode.h | 5 +- 6 files changed, 142 insertions(+), 14 deletions(-) create mode 100644 Documentation/devicetree/bindings/post-init-providers.yaml