Home Home > GIT Browse > openSUSE-15.0
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlaf Hering <ohering@suse.de>2018-11-06 10:54:57 +0100
committerOlaf Hering <ohering@suse.de>2018-11-06 10:54:57 +0100
commitba6543f8922ab4ece22c167807a45a8841473997 (patch)
tree76ecd08a90cbc02a5fffc66b1442b7dd55bd1c90
parentdfcddc618aad686c60d2398962d22a9f4a81e1e4 (diff)
use the new async probing feature for the hyperv drivers
(bsc#1109772).
-rw-r--r--patches.suse/msft-hv-1718-use-the-new-async-probing-feature-for-the-hyperv-dri.patch126
-rw-r--r--series.conf1
2 files changed, 127 insertions, 0 deletions
diff --git a/patches.suse/msft-hv-1718-use-the-new-async-probing-feature-for-the-hyperv-dri.patch b/patches.suse/msft-hv-1718-use-the-new-async-probing-feature-for-the-hyperv-dri.patch
new file mode 100644
index 0000000000..5ace2f8ebb
--- /dev/null
+++ b/patches.suse/msft-hv-1718-use-the-new-async-probing-feature-for-the-hyperv-dri.patch
@@ -0,0 +1,126 @@
+From: Arjan van de Ven <arjan@linux.intel.com>
+Date: Tue, 5 Jun 2018 13:37:49 -0700
+Patch-mainline: v4.19-rc1
+Subject: use the new async probing feature for the hyperv drivers
+Git-commit: af0a5646cb8d03f33ef028eff5b92996e53da201
+References: bsc#1109772
+
+Recent kernels support asynchronous probing; most hyperv drivers
+can be probed async easily so set the required flag for this.
+
+Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
+Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
+Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+Acked-by: Olaf Hering <ohering@suse.de>
+---
+ drivers/hid/hid-hyperv.c | 3 +++
+ drivers/hv/hv_balloon.c | 3 +++
+ drivers/hv/hv_util.c | 3 +++
+ drivers/input/serio/hyperv-keyboard.c | 3 +++
+ drivers/net/hyperv/netvsc_drv.c | 3 +++
+ drivers/scsi/storvsc_drv.c | 3 +++
+ drivers/video/fbdev/hyperv_fb.c | 6 ++++++
+ 7 files changed, 24 insertions(+)
+
+diff --git a/drivers/hid/hid-hyperv.c b/drivers/hid/hid-hyperv.c
+--- a/drivers/hid/hid-hyperv.c
++++ b/drivers/hid/hid-hyperv.c
+@@ -598,6 +598,9 @@ static struct hv_driver mousevsc_drv = {
+ .id_table = id_table,
+ .probe = mousevsc_probe,
+ .remove = mousevsc_remove,
++ .driver = {
++ .probe_type = PROBE_PREFER_ASYNCHRONOUS,
++ },
+ };
+
+ static int __init mousevsc_init(void)
+diff --git a/drivers/hv/hv_balloon.c b/drivers/hv/hv_balloon.c
+--- a/drivers/hv/hv_balloon.c
++++ b/drivers/hv/hv_balloon.c
+@@ -1765,6 +1765,9 @@ static struct hv_driver balloon_drv = {
+ .id_table = id_table,
+ .probe = balloon_probe,
+ .remove = balloon_remove,
++ .driver = {
++ .probe_type = PROBE_PREFER_ASYNCHRONOUS,
++ },
+ };
+
+ static int __init init_balloon_drv(void)
+diff --git a/drivers/hv/hv_util.c b/drivers/hv/hv_util.c
+--- a/drivers/hv/hv_util.c
++++ b/drivers/hv/hv_util.c
+@@ -487,6 +487,9 @@ static struct hv_driver util_drv = {
+ .id_table = id_table,
+ .probe = util_probe,
+ .remove = util_remove,
++ .driver = {
++ .probe_type = PROBE_PREFER_ASYNCHRONOUS,
++ },
+ };
+
+ static int hv_ptp_enable(struct ptp_clock_info *info,
+diff --git a/drivers/input/serio/hyperv-keyboard.c b/drivers/input/serio/hyperv-keyboard.c
+--- a/drivers/input/serio/hyperv-keyboard.c
++++ b/drivers/input/serio/hyperv-keyboard.c
+@@ -424,6 +424,9 @@ static struct hv_driver hv_kbd_drv = {
+ .id_table = id_table,
+ .probe = hv_kbd_probe,
+ .remove = hv_kbd_remove,
++ .driver = {
++ .probe_type = PROBE_PREFER_ASYNCHRONOUS,
++ },
+ };
+
+ static int __init hv_kbd_init(void)
+diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c
+--- a/drivers/net/hyperv/netvsc_drv.c
++++ b/drivers/net/hyperv/netvsc_drv.c
+@@ -2188,6 +2188,9 @@ static struct hv_driver netvsc_drv = {
+ .id_table = id_table,
+ .probe = netvsc_probe,
+ .remove = netvsc_remove,
++ .driver = {
++ .probe_type = PROBE_PREFER_ASYNCHRONOUS,
++ },
+ };
+
+ /*
+diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c
+--- a/drivers/scsi/storvsc_drv.c
++++ b/drivers/scsi/storvsc_drv.c
+@@ -1935,6 +1935,9 @@ static struct hv_driver storvsc_drv = {
+ .id_table = id_table,
+ .probe = storvsc_probe,
+ .remove = storvsc_remove,
++ .driver = {
++ .probe_type = PROBE_PREFER_ASYNCHRONOUS,
++ },
+ };
+
+ #if IS_ENABLED(CONFIG_SCSI_FC_ATTRS)
+diff --git a/drivers/video/fbdev/hyperv_fb.c b/drivers/video/fbdev/hyperv_fb.c
+--- a/drivers/video/fbdev/hyperv_fb.c
++++ b/drivers/video/fbdev/hyperv_fb.c
+@@ -912,6 +912,9 @@ static struct hv_driver hvfb_drv = {
+ .id_table = id_table,
+ .probe = hvfb_probe,
+ .remove = hvfb_remove,
++ .driver = {
++ .probe_type = PROBE_PREFER_ASYNCHRONOUS,
++ },
+ };
+
+ static int hvfb_pci_stub_probe(struct pci_dev *pdev,
+@@ -929,6 +932,9 @@ static struct pci_driver hvfb_pci_stub_driver = {
+ .id_table = pci_stub_id_table,
+ .probe = hvfb_pci_stub_probe,
+ .remove = hvfb_pci_stub_remove,
++ .driver = {
++ .probe_type = PROBE_PREFER_ASYNCHRONOUS,
++ }
+ };
+
+ static int __init hvfb_drv_init(void)
diff --git a/series.conf b/series.conf
index fc546295ee..854d13f384 100644
--- a/series.conf
+++ b/series.conf
@@ -17968,6 +17968,7 @@
patches.drivers/vmw_balloon-VMCI_DOORBELL_SET-does-not-check-status
patches.drivers/vmw_balloon-fix-VMCI-use-when-balloon-built-into-ker
patches.drivers/vmw_balloon-remove-inflation-rate-limiting
+ patches.suse/msft-hv-1718-use-the-new-async-probing-feature-for-the-hyperv-dri.patch
patches.suse/msft-hv-1721-Drivers-hv-vmbus-Fix-the-offer_in_progress-in-vmbus_.patch
patches.suse/msft-hv-1724-Tools-hv-vss-fix-loop-device-detection.patch
patches.fixes/vmci-type-promotion-bug-in-qp_host_get_user_memory.patch