From patchwork Mon Feb 12 21:31:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saravana Kannan X-Patchwork-Id: 20276 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp178697dyb; Mon, 12 Feb 2024 13:32:12 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX1ZCI1+CzuqApTdJFvyD23jV2Ed5yJ3SlDi7ETGo1bm9W5MWiHsEqOJoQihoqWUdCDH5pQCvquUPQZjXXs3I9ERecNPw== X-Google-Smtp-Source: AGHT+IEQEKbm/HWa7ooexWIxqvNv49QjAipsBXrQK8XtIt0kaddvEN/nPbj9H17I/vkvJg9dm3Di X-Received: by 2002:a05:6214:509d:b0:68c:b9c9:5adb with SMTP id kk29-20020a056214509d00b0068cb9c95adbmr11272443qvb.41.1707773532434; Mon, 12 Feb 2024 13:32:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707773532; cv=pass; d=google.com; s=arc-20160816; b=Xe5p204XheviTEwbWtOf5XH3zzqgeBOd9MGqlot4ym5KfUxya2TmuNtQcTit+jA+fQ mtkL+TujOzH3r0J1NIsSx8eB8hQSywzpx75MFqSmN4R0PzDBaM2pBReuRtySCt4coZvO qeZ9ne3ifvNdoMh/K9EGfzbStcERzvWbgvhUF1Ca6eSJNyd5y8/9nO6eNo+yMXoU12WW 72yDMCV5nKe9z1LwIfZID1k/0QxfJghpiZesanWVvI0YW5CVDx76Uy57QYcf2WT1n7W6 hx++Jv6kiy4PR/jM3QRS4p1y9QvmOSF4WRyn8RZ77mnj6B1u4rQXJGEHfpuHzIkVHmwR ddDA== 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=eNLzwhDxpGsG0xXWUreD5zieU26PkV4O6rqgtZMT05I=; fh=c4k5WLhHzI4cYFw5uTk+rDv06xIyAzikZc5FRQdMHcw=; b=Nr+Zs7nq8BiKNfAQ8ySWFAcDSt3/5n5gCyQVynrcaDWAq/jdc163wPGMM13RwR9x0G yJ8lEKiXFW9b1RX7IqTyegwmSwmmIxrXkUA22Pc9suu/LJy+GMIRoQzdNDaSuKIB2CN4 RgIVDx0ssEbfJrlx9uzbv+Ee6s/SK6fX/ewgrtcPgnUPE0eIaVQ+safoLpx58QFtNKsj igCUjjyMH1lxp9ObJBrnQPtNLmMo89DGJnDADsNEEO21qIOQYHNhRTr7pVfYmH3BkV9a jh95Y1E+1CHGwz8fGedNOisoWz0Y4PImYaSqEN/P3tPSYmgYzuAVRkIhXGfOI0JtDgmG 9tHA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=kR1S9b0x; 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-62392-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62392-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com X-Forwarded-Encrypted: i=2; AJvYcCWVKomD5ZdwBdtJGJXZ81b3zG85YdQdN+MTFpo38hZfBiyl//bd0HBhx5Hb5A1mTn9TyLQX7A4TNp02YPi4F4QfEdRsTg== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 9-20020ad45ba9000000b0068cb760019fsi1366834qvq.268.2024.02.12.13.32.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 13:32:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62392-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=kR1S9b0x; 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-62392-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62392-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 3DC051C2239F for ; Mon, 12 Feb 2024 21:32:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7C3CD4CE18; Mon, 12 Feb 2024 21:31:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="kR1S9b0x" 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 08E074D584 for ; Mon, 12 Feb 2024 21:31:50 +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=1707773513; cv=none; b=uMZEVw0xQr/jayri5mpttmjap5GCpXLbiVsHaw1YN/xgYoSKWAqrSUoqN5Ri7eqDY8/HRlFwi1m3piu458BO7BkyCB2MM2W5D1sU+5gLKWEpPeYGL3apxZTE/gnzATIp3cJsAtEVnNjv+1Uq/EhZ2f5KAlwN4GwQ2vOm8XIhCiA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707773513; c=relaxed/simple; bh=uChUnQc4QHp+qfT44V695j8Bfi5csO+b4Ks0xqs3YHM=; h=Date:Message-Id:Mime-Version:Subject:From:To:Cc:Content-Type; b=BtEOnaGJA2v4uDlVMwb4tMvgikYEkZg/nB2FMM/JaYdYA5GMlDci7SVNMKNUtci9q/lXj7qio5n7vrJAd8L7rGq3WuDO6mZivw453YPP8gah/rMPRPfPBxyuJnm/iPv0gc8lkK434EFOalAQfOBNRBzXrZw7Z4E6MxwpkNB5xAM= 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=kR1S9b0x; 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-dc6b269686aso5878736276.1 for ; Mon, 12 Feb 2024 13:31:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1707773510; x=1708378310; darn=vger.kernel.org; h=cc:to:from:subject:mime-version:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=eNLzwhDxpGsG0xXWUreD5zieU26PkV4O6rqgtZMT05I=; b=kR1S9b0xVghuNhih0RY6ckd6sl5vht9SMKx6ct0THm60HK2tkJVIGvEH6TnneCNSLt Czif0nlWvlBsRhZTLpEM4OOe7nuqaNUyDZYbkyoGELFW5NLVJQ06xWonL2leZYu5B4TW G1lkoLz4d0v7uISQcwcWBrF6zpivbdioQMLoemrkmzoU0H8Rm/T6RWE9+TsRs/6xyHlO hbXdflQE+sVHkJkIRdtawSj1qg0Dx2y2BMMFGG0DiebuzBMIeb43hka31Gcmcpqs3RdQ BI8Z4g/c1n/AT4Cv0/N6DrahdvARZIytcItQVJ5fR8fWuxYACr8ee8BVcT0jKC3xPJXg kEjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707773510; x=1708378310; h=cc:to:from:subject:mime-version:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=eNLzwhDxpGsG0xXWUreD5zieU26PkV4O6rqgtZMT05I=; b=KCbBdnGqvEEQ6GXmS5RKYRyHWunUogVsC7xWJtgLJQq1Auv70qoTWuydT3XeVWjZUq OraFXvbapTbDkN8orLMfDzY2bypqqiLtRT2LvJcWxQvl92jk6nXjeowCVFLX3p95UB9w 5fdL2NCEyncndlx0m5DZxJ9ZulGYHnByatZVSHhLfz/XLamzX2zBUO14tQS3G4cBJ6ri Ot/0CmwT+uMSurU1GUCZmTZ8Mk/ezoIkUi54tJhwrgpn+N/ODOIFVhrNAETp+DtYGr+S +J3I8ClgQ2uyhbUJF4K1iw1ac245jaZWWGgx5Vn1NRP7hYxYywFbRfMMAxTFjwnIDEpk gTmg== X-Forwarded-Encrypted: i=1; AJvYcCWKUClbDUR8gnxPtT43QMuBYD6lrpaWKORf9mdJgTyOS7y7uwQ+JWCfmYWzy5yaeTECUvkA5blXE/fmbXfeKu+kY0SAEyMiBGr+y40I X-Gm-Message-State: AOJu0YxWB5pnyNicrmNnSp7pTiKPPGwu/S1FRTlzH3VH5v4lnGNj0V7o +lRgmWgtRxMkY9xUwYXrFX0pnUL8EaO6R5Q+RctL58L8KJ/SSRoaNAAnX1G9t2XJ344bbcT0kC2 QJzZjT7bgU5V8IQ== X-Received: from saravanak.san.corp.google.com ([2620:15c:2d:3:496d:5de1:a404:8bee]) (user=saravanak job=sendgmr) by 2002:a25:c402:0:b0:dcb:fb69:eadc with SMTP id u2-20020a25c402000000b00dcbfb69eadcmr65722ybf.6.1707773510116; Mon, 12 Feb 2024 13:31:50 -0800 (PST) Date: Mon, 12 Feb 2024 13:31:41 -0800 Message-Id: <20240212213147.489377-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 v2 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 , Len Brown , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus 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: 1790730339733283465 X-GMAIL-MSGID: 1790730339733283465 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. 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-supplier property of: property: fw_devlink: Add support for "post-init-supplier" property .../bindings/post-init-supplier.yaml | 101 ++++++++++++++++++ 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, 138 insertions(+), 14 deletions(-) create mode 100644 Documentation/devicetree/bindings/post-init-supplier.yaml