Message ID | 20220308113657.221101-10-takahiro.akashi@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6713:0:0:0:0 with SMTP id u19csp2540123mag; Tue, 8 Mar 2022 03:40:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJyvrJZc9WQdxYJGl9+KPliRNMVTVAcPM3LCfYMoRzuulTNW6LG0TxtRlFijl3II99hzU3lz X-Received: by 2002:a17:907:8a0a:b0:6d8:85a6:4d42 with SMTP id sc10-20020a1709078a0a00b006d885a64d42mr13551124ejc.138.1646739620985; Tue, 08 Mar 2022 03:40:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646739620; cv=none; d=google.com; s=arc-20160816; b=ctwPoJWNdJNG4EvHiz7H6nVAWWVh2s8RHqCaF1sUxKG8kMzQz/P4Fs8ZtojcxOMOoR 5FYVB6dDvzen4Tpm94RmpHvxjJReRO+qHKgJvpUFVnhrz1tDlFd5dr1et94TteYCVRZq pW3A7qJo4iwmM/V98dQhxlqlMtcxt8mBZ/Zn2npi+VKA8mv6bjSQakNlZevpAMOFzuTR 4UG7+FpH4wX/UsQODMqZd4glN3Ex2eWdHNzrTUEuyc7THEs018TcgMxdFtzHLxHUnzhC kzfm90ti9u/IqYhTyTMoe2Awu8aHZ876sn1JHfujdGQ9+580R3/XltPl8bC2+XVzsjUV NbGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=cX/nLKjs6xoyV+5h4EfvdKOKYkfovrTdR9z7OgzIyt0=; b=xs/EmHnpUz39CAIVyrPazcA1D5nmETS81MRp7B+y1MdquTZT8MDJWDC25sqQ9Uw7jz EEoLpohwC1Pw8JPHMeDqzGaB2N5HUnxt87MvFjINeUU9pE37nqlXCn0MZ+vZFG0hva96 qY6tgmZmHxfe4hSXjN8CMnC8tKMgl4QvXvA1Ek+Ft0HIAujZu7+xqVi+0YVqumB1DTpt p6DRI2afnK0rseNdV5c+8xMF8Qx48VVA0ZnW/tNsxfKJGR6VI0nzoSeeUS2R5Ab0AO44 XAiwsc5af4li6KzaT81jabUYVzgV1+eneYyvgzaDSQnVzZqfGhkWIqp/j6ry1h2s26Mq UZyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NbXFa+xD; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <u-boot-bounces@lists.denx.de> Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id 24-20020a508e18000000b004162b3083casi5872558edw.312.2022.03.08.03.40.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 03:40:20 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NbXFa+xD; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 33A8783993; Tue, 8 Mar 2022 12:40:14 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="NbXFa+xD"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CC50A8312A; Tue, 8 Mar 2022 12:39:32 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8B7D683934 for <u-boot@lists.denx.de>; Tue, 8 Mar 2022 12:38:15 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=takahiro.akashi@linaro.org Received: by mail-pf1-x433.google.com with SMTP id s11so17057440pfu.13 for <u-boot@lists.denx.de>; Tue, 08 Mar 2022 03:38:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=cX/nLKjs6xoyV+5h4EfvdKOKYkfovrTdR9z7OgzIyt0=; b=NbXFa+xD+fSIuVuNetbf41W4gwh335Y+IqmQ1Vvvnbx2WdKcWOm9j0d72lLsEECELo BJXG5wYsrVif1hxodm8JOugJZNWvYP+hWlh5WLt/F6vLZGIBF3fcefovufqFI341sOXI 7NCYXfj+EkWT3u29DwGOwtKWfig2Z1EqedqeFBqu8a4Ni3YCHmvugpUX1lsNFTtthcao iBjVUzMxO6lLfRpRILSBhLg3/VgaJH0lRXGhJVgz76ZwztoQhX+tif4oSKRHywqOSuO/ MmZKWxFcobF/jGJwANRSg8Mk3SJOxNxAzlR4mZyPAFVE+0LJcn5EI3dwHIsbHEh+zMLE Pdsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=cX/nLKjs6xoyV+5h4EfvdKOKYkfovrTdR9z7OgzIyt0=; b=PiMJ7v1eCIai3OPrXzY0gUVA5gN/oct5VJcZzez/eBnCU+me2jTbGl8Qh0Oon/jG5L yvPluzZAEPPlMLercus1A0VEqYsD0k0XU1HbJkuoKlNqTDwMA5CkHp+sMd8C4tZNoMka P/nYWZT2oiYBVEVzAn+1+Rw7JVbKXGKvDbyGcTfb4Q2POqnNLf4XcKbl3hHfQ4Q2Qld6 ZpyALBU6J0ltKfML5YU2iCb78cer3/H3JBKsmt9VHulMUFxNqssyu8ZbHqiSYo7p3JzM 2rgvQvjRh49vQTIZdY3/JC7Y2k29VPFxfy9tPSbFrBYsA8CO4VoL3XXC94Icu/t/Xivg ew1A== X-Gm-Message-State: AOAM531PEAbk3BXGbQEropgAHSt4iLa4ulhKNDdJATmWo/T/SPOKik00 rXDqy37Bw99WAIJowvvvVF2CVg== X-Received: by 2002:a63:1d4b:0:b0:37f:f10b:726f with SMTP id d11-20020a631d4b000000b0037ff10b726fmr13591518pgm.562.1646739493936; Tue, 08 Mar 2022 03:38:13 -0800 (PST) Received: from localhost.localdomain ([2400:4050:c3e1:100:b94a:f47a:3d51:185c]) by smtp.gmail.com with ESMTPSA id z2-20020a17090a170200b001bf2d530d64sm3434677pjd.2.2022.03.08.03.38.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 03:38:13 -0800 (PST) From: AKASHI Takahiro <takahiro.akashi@linaro.org> To: lukma@denx.de, peng.fan@nxp.com, jh80.chung@samsung.com, bmeng.cn@gmail.com, sr@denx.de, xypron.glpk@gmx.de, sjg@chromium.org, ilias.apalodimas@linaro.org Cc: masami.hiramatsu@linaro.org, u-boot@lists.denx.de, AKASHI Takahiro <takahiro.akashi@linaro.org> Subject: [PATCH v3 09/19] dm: tag: add some document Date: Tue, 8 Mar 2022 20:36:47 +0900 Message-Id: <20220308113657.221101-10-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220308113657.221101-1-takahiro.akashi@linaro.org> References: <20220308113657.221101-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean |
Series |
efi_loader: more tightly integrate UEFI disks to driver model
|
expand
|
diff --git a/doc/develop/driver-model/design.rst b/doc/develop/driver-model/design.rst index b0e6337030a1..3e88dc40e6fd 100644 --- a/doc/develop/driver-model/design.rst +++ b/doc/develop/driver-model/design.rst @@ -1042,6 +1042,26 @@ data structure might be worthwhile in some rare cases, once we understand what the bottlenecks are. +Tag Support +----------- + +It is sometimes useful for a subsystem to associate its own private +data (or object) to a DM device, i.e. struct udevice, to support +additional features. + +Tag support in driver model will give us the ability to do so dynamically +instead of modifying "udevice" data structure. In the initial release, we +will support two type of attributes: +- a pointer with dm_tag_set_ptr(), and +- an unsigned long with dm_tag_set_val() + +For example, UEFI subsystem utilizes the feature to maintain efi_disk +objects depending on linked udevice's lifecycle. + +While the current implementation is quite simple, it will get evolved +as the feature is more extensively used in U-Boot subsystems. + + Changes since v1 ----------------