From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 30F5A45879; Tue, 27 Aug 2024 18:28:39 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DF16440E2D; Tue, 27 Aug 2024 18:28:38 +0200 (CEST) Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) by mails.dpdk.org (Postfix) with ESMTP id 3535E40E1B for ; Tue, 27 Aug 2024 18:28:37 +0200 (CEST) Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-2021a99af5eso51871445ad.1 for ; Tue, 27 Aug 2024 09:28:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; t=1724776116; x=1725380916; darn=dpdk.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=c/Ohp84nIt067/a50I5jjKoLKJBgAvRqxKMqrLH4F3I=; b=Bkwwd3mJcQcdNYUzqleKztJILY8w7v/7EQzLPBwZfx+I5vga66//QqasFSmR3V2gKI zQmGC3uAdPzw0jPUQLRJKglz6i7wii611OC60aI5h5qY+BPA2F35gLrgpRx87qHhtuHe 7t30ELZXZahqZIjShfVDRbSbzKqsgh6bQV7lA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724776116; x=1725380916; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=c/Ohp84nIt067/a50I5jjKoLKJBgAvRqxKMqrLH4F3I=; b=AWHGj5p8gS7ILEIhee+qIv2QP3emJELXMBX5344dDl+k0dIE8YeJyhgG3jHYFk63yO k4FlFQwY7gN9mhiFYXWkTCDgQOpcKdx5wqkKHjVg2oxMN+Cs+34Sqaszhj0pKVhOiGyF IR3rGSAL+fbj0m7GPKhFSYvHa2Io1Vpd/W1IDbx8LsgvTUC+d2JyH8bBPcp9ndzWQAMZ /ceFKN1ivefvSpXibC1onjeY26qgsQMsG6iN/uR1WjuKif24bIjqsAu5Ep+C9j+Yf7fb FvH/uVovD9UqB21qaHDyn6lr3ZD6FFFqehOIVCd0mDZXjFt/5KXj7jMdZv+Tt5wBkZQZ r1Ow== X-Forwarded-Encrypted: i=1; AJvYcCX65eI1Jxr6RF7D3AkZAdu5MxqBdxCSwEZKpVZre06Pe5rSyVhvMsYZZcq2J1+YlziM+Lk=@dpdk.org X-Gm-Message-State: AOJu0YwcYnjzq6PP3S6G9Ldx1aaNjh1UjLd4tWudD2Uuu4e8sEOwoh87 ccXw3H+wGJajbBR7pDA8t0uGyczV8XjGO/zvCMDm/lsY+R82RkEMbCp0ayOe6NSCIpU1Q+PbAPh Tl+CGgYwcZyoKmGAvOwKJLwMcqhGtwy1ygYogCA== X-Google-Smtp-Source: AGHT+IG31SYaM2JHiX8frzYKX+8cez9jMaL/S4gbIoYaz0G3SX4ePC0cwe1CVwRP/bHk3csqDohWoNXI2U5Il1VcU38= X-Received: by 2002:a17:903:234a:b0:201:f0c2:9c7 with SMTP id d9443c01a7336-2039e441c1cmr198628595ad.11.1724776116044; Tue, 27 Aug 2024 09:28:36 -0700 (PDT) MIME-Version: 1.0 References: <20240301155416.96960-1-juraj.linkes@pantheon.tech> <20240821145315.97974-1-juraj.linkes@pantheon.tech> <20240821145315.97974-3-juraj.linkes@pantheon.tech> In-Reply-To: <20240821145315.97974-3-juraj.linkes@pantheon.tech> From: Dean Marx Date: Tue, 27 Aug 2024 12:28:46 -0400 Message-ID: Subject: Re: [PATCH v3 02/12] dts: add the aenum dependency To: =?UTF-8?Q?Juraj_Linke=C5=A1?= Cc: thomas@monjalon.net, Honnappa.Nagarahalli@arm.com, jspewock@iol.unh.edu, probb@iol.unh.edu, paul.szczepanek@arm.com, Luca.Vizzarro@arm.com, npratte@iol.unh.edu, alex.chapman@arm.com, dev@dpdk.org Content-Type: multipart/alternative; boundary="000000000000b6e20c0620acbb7c" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org --000000000000b6e20c0620acbb7c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Aug 21, 2024 at 10:53=E2=80=AFAM Juraj Linke=C5=A1 wrote: > Regular Python enumerations create only one instance for members with > the same value, such as: > class MyEnum(Enum): > foo =3D 1 > bar =3D 1 > > MyEnum.foo and MyEnum.bar are aliases that return the same instance. > > DTS needs to return different instances in the above scenario so that we > can map capabilities with different names to the same function that > retrieves the capabilities. > > Signed-off-by: Juraj Linke=C5=A1 > Reviewed-by: Dean Marx --000000000000b6e20c0620acbb7c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Aug 21, 2024 at 10:53=E2=80=AFAM = Juraj Linke=C5=A1 <juraj.linkes@pantheon.tech> wrote:
Regu= lar Python enumerations create only one instance for members with
the same value, such as:
class MyEnum(Enum):
=C2=A0 =C2=A0 foo =3D 1
=C2=A0 =C2=A0 bar =3D 1

MyEnum.foo and MyEnum.bar are aliases that return the same instance.

DTS needs to return different instances in the above scenario so that we can map capabilities with different names to the same function that
retrieves the capabilities.

Signed-off-by: Juraj Linke=C5=A1 <juraj.linkes@pantheon.tech>

Reviewed-by: Dean Marx <dmarx@iol.unh.edu>=C2=A0
--000000000000b6e20c0620acbb7c--