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: 774999 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 2690F17558 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=1708573591; cv=none; b=GpkELBmaHA4k5Dw+UbRnkFmX0Ld7uuq01Xk2+MUW2Xdy+/7114PajoSzWXN7tk3smp/GSZGohnOVotOBKqNUklCOlci441tKYd5y1BqkNFWjBZH14Y0Hzc+01dGsYdeSKEa3OCX2osSfyt3m696Mdj3om/DR0fbs1nglWtHaM/c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708573591; c=relaxed/simple; bh=vA2pdbQ+LBQGE4JsVOwYzj4zQ+3197cEH10/uV1J0ws=; h=Date:Message-Id:Mime-Version:Subject:From:To:Cc:Content-Type; b=ojUzfNeP/Ts1TTYAs9R8zXFdRMzlby6xtZzWKkRK7aghvnYxKGQFw8AONHZ5Lie6Nl52Itf8Ps0ynrh7r0CO1di/S+/vbs0vEbD3b/sOcZeh4/VAQcDZ8OtGyB+rKjwnst5edANNEQ3meEXqJs5TXW/uSEZCT8OAixYFhHZ37qo= 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="HxIurYKw" Received: by mail-yb1-f202.google.com with SMTP id 3f1490d57ef6-dc6b267bf11so7496217276.2 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=w9qsHs4UctfRr7tqR3Dt04A24+0grRu6in/tmGL93qdiawbk/cvNtwim0ERGp8GZpw oLEBqOJH3qMdFJGOsuNAIueBs59uoUTN37RpeAfMnWK9Ozf2Xd5fhWInhnqL6/GIpU1Q ppiZ1P2HPgDDVrhp0+eTaF1EZL/7gM+cSlkvG80Zdf7noo5DrazhkhsJ50PVkfm1Kfvq yanZqhxSlDfMEXh4FeS2VJSj3C+Az0VLtz6sCO6jy/2MnFO6hebV5fTL2Ng4BZb26O8E YayenScWOpfXMtD7YkDvcbyMpxEfDO0KIpMbhffx0FIhMQtn4Sq+1BOe2xafM7o8zBlC 29Rg== X-Forwarded-Encrypted: i=1; AJvYcCWCFM3sd3XeTDvj4jiiDON276SOHRFLvvLnw2YlhHCsv3Qb/9jbwnex6BoGcNqcD38b9v/i5cKnGOxrr6wwRuPtTqmeIjTHb5Z0 X-Gm-Message-State: AOJu0YwrOmmSe33WV2M617SQolWPD3TkowfMeR7qDEPnmiiJ5K4obZme Fp9k18dSzoXUkKx8DtlevvuIXcyA5DIR97pXDiMeNES6Yo7FiLVnHiVz5ZLpt2S9hneiEaGcpJQ jD8/fVeEWA4GDKQ== X-Google-Smtp-Source: AGHT+IG5iz4C0XWr0hw0lr0P7P25CRKutkzBhn/QBqN7oFtCGa+/bzH8SlB+2NPEB5FLPXb4rj+ArO+SQgqeKzk= 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-efi@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 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