Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2350019rwn; Fri, 9 Sep 2022 12:14:57 -0700 (PDT) X-Google-Smtp-Source: AA6agR7b53lmaWDsNwM0UfMcS4fGXItsoQKXncT/drT7hdrib88Zpy+LUwJIKISZca2awUbgGZCv X-Received: by 2002:a17:907:7e8e:b0:741:362a:9678 with SMTP id qb14-20020a1709077e8e00b00741362a9678mr10352320ejc.499.1662750897360; Fri, 09 Sep 2022 12:14:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662750897; cv=none; d=google.com; s=arc-20160816; b=m3OLBCk4pULKJdYAFcBW48OQNQCsHLr1jJkdi63BQOImMDPOGJ78nrrz4PG/oQwZiP UiEtnifRrPlCVd51s13DIIhou075X0Na5BsfgOrXW6I8QyIGMrWIjrk3lvhLvZtYadqI BBFn5zsuUQvPjzM9V+7K7SQxDo5IrXB3axI4Ux7hN+6eZHYb4+w3j3Cw6fDxD0pA+h9p gRhKx2/186KkHtprA/HGD3W10Momh54MTAnhGJTXHxkEq+S1fmnSBvNQcUAI+zhay0tL gzkJ76oQwd4Gi+MCaaf6QQvQuObaSVMublck5zLkfSwdITM+gwdl5TgwV7YTP/b74Vu/ 6zNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :to:from:dkim-signature:dkim-filter; bh=hKvp7xsxus8CJFQ+InVqMrBcREIdThrCu+sov09IzSo=; b=FTwDD+mRM1NqK5ROeT7GPvNDOEiwQgLZQhqreRA8t6VTVM4BU1W0MOLoRjuDlQjULh ZAVeoxtmNlFbIwG39JdvQDIQMfjpHbQnkWWC/wS1NqO6BjqMhOVCncq2gbMbaoioBqcB ktE0tykaOpFU4vKjE3QtDL1TEUyqD71BQeNCWh98xDUZru+xYyXinY6Blfwfte6sedKo zE4cvuwvjhFslI5+wVrq1nouDjoOsm7SComLAaIsg1UmnlZERdVh25DaSv8XiUPS98MC CqGQ4s4nHEC3N6SffB3RYcPlh9jKyIH9H7x2WcZU7ey+O0MyDKipDf5DyWkN+H+jdI60 1gcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=htS28ax+; 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 dr11-20020a170907720b00b0073d594889fasi1188695ejc.314.2022.09.09.12.14.31; Fri, 09 Sep 2022 12:14:57 -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=htS28ax+; 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 S229806AbiIISum (ORCPT + 99 others); Fri, 9 Sep 2022 14:50:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229712AbiIISuk (ORCPT ); Fri, 9 Sep 2022 14:50:40 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7402D8D3F0; Fri, 9 Sep 2022 11:50:39 -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 D7B4E20B929C; Fri, 9 Sep 2022 11:50:38 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com D7B4E20B929C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1662749438; bh=hKvp7xsxus8CJFQ+InVqMrBcREIdThrCu+sov09IzSo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=htS28ax+dhxwlIl8INCWvyEL2p15a5i4WfPWKNQDZID9ZVjTnxL4x62qlau32G8P2 ITzmCbaXGgz1PmOfZQjjOkta3FyjLy2CDRiq+VzaPjmnkrlwe/ZPDELUTD3y3vJICP utBRVzYelJO31bf6+WqD2B2M34Y30kLcOQquG4Cc= From: Easwar Hariharan To: vkuznets@redhat.com, "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 v2 1/2] hv: Use PCI_VENDOR_ID_MICROSOFT for better discoverability Date: Fri, 9 Sep 2022 11:50:24 -0700 Message-Id: <1662749425-3037-2-git-send-email-eahariha@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1662749425-3037-1-git-send-email-eahariha@linux.microsoft.com> References: <87leqsr6im.fsf@redhat.com> <1662749425-3037-1-git-send-email-eahariha@linux.microsoft.com> 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 3c833ea..6b77a53 100644 --- a/drivers/hv/vmbus_drv.c +++ b/drivers/hv/vmbus_drv.c @@ -39,6 +39,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; @@ -2052,7 +2054,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