From patchwork Sat Feb 10 03:05:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saravana Kannan X-Patchwork-Id: 20196 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp1268389dyd; Fri, 9 Feb 2024 19:06:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IEZISIaoBW198t3NPzWe30SIhta3Ar+/sZCi7JKYbm7c1UwwxOOG1gI6lwU7W6BAwitxoFI X-Received: by 2002:a05:6512:2038:b0:511:66c0:2ac6 with SMTP id s24-20020a056512203800b0051166c02ac6mr498645lfs.15.1707534405601; Fri, 09 Feb 2024 19:06:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707534405; cv=pass; d=google.com; s=arc-20160816; b=JEX+WuILxzFhX++bKdeDYU1+RIm5VR0CMqIdNmYG6ba2fz0UiL7uP5LwW8pHxAcmzm l7a561FiukK+apZ8M8dLRvfKFRTa0FCyLtpg4Swy0QXcMUN9uRfeTMC1+uBxosre17S+ MRSGy7fEuPsFKOUbguuKP36a1arD07pBKf3D1SQ+CZM4QmfLNPbFrYWocKXoVvVvfjRy 7ZywhXpo64SEt5dSIJJ2jq3E5glOwS4Xy5w8pxpmC2U0sfgEWxI14in6IzqL7rJ3pCeZ u++w7gvY/tyX+9pUlkKnFkk2q7K9/YK4Z1qnSciyy75XbWNwoyhJjXnwP5ZSYGRAFMez twqQ== 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=Lk+GB+kHbk4tJmAHLH1aR/cCxbbVSiuBX2AWpDuc13M=; fh=UtrCOz4y1QQ26x6a9dSGIF79xfBlBEBb6/h/WBBVTzo=; b=0ouDSkAJClaYCl+yAeZMFlwVN2+B7TJDEbVFMlLJCmR7cXedkM5xGx0njOHDzsW6Mt qyQ8R0eBJoxrqHJFX/M4U31++APMVUceExPi4tlKt9k2M960ru6UmMMAvpkLAwFZIy5g P/F1RyLu1ZRo9tfZIX0thCjF2BWUmX79MdyXgX3wYSEaooDXp7/73r1Or11WNB/MwrL3 jrbvWJK0RAGUwx1322UuTM2+0Qajoakcwk665cQm4SphXeXup7YDcGOBGXEMT8SG7VNA smpnq+oBA3b8c/iZzLj1TASZ67xMjDsn8MO9vDV4RNoNYQqgL4jdr2a8GJ5TxfpdO7qE kkUQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=ZUzekhGW; 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-60256-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60256-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com X-Forwarded-Encrypted: i=2; AJvYcCVlp/MM8ymzaEKh+Cx1wvxxaC0T5t01/AK/rEbbG2mmEMOps/3hnwRSJ37R5J4egHgwvZIC8qf0hYLKCINv5MtlnwBeDw== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id dv13-20020a170906b80d00b00a381fa665d4si1414207ejb.863.2024.02.09.19.06.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 19:06:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60256-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=ZUzekhGW; 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-60256-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60256-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 88C9E1F2224E for ; Sat, 10 Feb 2024 03:06:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7AED76D39; Sat, 10 Feb 2024 03:05:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="ZUzekhGW" Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.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 58FC923B9 for ; Sat, 10 Feb 2024 03:05:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707534354; cv=none; b=EY6+VcquGC8i2sp0IM4JbhIB4rYIdqHCcLPrCzTAaSKDh0RXTsL8cYzCQaIaX2GOpwblznvQJbdvBPnRf9Cawl9OQkAPiTLtEwDIQ299kByhWzyptws//v+l0cZgcwqrlqRgS7hHdgnaDCephSs7kclCxWXoEB0K/wTQP6Y1Vyo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707534354; c=relaxed/simple; bh=H9Reg8b+jS8TkwjOMN95FrdB7sOlVzGGwIlyR7QTdJA=; h=Date:Message-Id:Mime-Version:Subject:From:To:Cc:Content-Type; b=VrEpAanJQ+7T8xkr6i0qTySkQ4pGsiRL6ADDXP4JzxcS82NVnCynkucSaUevaFGPqvC94CHoYTiJNOGWuqDo3gy6Z1t9wsfsZ0Wc4uvoCZfixmG2hPiuwI3mEOZqeOoxxiDshqATZaTLWpmcASH98pi/Prgl55hpgo6fECyd2oU= 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=ZUzekhGW; arc=none smtp.client-ip=209.85.128.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-yw1-f202.google.com with SMTP id 00721157ae682-604a1a44b56so24653857b3.2 for ; Fri, 09 Feb 2024 19:05:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1707534352; x=1708139152; darn=vger.kernel.org; h=cc:to:from:subject:mime-version:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=Lk+GB+kHbk4tJmAHLH1aR/cCxbbVSiuBX2AWpDuc13M=; b=ZUzekhGW6kTW1J+jsmslEXjeEImuNOv27L1c+OnjlkhfQWf0Ln93kGZ3KRf+KvM2eg I35b+9lz6tq37+AX6GChsK4emqmAfTc3CdnEHG8zBpY4ROi4YB1ALKgkypN4LuW7Q5nM yXbq155Ps8CaL0miP6toTluQ87RoLUTW5PuqviVzBNqpj6EI54drEl6QAsvncl6337rQ JHil91EgHpcOFJoqnN2xUh1nEoAnDeLv//ud6JpfCKvyzfyyLVfawK6Z+5/TgWzNMy5g BG5pIoewdxyhCGClmqX8J1flow3h6LKmYkXBWmU/nP+rqMi5yibKjgrMOC2GXPiF14gG 5L/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707534352; x=1708139152; h=cc:to:from:subject:mime-version:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Lk+GB+kHbk4tJmAHLH1aR/cCxbbVSiuBX2AWpDuc13M=; b=Rl2ga3IDvzN1zOtt/GDEsZB0bTNuTrUSen6eIrMen4qN74mkyresh20UjSFoUlC7VL lIQqTZdol2HoU4LsjmQ9LXGWU4PqRZNKnTRDuLvvMfelNhm4H2Aw44+v1zIyCsH6qUwK HumYeXtr7DYhHIzBnHmBXKC5HBA0Sy1gFJPTnN+nNTN0kPwr4Qw33dVMC0/9YS50Lj8T bob3LlLALHvqBwGu5YYZUAm4UIR2ti+lRZCv59qFfTXv5GL++WRuLihY4HZb7DO0Wx4Z 54vNDgyZV35+VYgexlsu6LGJhgDilitSRf91ekU7NwJkz/hNWlXUPFUjF2eez9N+F7z1 jBMw== X-Gm-Message-State: AOJu0Yx6d8CvdPVvNjQTmZ616yerbcVAHQb1Li1ZEKwrG+F7SDgysLGK Qw2G9oKsQO1nidXgX/Mv3fKySxCbA7OYfUpYnG7irWtDZFSd1OaKwYJ/B2lXO9NE7bQrYSYLJcA /vZJdAezAyugIjQ== X-Received: from saravanak.san.corp.google.com ([2620:15c:2d:3:6b44:91e7:13e1:5d92]) (user=saravanak job=sendgmr) by 2002:a05:690c:a98:b0:5ee:d5ed:5f70 with SMTP id ci24-20020a05690c0a9800b005eed5ed5f70mr243749ywb.9.1707534352400; Fri, 09 Feb 2024 19:05:52 -0800 (PST) Date: Fri, 9 Feb 2024 19:05:43 -0800 Message-Id: <20240210030549.4048795-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.43.0.687.g38aa6559b0-goog Subject: [PATCH v1 0/4] Add post-init-supplier 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: 1790479596603474474 X-GMAIL-MSGID: 1790479596603474474 This patch series adds a "post-init-supplier" 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 docunentation) provide a lot more details and examples. 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-supplier property of: property: fw_devlink: Add support for "post-init-supplier" property .../bindings/post-init-supplier.yaml | 99 +++++++++++++++++++ MAINTAINERS | 3 +- 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, 131 insertions(+), 9 deletions(-) create mode 100644 Documentation/devicetree/bindings/post-init-supplier.yaml