Skip to content

Commit 0338313

Browse files
benh-debiangregkh
authored andcommitted
uio_hv_generic: Bind to FCopy device by default
commit 87d3621 upstream. The Hyper-V kernel-mode fcopy driver was removed in 6.10 and the new fcopy daemon requires this uio driver to function. However, by default the driver does not bind to any devices, and must be configured through the sysfs "new_id" file. Since the FCopy device is now only usable through this driver, add its ID to the driver's ID table so that the daemon will work "out of the box". Signed-off-by: Ben Hutchings <benh@debian.org> Fixes: ec314f6 ("Drivers: hv: Remove fcopy driver") Cc: stable <stable@kernel.org> Link: https://patch.msgid.link/ahQ6xuhSReidmN-3@decadent.org.uk Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 086a9ae commit 0338313

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

drivers/uio/uio_hv_generic.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,9 +395,15 @@ hv_uio_remove(struct hv_device *dev)
395395
vmbus_free_ring(dev->channel);
396396
}
397397

398+
static const struct hv_vmbus_device_id hv_uio_id_table[] = {
399+
{ HV_FCOPY_GUID },
400+
{}
401+
};
402+
MODULE_DEVICE_TABLE(vmbus, hv_uio_id_table);
403+
398404
static struct hv_driver hv_uio_drv = {
399405
.name = "uio_hv_generic",
400-
.id_table = NULL, /* only dynamic id's */
406+
.id_table = hv_uio_id_table,
401407
.probe = hv_uio_probe,
402408
.remove = hv_uio_remove,
403409
};

0 commit comments

Comments
 (0)