Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1207547rwn; Thu, 8 Sep 2022 15:30:00 -0700 (PDT) X-Google-Smtp-Source: AA6agR6YWm/3yobRGaSYykIhnzCYcf28Nej2cCO6XBrRg37/IICT56nfp26q0jD95nfBKxpKVqmu X-Received: by 2002:ac2:418a:0:b0:48b:aa2:1d9f with SMTP id z10-20020ac2418a000000b0048b0aa21d9fmr3648712lfh.195.1662676200050; Thu, 08 Sep 2022 15:30:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662676200; cv=none; d=google.com; s=arc-20160816; b=Hb+h3uzrZnNwprnYTEv+lnLlXFpzlamwAZ9aKQ8bP5jiUMIVzUhYdT7HpxxicQkkzc YI7iw3QlyH4U6SIC4haBHMqnwK1XkfTVa1L2x59GRSsT8fTRmfNTZ+pO5ba3WG4G/DgI IOr54sqeAw7WWFxXM2hxeLxm3yX3b/gyb7D+phIsJIenhsAzBSS62MsOGN59PyGYc2jn KQFeDUQB5i7cIASnCVzU6+YE+vX4wkufvoXxNyhhC/baqF9il86niHALgsIa2EFxx6Me Ynidiv/d8B8PYMkYB8ckIY5m/qhIiwtVXVrLL03gRy9Fzzld+0exmIsZ88uRxK4A9B9w zSHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:to:from:dkim-signature :dkim-filter; bh=0IklZrohBoUgnAuhKbvOAkhT6zLzbap5UEa4RgA+F/w=; b=BKzUaBzBMCz+7Lv1+fJCajXpDf9xh3IslFhlFc3wd65Sp1QYv+QTt9WY/1e3op6ePC gqTwdUrUvrqShQ7547xp68E+4ZMpImWfADgPC57NNv5fs68d7oOuTIsvq/yLX5V5o79H NkBiKgoHW4rQ5K9V2qdGWoZQrQAI7H3mDZCIaJ6CpylJMvPP7AH+7Tg3mZAqWWiFu3pK dfEFuBNj5RwuJBpeTFyFIu+c7evgF9UtdRj8YxlHD5yszfCRqKnPdob9AbGz08yoWoc2 3IclBlcOLSf727a6OzMThHoBxZbnEH5/R4V9+S/dzVhbsywJBKq5d2zPkYJUITnDeM4q +3cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=MZWIlwSc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j5-20020a056512108500b0049479309f7esi22033lfg.498.2022.09.08.15.29.30; Thu, 08 Sep 2022 15:30:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=MZWIlwSc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229686AbiIHWGL (ORCPT + 99 others); Thu, 8 Sep 2022 18:06:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229549AbiIHWGJ (ORCPT ); Thu, 8 Sep 2022 18:06:09 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E0C4EB81F6; Thu, 8 Sep 2022 15:06:05 -0700 (PDT) Received: from linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net (linux.microsoft.com [13.77.154.182]) by linux.microsoft.com (Postfix) with ESMTPSA id 8FC45204A5AD; Thu, 8 Sep 2022 15:06:05 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 8FC45204A5AD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1662674765; bh=0IklZrohBoUgnAuhKbvOAkhT6zLzbap5UEa4RgA+F/w=; h=From:To:Subject:Date:From; b=MZWIlwSc+8A14CQFzY+ccAFtsiT73bXIW528iVOQbMQ89q914u/kIk/6QXeH3kHPX y30zze+rLi2jUJHKM6+eoOw7fcg/GEQ0AEp+97X6yoRv2w4A3LSaB9Ote6J5YiT5AY AIpqtH+woiR2fqO6ch0uDQ19ODjlm7tWPRxn3roY= From: eahariha@linux.microsoft.com To: "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , Dexuan Cui , linux-hyperv@vger.kernel.org (open list:Hyper-V/Azure CORE AND DRIVERS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 1/3] hv: Use PCI_VENDOR_ID_MICROSOFT for better discoverability Date: Thu, 8 Sep 2022 15:05:55 -0700 Message-Id: <1662674757-31945-1-git-send-email-eahariha@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 X-Spam-Status: No, score=-19.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Easwar Hariharan Signed-off-by: Easwar Hariharan --- drivers/hv/vmbus_drv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index 23c680d..8d90855 100644 --- a/drivers/hv/vmbus_drv.c +++ b/drivers/hv/vmbus_drv.c @@ -38,6 +38,8 @@ #include #include "hyperv_vmbus.h" +#define PCI_VENDOR_ID_MICROSOFT 0x1414 + struct vmbus_dynid { struct list_head node; struct hv_vmbus_device_id id; @@ -2051,7 +2053,7 @@ struct hv_device *vmbus_device_create(const guid_t *type, child_device_obj->channel = channel; guid_copy(&child_device_obj->dev_type, type); guid_copy(&child_device_obj->dev_instance, instance); - child_device_obj->vendor_id = 0x1414; /* MSFT vendor ID */ + child_device_obj->vendor_id = PCI_VENDOR_ID_MICROSOFT; return child_device_obj; } -- 1.8.3.1