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 C0C1C4586E; Mon, 26 Aug 2024 18:42:38 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B261D40689; Mon, 26 Aug 2024 18:42:38 +0200 (CEST) Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) by mails.dpdk.org (Postfix) with ESMTP id 4DF8240687 for ; Mon, 26 Aug 2024 18:42:37 +0200 (CEST) Received: by mail-pj1-f54.google.com with SMTP id 98e67ed59e1d1-2d3dc25b1b5so2998540a91.2 for ; Mon, 26 Aug 2024 09:42:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; t=1724690556; x=1725295356; darn=dpdk.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=C9xgje08YBEFeNmLE+owXgwM4PCq8bOclT+p6R/5Q9E=; b=VS0JycLa1CNmuMsKAr8xfGYalx1Al2RMGz6UKqqFTsw9tBai8p3uqwL2PZMTaxAnzg smluYFg04sR9XUJeMkp6XKpFjy4AtruwsAMvzVpkFYTc+ZKgvso5LymlDgD0zfI6OZiU ofBXHTdJaP5lviJjd6fL9ETzSMa+Y+O31JOjA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724690556; x=1725295356; h=content-transfer-encoding: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=C9xgje08YBEFeNmLE+owXgwM4PCq8bOclT+p6R/5Q9E=; b=wHghdX7QoToFc3eeHKEiEebWx2hdRa2syGHHqWGhu9pNa42L6juEJNg/VElGKDJ1Tg Eu66xvA8GN4QF8RD7HdRGpFupJPPgNeeOT6BJpZFb10vbm/c7pYFswOEM4aGpGX4xKwQ m+u5kkUd7abn6/N15JJ50/FDp9CgA7p4AZZvsHFwpGGNgvdYVbpY0dxno/XIKkrNka2O zWzB/7xy6TCqonGXxr8b5nKZkmLIb7qwcLmAmVvD7Svohjh7uknfSdriJagSqFmOmdHz Kskd0a4u6F40LAzf7LY0nRmQ/ZfY6N6LC3JTovVCXTq4tmcvUimqWAqj49BDoOJwT039 ks5A== X-Forwarded-Encrypted: i=1; AJvYcCWWsFgZ8yksigeumFYZKgjxmY6UbzRce/qNGfxfrmr1pmHyaNnG4z3riNQ9eg3VcoC4Cz4=@dpdk.org X-Gm-Message-State: AOJu0YxEpWfIIcOBuOsW272Tutpt8Mab/q10yu6okEACkrBLtauasXQI k4dOKdHKM2tKmwSy7WSrzy4uGDRpTRCk5qfbYAzHcEG+oD/jQTq/AyH/qrT6NbV2CUMHO6mCQRs 9HeUdnERlV/ZKZ96l6qRUspNcV6dedpNjEMcTwg== X-Google-Smtp-Source: AGHT+IFjTBG0bwkuBNV3OkqNMdIaiXOjvb97eEdzBAdUjYtHm69FVkzSUi6MJBG24fsPmzyDWspBq3m5QKph6P24ssQ= X-Received: by 2002:a17:90a:d502:b0:2d3:df93:1e67 with SMTP id 98e67ed59e1d1-2d646bb681amr9832801a91.12.1724690556316; Mon, 26 Aug 2024 09:42: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: Jeremy Spewock Date: Mon, 26 Aug 2024 12:42:25 -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, probb@iol.unh.edu, paul.szczepanek@arm.com, Luca.Vizzarro@arm.com, npratte@iol.unh.edu, dmarx@iol.unh.edu, alex.chapman@arm.com, dev@dpdk.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 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. I didn't know this was a thing in Python Enums. It was very strange to me at first, but thinking about this more it makes some sense. > > 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: Jeremy Spewock