lkml.org 
[lkml]   [2013]   [Oct]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] VFIO: platform: allow the driver to bind to any device explicitly via sysfs
Date
Set match_any_dev and sysfs_bind_only such that echoing a platform
device ID to the driver sysfs bind file will successfully match and bind
the device to the vfio-platform meta-driver in accordance to the
desired semantics for vfio drivers.

Signed-off-by: Kim Phillips <kim.phillips@linaro.org>
---
this patch depends on the vfio-platform WIP:

http://www.spinics.net/lists/kvm/msg96701.html

drivers/vfio/vfio_platform.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/vfio/vfio_platform.c b/drivers/vfio/vfio_platform.c
index b92d7bb..c42d50d 100644
--- a/drivers/vfio/vfio_platform.c
+++ b/drivers/vfio/vfio_platform.c
@@ -297,7 +297,9 @@ static struct platform_driver vfio_platform_driver = {
.name = "vfio-platform",
.owner = THIS_MODULE,
.of_match_table = vfio_platform_match,
+ .sysfs_bind_only = true,
},
+ .match_any_dev = true,
};

module_platform_driver(vfio_platform_driver);
--
1.8.4


\
 
 \ /
  Last update: 2013-10-11 08:41    [W:0.703 / U:0.956 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site