driver core: platform: add device binding path 'driver_override'
authorKim Phillips <[email protected]>
Tue, 3 Jun 2014 00:42:58 +0000 (19:42 -0500)
committerGreg Kroah-Hartman <[email protected]>
Tue, 8 Jul 2014 22:31:26 +0000 (15:31 -0700)
commit3d713e0e382e6fcfb4bba1501645b66c129ad60b
tree9b47c38f09df44537b163ca18eabc8c979aa1f04
parent1cec24c59b4a133fc9c83912996168f511075485
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 <[email protected]>
Reviewed-by: Alexander Graf <[email protected]>
Reviewed-by: Stuart Yoder <[email protected]>
Signed-off-by: Kim Phillips <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Documentation/ABI/testing/sysfs-bus-platform [new file with mode: 0644]
drivers/base/platform.c
include/linux/platform_device.h