File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -938,6 +938,24 @@ static int hvs_remove(struct hv_device *hdev)
938
938
return 0 ;
939
939
}
940
940
941
+ /* hv_sock connections can not persist across hibernation, and all the hv_sock
942
+ * channels are forced to be rescinded before hibernation: see
943
+ * vmbus_bus_suspend(). Here the dummy hvs_suspend() and hvs_resume()
944
+ * are only needed because hibernation requires that every vmbus device's
945
+ * driver should have a .suspend and .resume callback: see vmbus_suspend().
946
+ */
947
+ static int hvs_suspend (struct hv_device * hv_dev )
948
+ {
949
+ /* Dummy */
950
+ return 0 ;
951
+ }
952
+
953
+ static int hvs_resume (struct hv_device * dev )
954
+ {
955
+ /* Dummy */
956
+ return 0 ;
957
+ }
958
+
941
959
/* This isn't really used. See vmbus_match() and vmbus_probe() */
942
960
static const struct hv_vmbus_device_id id_table [] = {
943
961
{},
@@ -949,6 +967,8 @@ static struct hv_driver hvs_drv = {
949
967
.id_table = id_table ,
950
968
.probe = hvs_probe ,
951
969
.remove = hvs_remove ,
970
+ .suspend = hvs_suspend ,
971
+ .resume = hvs_resume ,
952
972
};
953
973
954
974
static int __init hvs_init (void )
You can’t perform that action at this time.
0 commit comments