From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BC356C433EF for ; Thu, 13 Jan 2022 18:01:56 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 506778349D; Thu, 13 Jan 2022 19:01:10 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="U9z5prlU"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F12C483481; Thu, 13 Jan 2022 19:00:53 +0100 (CET) Received: from mail-ua1-x935.google.com (mail-ua1-x935.google.com [IPv6:2607:f8b0:4864:20::935]) (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 815A38341B for ; Thu, 13 Jan 2022 19:00:47 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@google.com Received: by mail-ua1-x935.google.com with SMTP id l15so12593541uai.11 for ; Thu, 13 Jan 2022 10:00:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:from:in-reply-to:references:date:message-id :subject:to:cc; bh=5V1DKiYlSGQ5UNqUrfxzLKnDfPfR+ADrxFYEuUJJ0UU=; b=U9z5prlUGucZPCpoysfYVUG36KImUI0QPt33VogESZbvuBUkAnwh0JcmA+agFD9oAj RNHLgIWICeeAc/MKCbLBAVKDA+OCl5u9FSHgVng87xdbegBVJi4cyiI8yt5biY3tPjnB KIU1a+q7Uyyiq6babxv/AbPSiSIb7GA3+moI0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:sender:from:in-reply-to:references :date:message-id:subject:to:cc; bh=5V1DKiYlSGQ5UNqUrfxzLKnDfPfR+ADrxFYEuUJJ0UU=; b=6aw+i66jQfXt4LlTri73hJO7CPjewzRFuIRwUw++oEBt1yG9Y7IK7PfiQliZa3PDd7 7adFulyaU7YF2mFre5ORLfz9LiAvt/xq7L8ccS99wfPrHMBVUn0HO2lfxf6HeCzRlwrI vznSSRNwRdZQ55HDhjl7kWlwb/ntZohPu8eV5ba+zrScGfFJRnCk8+n8tAWQ1ezEcSwm POG96ocU8GKLpua7tcYyhB+FAJ8LVr7Ycv1gM84ZihTGXZ+MYDLt4Q+8W4Ymx18WHmiI TtjzLcl1L78awxZtTM6bZNF0kL7XQcCIyqpJF2GzYxmlEow67J/iBzPuuQRclYrIX1Af RApw== X-Gm-Message-State: AOAM533xUv4gN3z3dJbmuvhXji0lfBBc6ovICZj6Zop4PeyIRIjuCBKq CwhNCMWpLTF3ZW9ZLBvqV4lIwJ84sysIwKOgQ/5j4/kZYPA= X-Google-Smtp-Source: ABdhPJytdHr56bYDkufJEcRBIgdfygHN3w2+KhjZwDdcZe1qY9aAUdpWi97F5kYTxz1Z7UYABEZZ2UOFzPlbEw+RVFM= X-Received: by 2002:a67:c81c:: with SMTP id u28mr2830783vsk.71.1642096846043; Thu, 13 Jan 2022 10:00:46 -0800 (PST) Received: from 480794996271 named unknown by gmailapi.google.com with HTTPREST; Thu, 13 Jan 2022 10:00:44 -0800 MIME-Version: 1.0 From: Simon Glass In-Reply-To: <20220113022625.413990-7-sjg@chromium.org> References: <20220113022625.413990-7-sjg@chromium.org> <20220113022625.413990-1-sjg@chromium.org> Date: Thu, 13 Jan 2022 10:00:44 -0800 X-Google-Sender-Auth: ty7adIeOGX2kDtk_EAClhVlqdbE Message-ID: Subject: Re: [PATCH v2 06/12] bloblist: Use explicit numbering for the tags To: Simon Glass Cc: Tom Rini , U-Boot Mailing List Content-Type: text/plain; charset="UTF-8" X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean At present if someone adds a tag in the middle of the list it works well enough within a U-Boot build. But if these tags are used in another project, or with an older version of SPL, the numbers make become inconsistent. Use explicit tag numbers that never change, to resolve this problem. Allocate areas for existing U-Boot tags and set up an area for use by projects and vendors, as well as for private use. Keep tags above 0x10000 unallocated for now. Update bloblist_tag_name() and the tests to work with this new setup. Signed-off-by: Simon Glass --- (no changes since v1) common/bloblist.c | 45 +++++++++++++++++++++++------------ include/bloblist.h | 58 +++++++++++++++++++++++++++++++++++++--------- test/bloblist.c | 12 +++++----- 3 files changed, 83 insertions(+), 32 deletions(-) Applied to u-boot-dm, thanks!