From patchwork Thu Feb 22 03:46:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saravana Kannan X-Patchwork-Id: 20769 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:aa16:b0:108:e6aa:91d0 with SMTP id by22csp14741dyb; Wed, 21 Feb 2024 19:46:44 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWbNM20UIvIsn1umCXfeNpmG6GYUVcnUtkCQhXH9/9eka5Pc48GtbdvYgOTHrl4knr/IKTNw1CddbHnMmLz1z17/oDAbg== X-Google-Smtp-Source: AGHT+IFt4+0+sG1RypNG1xEC2LP6ZgZPUrNdMo7I4XHq/rYsNGy8VOY0BAsqPBl+lQA1FZeyGGJk X-Received: by 2002:a05:620a:4c82:b0:787:982b:a904 with SMTP id to2-20020a05620a4c8200b00787982ba904mr1441958qkn.16.1708573604785; Wed, 21 Feb 2024 19:46:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708573604; cv=pass; d=google.com; s=arc-20160816; b=f7SKWDRVi9R1eo5Lk/uY+Fwxrw6ajd03l116G1XD4lNlRvZ30OO4yn4lUSOWmSCwBn 2qAKuLmFNk87luOrAe6IvwKQyx7eKEoG6aGQItm13JoBxqnuT6lNtR20eWcW469R2Gch mnPYZrbiE/vLttctdpp2tXa3POO1lyssTORGKkfmAcukxVmHpA2VALs9pNWlBuJqnD0u UNJqbIYnEzjxL7JesjmjBLCCQrVTwARyTgCHXWDNjiMw5ELiGXT4Zt2L8W2d6BHrJBZk 2a7f5cjTaeq55f7Sj1RlGg2D8AjxyJxufM6qCRlBHeHRh3xSM411OIWLQ2Q2ypMvMJ13 qy3Q== 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=708QuIQsvoQpwRBXFqGjyGgcNojmh8+A+3U5/P9lDlw=; fh=hLmub7HBark1NTG6HbNTkJwQzFeyoFao215/ohOBg9w=; b=i4SS6jqKWyeohR3vPJch9DiJNl7LZ1lunNLlcatJk2brD8mLjqqG5/rc/i8VNRdB79 b6jv+3UHCXJ28mgiojhM9dgUyyKPBvZUldw4jw55r2mQpLEJTDCFOZviY7Rv+gQeuAOx mrxtp7s2W4B4+NTJ/W/3oSTK+do9r8tFpGNY4NDNc2dPTFSwO935ENOmEuMnVR6cWObE eIR6AaBJD6/MKSbKE3ZwelYRJY2WUQBYbVVkypWHZbYRfcHJOGHig0/UhzCpX+1eYAoE a5AcMPTp3jkjxfXcWdLU3nH5DU2SNVwNiglfGtRiOGloEXMvHkvAHnNkTBTcRyqGiCci 8lMQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=HxIurYKw; 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-75868-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75868-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id vw22-20020a05620a565600b007877d49cb11si4212928qkn.301.2024.02.21.19.46.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 19:46:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75868-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=HxIurYKw; 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-75868-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75868-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 9249F1C22A9C for ; Thu, 22 Feb 2024 03:46:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 477FD17998; Thu, 22 Feb 2024 03:46:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="HxIurYKw" Received: from mail-yb1-f202.google.com (mail-yb1-f202.google.com [209.85.219.202]) (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 2693E1755A for ; Thu, 22 Feb 2024 03:46:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708573589; cv=none; b=HGDr+tjgZYBQkrzYhaCv0Zk7MTVqkE1lX9bjRwe1tPMWDNQPO8+f7wKCBxHzFNf+jeyJRoIx9gc0BLq2c07L2fbhvow+S+OTd45F1aE00AuzH3nieoHKg/Bqzsefl5nZU/+QQPDZGyvYJ4fDuhVbkiKZTueyLhR+ch2655SIpmc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708573589; c=relaxed/simple; bh=vA2pdbQ+LBQGE4JsVOwYzj4zQ+3197cEH10/uV1J0ws=; h=Date:Message-Id:Mime-Version:Subject:From:To:Cc:Content-Type; b=cexTaX1HPR6B4rZUKg90G0khFQI4Bvc24o0d6yJStraPXH5mqr5hFKs3QoKHllw781qxFoc7bZqiQSppcXTUd8EOYBlJQpqS6xhz/x8NKThgB/l7gJ2pWY2jhhtkLqpqZ0CRNWATqTThWUW0+dmSYUv1ODoXpNJy3xUwvfhHMXA= 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=HxIurYKw; arc=none smtp.client-ip=209.85.219.202 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-f202.google.com with SMTP id 3f1490d57ef6-dcc05887ee9so9147932276.1 for ; Wed, 21 Feb 2024 19:46:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1708573587; x=1709178387; darn=vger.kernel.org; h=cc:to:from:subject:mime-version:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=708QuIQsvoQpwRBXFqGjyGgcNojmh8+A+3U5/P9lDlw=; b=HxIurYKwX3sPRmzF3cxmuJH2RBJsnAmHFQis98yKwvtmPRm32AAdE5g470MRbo8D/X BCDTjz4WLhWNC8ZwsQk/23ikchbCB/z0cFB3ZK3q06Uy/acd371eI35fl8v/lCkozysd GUPzLyChQ/B1JlB2juHpoMwjPm8hjFEi5C6e9a01OQKJg9JkyNRR9wkGdkSv6uzOylaT DORMwkwAPHKpm8MwBJQl7XO7QNtoLLl/ycdylSRHNqNVKws2gcKsS37aDoxEf4vCBXnS tfYdhhIJysx1CvHjtKfvLskdDzJska0CDw82Eme8cefRs2jQa92I3+CD10T/OKJjKOvk feEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708573587; x=1709178387; h=cc:to:from:subject:mime-version:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=708QuIQsvoQpwRBXFqGjyGgcNojmh8+A+3U5/P9lDlw=; b=fsLjlqgUUtwTmm64FWC8Y/fpFwG1Z3j1sFQLJSrjpQNYTBAM/Lq5SPYYsoa4kSAeBG zT9cqePuUaRZ5l1cBuEPxj/bvZNc/luokjdQEhqVR+hAo/5h8Eg0g84bHoli6zggpAsl 7xqAKqRiyDFmC8NBGI6KS+R6nOGWQQ9GrP6+YQz+Y8TqecGAG0aSLcGSrKMsyLZH6wET QBuJCRm1tZZdH1A6E7KzqAQWeS7ty7fISPCto/7pe/n3ptJUBEijmuIn2ND3JN91AzXj zNkInZ1cbBeXpZx7degeycSS5z9MTxNVZrRSJiivx0tZMzB2p/4GffX63LLqH0Nz5nzG 9T2A== X-Forwarded-Encrypted: i=1; AJvYcCWSJcHRaE12jHPnVUfvAqmX7pq7O2+bFa3mN2FyHSNnAoOrJ20zREie8BamQ2uAv6ZhBghX6TmX5eBdOK0YCmBBJx2dukg0VYHookkd X-Gm-Message-State: AOJu0YxWDzoK6o7ooWJvRU3QX8KacCDST2xOt01+pGZWC2GgmIkhJcF2 9vcQMJCbKIQgWtotZFeJAaWv/Z4cUmi9tlDcVJMoE8gfemZ+LtuTWyWWoFDcIRW7RVqtQ/WtDiJ wAWrgaqEggUU4dg== X-Received: from saravanak.san.corp.google.com ([2620:15c:2d:3:451c:c6c5:1fb1:a2a1]) (user=saravanak job=sendgmr) by 2002:a05:6902:1008:b0:dbe:387d:a8ef with SMTP id w8-20020a056902100800b00dbe387da8efmr44003ybt.1.1708573587147; Wed, 21 Feb 2024 19:46:27 -0800 (PST) Date: Wed, 21 Feb 2024 19:46:18 -0800 Message-Id: <20240222034624.2970024-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 v4 0/4] Add post-init-providers binding to improve suspend/resume stability From: Saravana Kannan To: Saravana Kannan , 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 Cc: kernel-team@android.com, linux-kernel@vger.kernel.org, devicetree@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: 1791569275866860442 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. v3->v4: - Fixed MAINTAINERS file to go with the file rename. v2->v3: - Changes doc/code from "post-init-supplier" to "post-init-providers" - Fixed some wording that was ambiguous for Conor. - Fixed indentation, additionalProperies 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 Acked-by: Rafael J. Wysocki Reviewed-by: Rob Herring