Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756623Ab3JKG1s (ORCPT ); Fri, 11 Oct 2013 02:27:48 -0400 Received: from mail-oa0-f47.google.com ([209.85.219.47]:38240 "EHLO mail-oa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752632Ab3JKG1b (ORCPT ); Fri, 11 Oct 2013 02:27:31 -0400 From: Kim Phillips To: Bhushan Bharat , Wood Scott , Yoder Stuart , christoffer.dall@linaro.org, alex.williamson@redhat.com, linux-kernel@vger.kernel.org, a.motakis@virtualopensystems.com, agraf@suse.de, Sethi Varun , peter.maydell@linaro.org, santosh.shukla@linaro.org, kvm@vger.kernel.org, gregkh@linuxfoundation.org Subject: [PATCH] VFIO: platform: allow the driver to bind to any device explicitly via sysfs Date: Fri, 11 Oct 2013 01:27:20 -0500 Message-Id: <1381472840-3470-4-git-send-email-kim.phillips@linaro.org> X-Mailer: git-send-email 1.8.4 In-Reply-To: <1381472840-3470-1-git-send-email-kim.phillips@linaro.org> References: <1381418830.7979.405.camel@snotra.buserror.net> <1381472840-3470-1-git-send-email-kim.phillips@linaro.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1175 Lines: 36 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 --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/