Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2382623lqp; Sun, 24 Mar 2024 17:00:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWCDaqCZz4kHdIjYSxlNO/cJGThe5v2yqToXzBb2QKV1OX3k9QtlWJO99an5fVYZDtr2NUo6rVb5fEP9pobDrxI1rD7le3UhyDRZl43wQ== X-Google-Smtp-Source: AGHT+IGlkKF1HDZNSZs7fcH716KoCGNEojO3KxPWO8idrso/0cyW4qpcEjhuwfkc9QfCJ3InMYlQ X-Received: by 2002:a05:6808:1392:b0:3c3:cb3a:1704 with SMTP id c18-20020a056808139200b003c3cb3a1704mr3559390oiw.15.1711324802878; Sun, 24 Mar 2024 17:00:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711324802; cv=pass; d=google.com; s=arc-20160816; b=pE0dwZuyclXK5VS5yMbkHdZy8GzFIlYsDNoPFSrRFxbIF4DIXusHyY3lPdN6KlkOcb RCOuRm5ma6uU1GIfZxal11m5AGJ1wAERzQCXFRLEGIyuQSYMCWm29I+ApErr6rpRQXfR lX3SSPEGKYYzLbHc4u+02oActrSu0bIFIaI3LZGwmiXp76CuLO8jPE9DR8u30Ku33Xxu FjcK/tbc5q9h8PL+b1oDLlwUMDTbkOmuiODBoZmP/FWQYq8I5FbpCiVfRa0SOyQRYBbE PP8q6UPxbCkBKBjHCY8ZOFqIm+S9ikS1P1S9lwcv1o1TODv3ljysO+1n/mXujg7IrGqV chSQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=7CKpM0TCpoJTRV/8KwOT7ittOWqpO0QLFvM6GgZ7fzE=; fh=UoT9CHVbkh/bwwzpx2W8tt++FMYIK87rEtdyrsJWMWA=; b=z4OyHkCUHhtX2gK78CKoZbcT9H4K4+3QyX+/5W5v8AbmqGMOcLFa6tQRLNp61FbjAR Wt6vD3KUzIcLz+eMMEPkNK3AHTZSNSNhyZWocqffWlbgPEsFl77ELgHiIWHkL7EQoZrd 5A3YhzoCSkjBNUd9bmLykZfF/ae1N/FtfRLZ83D0koteXblvWN0P9uL6fKGm2cV2m+ri vmJ7UKMldKIh2aAEdYXatTWUX3c4bOp3Ty69fZZxt3aHo/leAthDOJ+8bK8/Bqv7a+4f QI4YKnHL2eiDVtDujBkEuleFogeZebYj6VssmZ0QD4H4dWmTvlXDNi3cF4wTvU3KYQ/i j4Dw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ha5vsQVj; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113214-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113214-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id g13-20020a63fa4d000000b005eb4df79741si6380179pgk.533.2024.03.24.17.00.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 17:00:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113214-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ha5vsQVj; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113214-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113214-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id BC4C1B23BAD for ; Sun, 24 Mar 2024 23:46:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C549513C80B; Sun, 24 Mar 2024 22:40:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ha5vsQVj" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C2B5017F38F; Sun, 24 Mar 2024 22:40:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320015; cv=none; b=HrbC2+I8bwXlr+1rm9CclsNdf85OROmuRUTr3CEkfGLW7qS4RnhSA4WoyQZPZBX1km1240eQ0VEpnuYZffj7qI+yeLQ1ZEF4M5XeUQGd0Njz0jhCvFPmdHJWKiC+jun/f5eLOCL9IAk1g7z/RMPTiDnWm6KLvZXEvhjTuMM5w50= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320015; c=relaxed/simple; bh=xFqGKpyx47Kh25uyLbApAyioWas3r0gmrmDyV1O32aU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WEEz0qVRlEItBY4hd2ZmHhwjuXpoKZ6LMKao448F74tHxeWQEh9Rd6ZEruaxI2kaby2Y+IUlIjWKZ3RR+ht1wSU5FYK7wggr+S7JTFNNmRCMEbVSwjC9l3xeJy7ZIlmj5AUF6hLRNvQ5YwJZM2kURdk988CvbOR3lS9rlAH5stc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ha5vsQVj; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B2C48C433C7; Sun, 24 Mar 2024 22:40:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320015; bh=xFqGKpyx47Kh25uyLbApAyioWas3r0gmrmDyV1O32aU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ha5vsQVjhUJAKfSGUq3hOk1dFclMFVpuHvV9/zhhqHhFJPjMY6j3oZJ9zWECY8wx4 yz4ChDdfJZYgZXYuGQqchxhcV0dr5pZLguyWudBjAP6nL+RhmxrjUIENyVKosK9b2b AQiTsiWILwpKQlrMGQ1WXq7lbkleo4c5mMHDSexbe4YZ7otcqkOVqAroS9KtCfUHSX pZklloPiCbSQ56ZJrurwyRKr+TBRrFGjks/dmNNu2jt1WrrhwkdHWCKT9+LRkXZf7q 1ste+galcrPZBY9zdCg/+RbdAT76Kui5JsLcu94xW62umtfAmI//fZTavOhEy9zJcL 2c9hoTXnApzXA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Jiri Pirko , Jakub Kicinski , Sasha Levin Subject: [PATCH 6.8 323/715] dpll: spec: use proper enum for pin capabilities attribute Date: Sun, 24 Mar 2024 18:28:22 -0400 Message-ID: <20240324223455.1342824-324-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Jiri Pirko [ Upstream commit 5c497a64820ef9f10962a9c37607df45d6395fa5 ] The enum is defined, however the pin capabilities attribute does refer to it. Add this missing enum field. This fixes ynl cli output: Example current output: $ sudo ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/dpll.yaml --do pin-get --json '{"id": 0}' {'capabilities': 4, ... Example new output: $ sudo ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/dpll.yaml --do pin-get --json '{"id": 0}' {'capabilities': {'state-can-change'}, ... Fixes: 3badff3a25d8 ("dpll: spec: Add Netlink spec in YAML") Signed-off-by: Jiri Pirko Reviewed-by: Jakub Kicinski Link: https://lore.kernel.org/r/20240306120739.1447621-1-jiri@resnulli.us Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- Documentation/netlink/specs/dpll.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/netlink/specs/dpll.yaml b/Documentation/netlink/specs/dpll.yaml index 3dcc9ece272aa..d0c821c202036 100644 --- a/Documentation/netlink/specs/dpll.yaml +++ b/Documentation/netlink/specs/dpll.yaml @@ -274,6 +274,7 @@ attribute-sets: - name: capabilities type: u32 + enum: pin-capabilities - name: parent-device type: nest -- 2.43.0