Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp791254rwb; Fri, 23 Sep 2022 04:20:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4/iT1BXf7Eign7BjmxpWLLj47BUgBe1uyhMmHgrL3HB19iOxvmOGII2yXcsYiv1YsWCWvq X-Received: by 2002:a17:902:eb82:b0:176:c0e0:55c1 with SMTP id q2-20020a170902eb8200b00176c0e055c1mr7950302plg.168.1663932044458; Fri, 23 Sep 2022 04:20:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663932044; cv=none; d=google.com; s=arc-20160816; b=j443iXpyZjitxyTzFwacS7CZPPbCLd9LNo9pCeql30Vjuzw7h7YJe6daj7n3bLsCH2 NcnqG0VZwzzVg8awMnBfsqOpHUGapcjcK3nBK0cNAEHtM7eLSHOFvUi14vrJwMGbSlA0 pnNWvmQC0CHXUdjUtzrfnKSOcMYyyrkbN0dff3NOKbs4XTswMJhH6qDdamk2KhrI6suq s1NfnWg9fdmvMQ6FuSAxl/w63ozBo8DN3xJcCnJWd3xuMJr1wG5dOF+FGFS/h57ZgDa6 24GkE/6BpTQ1u3q/xRrIXUBMwv4a9JIZneaNw5zNttwD2CAzmTP5RbmXZY5qdNRXhrsh DUYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=A9wlHYFAq0AQmjZo7EO8S4zutuhpaxaPGL/xvuEkjLw=; b=0sSKhfTqhBB+9yaAT8Pl78Fzr+7gN4LO84dmuUzcaGTSHruRXc/wXa3CYMsji07yne tVvnwlKixAsewSYNjNpVhgRcQBleCc2xQaL0b4T4YQBMNxFwjBRBGuRg9ue5r5YmBllN 56eZZhN1LR9dAdnbPRGw0I7+wyDvJso9JLscXwrCh2NM+ZQrX2fXB3/oc4k/nt1H3yBc O4i+BF7iRQNGVYLCwUVUxA4G4mSxKHsg1ITllUjuCYTBg1mFbwcjORF+KzXMoj0i2/4r kZ/A4HX2oxWjT+iGNZjvdClh0KM0njoaq7mStJAG57eUKKZQVXL2T9G6aPs504KhYQst TwlQ== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e63-20020a636942000000b003fe34317ce2si8751392pgc.778.2022.09.23.04.20.32; Fri, 23 Sep 2022 04:20:44 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231253AbiIWKcc (ORCPT + 99 others); Fri, 23 Sep 2022 06:32:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231184AbiIWKcF (ORCPT ); Fri, 23 Sep 2022 06:32:05 -0400 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3E2A11E940; Fri, 23 Sep 2022 03:31:43 -0700 (PDT) Received: by mail-wr1-f46.google.com with SMTP id cc5so19756090wrb.6; Fri, 23 Sep 2022 03:31:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=A9wlHYFAq0AQmjZo7EO8S4zutuhpaxaPGL/xvuEkjLw=; b=SQD4nUUWYh7NcKGyvqv90wFeI+5RweyAoH8VUQ9lDvchl9JWpkc6W4jjtUvLROKRvo AUIHX2RVuHDAQrLdAbYd+DdRBMwmrRVfpT+lYiXIEghhUzraQr2OBuuguFFCfrakny36 sZMoSzPwMW6RTcDTBwnoOmoap8LKwZcmRuOwFu/bLNcBh9E5bqOq2Mn9bgXPMjKIo0m6 uDhaRkRJp0feYhU94KtZZ85Y562rdwaJRScA2WcxN7+vezT0AsBUP+wsueViGuH+RA0T zPdUjzjAa0YJZ8nOyEZObYgB1BYu8OqtW0EzBo5ySGgWvuMjeS/2XJvPIDlVCfOwS7oC QfCQ== X-Gm-Message-State: ACrzQf0oo2XWoFmc1pHuQAg1oczsUQPi3G+KdgPzP5M1kz/9Wkh2GCVE bcLWw4oTOPVH16OpVcrUKtI= X-Received: by 2002:a5d:6481:0:b0:228:dc1f:4f95 with SMTP id o1-20020a5d6481000000b00228dc1f4f95mr4819035wri.298.1663929101394; Fri, 23 Sep 2022 03:31:41 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id u15-20020a05600c19cf00b003a2f2bb72d5sm2600840wmq.45.2022.09.23.03.31.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Sep 2022 03:31:40 -0700 (PDT) Date: Fri, 23 Sep 2022 10:31:39 +0000 From: Wei Liu To: "Michael Kelley (LINUX)" Cc: Easwar Hariharan , KY Srinivasan , Haiyang Zhang , Stephen Hemminger , "wei.liu@kernel.org" , Dexuan Cui , "linux-hyperv@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] hv: Use PCI_VENDOR_ID_MICROSOFT for better discoverability Message-ID: References: <1663625084-2518-1-git-send-email-eahariha@linux.microsoft.com> <1663625084-2518-2-git-send-email-eahariha@linux.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no 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 On Thu, Sep 22, 2022 at 10:43:24PM +0000, Michael Kelley (LINUX) wrote: > From: Michael Kelley (LINUX) Sent: Thursday, September 22, 2022 3:39 PM > > > > From: Easwar Hariharan Sent: Monday, September > > 19, 2022 3:05 PM > > > > > > pci_ids.h already defines PCI_VENDOR_ID_MICROSOFT, and is included via > > > linux/pci.h. Use the define instead of the magic number. > > > > > > Signed-off-by: Easwar Hariharan > > > --- > > > drivers/hv/vmbus_drv.c | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c > > > index 3c833ea..f2efb74 100644 > > > --- a/drivers/hv/vmbus_drv.c > > > +++ b/drivers/hv/vmbus_drv.c > > > @@ -2052,7 +2052,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 > > > > Reviewed-by: Michael Kelley > > Actually, a nit: The short commit message should start with "Drivers: hv:" or > "Drivers: hv: vmbus:". Check the commit history on vmbus_drv.c and you'll > see the standard usage. I fixed up the commit message and applied it to hyperv-next. Thanks. > > Michael >