]> git.baikalelectronics.ru Git - kernel.git/commit
driver core: platform: add device binding path 'driver_override'
authorKim Phillips <kim.phillips@freescale.com>
Tue, 3 Jun 2014 00:42:58 +0000 (19:42 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Jul 2014 22:31:26 +0000 (15:31 -0700)
commitf5f2f5836e37b71765b4168c6e680f4935d64c5d
tree9b47c38f09df44537b163ca18eabc8c979aa1f04
parent4d478f6586277bada348301ed08362779cd11f4b
driver core: platform: add device binding path 'driver_override'

Needed by platform device drivers, such as the upcoming
vfio-platform driver, in order to bypass the existing OF, ACPI,
id_table and name string matches, and successfully be able to be
bound to any device, like so:

echo vfio-platform > /sys/bus/platform/devices/fff51000.ethernet/driver_override
echo fff51000.ethernet > /sys/bus/platform/devices/fff51000.ethernet/driver/unbind
echo fff51000.ethernet > /sys/bus/platform/drivers_probe

This mimics "PCI: Introduce new device binding path using
pci_dev.driver_override", which is an interface enhancement
for more deterministic PCI device binding, e.g., when in the
presence of hotplug.

Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
Reviewed-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Stuart Yoder <stuart.yoder@freescale.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/sysfs-bus-platform [new file with mode: 0644]
drivers/base/platform.c
include/linux/platform_device.h