diff mbox series

[eoan:linux-azure,1/4] Revert "UBUNTU: SAUCE: pci-hyperv: Use only 16 bit integer for PCI domain"

Message ID 20200426204627.121419-2-marcelo.cerri@canonical.com
State New
Headers show
Series LP:#1867220 - Assignment of VDEV Somtimes Fails using Intel QAT | expand

Commit Message

Marcelo Henrique Cerri April 26, 2020, 8:46 p.m. UTC
BugLink: https://bugs.launchpad.net/bugs/1867220

This reverts commit 5106ea7eace25bac7add4da0940431439f06cdd7.

Signed-off-by: Marcelo Henrique Cerri <marcelo.cerri@canonical.com>
---
 drivers/pci/controller/pci-hyperv.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/drivers/pci/controller/pci-hyperv.c b/drivers/pci/controller/pci-hyperv.c
index 2c6a82a41d5c..8a30c1693699 100644
--- a/drivers/pci/controller/pci-hyperv.c
+++ b/drivers/pci/controller/pci-hyperv.c
@@ -1630,11 +1630,9 @@  static struct hv_pci_dev *new_pcichild_device(struct hv_pcibus_device *hbus,
 	 * can have shorter names than based on the bus instance UUID.
 	 * Only the first device serial number is used for domain, so the
 	 * domain number will not change after the first device is added.
-	 * The lower 16 bits of the serial number is used, otherwise some
-	 * drivers may not be able to handle it.
 	 */
 	if (list_empty(&hbus->children))
-		hbus->sysdata.domain = desc->ser & 0xFFFF;
+		hbus->sysdata.domain = desc->ser;
 	list_add_tail(&hpdev->list_entry, &hbus->children);
 	spin_unlock_irqrestore(&hbus->device_list_lock, flags);
 	return hpdev;