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: 13552104 Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.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 5C37546B7 for ; Sat, 10 Feb 2024 03:05:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707534356; cv=none; b=sE8RvWwOBhV0AVV8W+EbURSy+6B/JdYLTOl92fSWHyIhkFeu/XTiHsERXP/9QVEYT6VJQdU1Lmi7EpJrNLflRPedmUTlZ9w/W8YrNMA84++3F6kZTKwkpT/rptRF0f+ST0/0E+qt9b5ajr7/7lukJsZzgrXGbakKQliTUNTGhZE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707534356; c=relaxed/simple; bh=H9Reg8b+jS8TkwjOMN95FrdB7sOlVzGGwIlyR7QTdJA=; h=Date:Message-Id:Mime-Version:Subject:From:To:Cc:Content-Type; b=Oakvh6teLCZw8WycYohDxggOJsWUqfsY2ruEPYwFD3wD9+tDE9aLJaiInQDSOBiLfDVw2nlPgfsZwflI6EPOBpjfOjQ2VoixxXtTK9ot7qGZaEkJTzjEIVbHw4odtHQFY/+0NKwqYQVDem75sJaqd1oYRVwVPSxhrLHP7pGg7tM= 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.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="ZUzekhGW" Received: by mail-yw1-f201.google.com with SMTP id 00721157ae682-604a1a44b56so24653867b3.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=HAqyRI1PXTfYrf4F60LdS9TAJpItGGyGeUQTZCfP8GOE++p6p2I55Sco2pjudEv4s9 0NinmjwS5j66BD949+8ObbYQb/ubIut+yDbTi6RMs2buE0uej1bqaXbncxkCIa2bW5iQ fk0uBKXyeLuSheB36PI2T8VJK45pL7cQyfpNkbKY1w/ANJz/HEstbTGQdFAzlTt7UX/1 dX15XfgnnBy7ne7PfudZFhbsMW7/Y1Hw4sCF4ONF5CceEZ1RIsEJPQkg2mcsYCAeRPv7 2Z862XBGcsP9kqyQpbd1wWhylGA2IGQfDf2/wHQPVvKKsx7AZwJ+hmmZI3jFrMIfyQlV +oNA== X-Gm-Message-State: AOJu0YxXMUrk2W6LQz5X0cS3jd8E0AjJ8bpraiOKbz5/bAkhWhfVe9GW oSfDgSmq/mBlVXRiWrZeHS8SVju9xNJM2qW79uTamF8wdsHXK3k/OSDMIZjfPf4RwY3CoNNtaHQ 89GOQjwemPgsdiQ== X-Google-Smtp-Source: AGHT+IE/uuWDxdol9sXaEnPCB66yNsPa4nWES8Tyh05rnMrvZgyjUNND+XZgyBWyRqOpm/3fC76p14pGakwp1i8= 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-acpi@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 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