From patchwork Tue Mar 5 05:04:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saravana Kannan X-Patchwork-Id: 778110 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 C049C1803A for ; Tue, 5 Mar 2024 05:05:03 +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=1709615106; cv=none; b=eMoMihIhqD4ObUoZxewPgQxXvxlRtKGunrHKtt+xWrSi3HC78URmNLOHCmxS/jy+59YPxnvzzuZvxH9TEQRJuFfcvk/tABOpH5TACaCURqjYU9DhME1w0KLM9+KCe0HNKG4VidIST+XEfPml6qu+1VBY7XstXsDI8G45xSPQfmk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709615106; c=relaxed/simple; bh=MAU1kWPqdnXGrNHYK3e1ZUDdxmqyA52aEjVKNf7L97s=; h=Date:Message-Id:Mime-Version:Subject:From:To:Cc:Content-Type; b=cIez9mld/Hv8Y6U/TwWDeZCCmSjgut6MFOibiI7NczyAIMszZJIhx3V3pR5uwYgV3NakFNbTKbia+OWCESRj5ZAOFuIDbvFIm4YXVD+BlcXoqju3fInywn5+NK0vmDE1oDMTlZFLIDFoTd8kHSLhCUlIX4wbHrf8HpoiiDrd3QE= 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=Ts+ff8gv; 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="Ts+ff8gv" Received: by mail-yb1-f202.google.com with SMTP id 3f1490d57ef6-dc6b267bf11so5735516276.2 for ; Mon, 04 Mar 2024 21:05:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709615103; x=1710219903; darn=vger.kernel.org; h=cc:to:from:subject:mime-version:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=Q4xpip56iqsz0ZA+qjMQdeYvZuGJ4xYG5vF66MG0lag=; b=Ts+ff8gvPAXuRVEUHnF5LhhM2KBRL97o//wcOi+dva5TtUSU/SIm+4HKuCyZtwP42z hYYEcCMTb4qwCtlm/8RVWZRsV29Cti9Rid5yB2qeNjqFwURHKTmh/WxztubD0khaJpfh qxm5QoHqv6M5ypgvknUeZW8lBbp3fRsjPeb2BakOe63DpCP4CW0mHEtwqXzl5F1rrGc8 qYF16GIKA3Oh3X5SbjYOO1HTW25/6sRvms9p8UkWs25VfeI+UCTJXVkCFtmASW/lX2ug WmTXix8GqYRlH0yBFMEke8Q8p4xsgIzTxZr+3tlcP+7E3HbI5Eb54blp/T/PzB1rKG+F 5oVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709615103; x=1710219903; h=cc:to:from:subject:mime-version:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Q4xpip56iqsz0ZA+qjMQdeYvZuGJ4xYG5vF66MG0lag=; b=wpTDa//nd/lyoDUIeZ9Q3E4UkV7RhHDY+CpP03CFXysidXP23EwcC187Yud2j8mMD6 gETaSYf5LeDNmcKATnd5GSXaXAFsIGOMOn39lBSb/c/Vr095bJwVc9qCuJQcFrXVwDqU rue87s6fpe/qwTDbj1EIp/wEa/BgH2Ygw3wMd0yFMbpZAE8aEeugavhJeSo2bMlT3OIg ODJEW1IhQ5Npwj29GLY9Rh6qhGggQlChzDX89902RRSkKLiDMKO5xFZ7OvSk1qUjzjJH 4ZSnJQdGu7JKaYwkBjZckLWU2oHhGjincUkdYovCJtFPaOCFjlvJ7tEMphLcP1l/wmIe 237A== X-Forwarded-Encrypted: i=1; AJvYcCUNPjsRN97IDr4L+YwHdIX1jyLXvZFqCN4m0uNfO/Hjf5fo6u5HwUunNETCtV2hcyxVv2m5pwzYImaIgsfTC6vgYRevDrY2JLnH X-Gm-Message-State: AOJu0YxjVS5baOjbkPFtSlU2wHWAa2Q8iMA8OGPk9PQl+6EANV7A5VqK RTkzANljBhpWON+JCelqidId5ttkcLHJmOZwnQZEIqhEH2lx361Q++7ksFfm9dTmNNwmSdGvaOf +ElccsikleACv1w== X-Google-Smtp-Source: AGHT+IFo+LnxDdPsW+MOrOqUjpVCkgB+n9r+MxXeQAnbHnQl5NgTJGxOR5lY11wswnsYWorkDIHWiDj499TxTto= X-Received: from saravanak.san.corp.google.com ([2620:15c:2d:3:d64:6ee3:55a9:46e6]) (user=saravanak job=sendgmr) by 2002:a05:6902:70d:b0:dc6:c94e:fb85 with SMTP id k13-20020a056902070d00b00dc6c94efb85mr376493ybt.2.1709615102823; Mon, 04 Mar 2024 21:05:02 -0800 (PST) Date: Mon, 4 Mar 2024 21:04:53 -0800 Message-Id: <20240305050458.1400667-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.278.ge034bb2e1d-goog Subject: [PATCH v5 0/3] Add post-init-providers binding to improve suspend/resume stability From: Saravana Kannan To: Greg Kroah-Hartman , "Rafael J. Wysocki" , Ard Biesheuvel , Rob Herring , Frank Rowand , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus , Len Brown Cc: Saravana Kannan , kernel-team@android.com, linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org, devicetree@vger.kernel.org, linux-acpi@vger.kernel.org Greg, Can you pull this in as part of your tree please? Thanks, Saravana 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. dtschema update for post-init-providers will have a more substantial documentation of the examples and the need for this property. v4->v5: - As suggesed by reviewers, removed line wraps to go > 80 chars. - Added Reviewed-by and Acked-by - Dropped the DT schema documentation patch (will submit tha to dtschema) 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 (3): driver core: Adds flags param to fwnode_link_add() driver core: Add FWLINK_FLAG_IGNORE to completely ignore a fwnode link of: property: fw_devlink: Add support for "post-init-providers" property drivers/base/core.c | 14 +++++++++++--- drivers/firmware/efi/sysfb_efi.c | 2 +- drivers/of/property.c | 15 ++++++++++++--- include/linux/fwnode.h | 5 ++++- 4 files changed, 28 insertions(+), 8 deletions(-)