From patchwork Wed Aug 18 19:01:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 499520 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 40935C4320A for ; Wed, 18 Aug 2021 19:07:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2A59F60F35 for ; Wed, 18 Aug 2021 19:07:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233214AbhHRTHz (ORCPT ); Wed, 18 Aug 2021 15:07:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233226AbhHRTHo (ORCPT ); Wed, 18 Aug 2021 15:07:44 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E014C06179A; Wed, 18 Aug 2021 12:07:08 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id r7so5191294wrs.0; Wed, 18 Aug 2021 12:07:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=mBZb63SSLEPVDr6WHI9UQlUQ97X47DnKLHPVD6K6nag=; b=ASr2s5JJFnL15u3/P12jOQlhD5UagdZPSygAS9XhbGepJZ4MTnQo1WjgPaZTcxcSe1 imeRJHDsf+C/8HQWv96h3W0BL6GRBaxzUQDVQrgu9HoBtiGrXibUK4gwHff7kua0HKCc mViI3ouR/j3VkCFbASGQfswjgBj5slptoONvNbItOgFJvOBEZEEKGUgxuu+t8VKcKDnh FcdKU1qV0pOugBEFY6nH9Ai99+BxVT5JDz+iuEYLyVphxX4CiGyAoO7l5ebMSQI6bgb+ mB95nGrlZAdsZW6l19jXYNdYqCuVxkQLi9myqx9XyAOnF0/mTkhZC0yKy0ZPx0u/ULAM CezA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=mBZb63SSLEPVDr6WHI9UQlUQ97X47DnKLHPVD6K6nag=; b=DF5LrreqdXWzvTFVphGUQMHwvTL5OVUUgQaYytBNu3w3B3yEyswu74Z3XvH/i3ySJa 6CVAU224xL281qPDdAqnzGWHpAqLief/FaomB7uf6+J45sz4A70v65htGoyOTp5DQzcY 1ly6y0/QIeaet0+6ZJ4CbdIamrEjomGDXGBn/fEGdz9pnHtpwS0DbDQD+zsTLhvWDce4 SysU3PYAmKU4WWyxbh7+fJwVB2SBevZyYOo6TIASmxn12HX6pNScKk9Y+0UrZY8KXq+O +TVusXbzqpBVfVXydfIvnVRylzL0Sdw4FwWOZ3Y6hw2EvmP1+vvgJouwOHB4JyjCOmRy Fezg== X-Gm-Message-State: AOAM531xnebKnAWech16GXQfQP9Y2MgE/cckS1NdDOdWWxiQIn+eM+3y NdJ7jTlUVKWogPFplCvmhqrcI5CD2XuEyg== X-Google-Smtp-Source: ABdhPJyVfFkpxkHBgwdxdMCFQcX6ifkI1AmXZcsApQrNQnMnhU97MI5UBtB9HBt41tp9yenhNxtQIg== X-Received: by 2002:a05:6000:1864:: with SMTP id d4mr12998155wri.250.1629313626710; Wed, 18 Aug 2021 12:07:06 -0700 (PDT) Received: from ?IPv6:2003:ea:8f08:4500:5c16:403a:870d:fceb? (p200300ea8f0845005c16403a870dfceb.dip0.t-ipconnect.de. [2003:ea:8f08:4500:5c16:403a:870d:fceb]) by smtp.googlemail.com with ESMTPSA id s1sm5719988wmh.46.2021.08.18.12.07.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 18 Aug 2021 12:07:06 -0700 (PDT) Subject: [PATCH 3/8] PCI/VPD: Add missing VPD RO field keywords From: Heiner Kallweit To: Edward Cree , Martin Habets , Siva Reddy Kallam , Prashant Sreedharan , Michael Chan , David Miller , Jakub Kicinski Cc: "linux-pci@vger.kernel.org" , "netdev@vger.kernel.org" References: Message-ID: <58b7b0d7-4320-fe1d-4c45-7b360f7ea3d7@gmail.com> Date: Wed, 18 Aug 2021 21:01:42 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This patch adds further keywords that are defined in the PCI spec. Signed-off-by: Heiner Kallweit --- include/linux/pci.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/pci.h b/include/linux/pci.h index a82f5910f..629c810ae 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -2274,6 +2274,8 @@ int pci_enable_atomic_ops_to_root(struct pci_dev *dev, u32 cap_mask); #define PCI_VPD_RO_KEYWORD_MFR_ID "MN" #define PCI_VPD_RO_KEYWORD_VENDOR0 "V0" #define PCI_VPD_RO_KEYWORD_CHKSUM "RV" +#define PCI_VPD_RO_KEYWORD_ECLEVEL "EC" +#define PCI_VPD_RO_KEYWORD_EXTCAP "CP" /** * pci_vpd_lrdt_size - Extracts the Large Resource Data Type length