diff options
| author | Antonios Motakis <a.motakis@virtualopensystems.com> | 2015-01-06 05:15:11 -0500 |
|---|---|---|
| committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2015-02-10 05:23:15 -0500 |
| commit | 3cf385713460eb2bb4cb7ceb8ed89833b00b594b (patch) | |
| tree | b9c51c20e360b31aa2a567d3857b3039d6e08fdf /include/linux/amba | |
| parent | 8684014d71e259f62f7dc24a20324e232806b2ef (diff) | |
ARM: 8256/1: driver coamba: add device binding path 'driver_override'
As already demonstrated with PCI [1] and the platform bus [2], a
driver_override property in sysfs can be used to bypass the id
matching of a device to a AMBA driver. This can be used by VFIO to
bind to any AMBA device requested by the user.
[1] http://lists-archives.com/linux-kernel/28030441-pci-introduce-new-device-binding-path-using-pci_dev-driver_override.html
[2] https://www.redhat.com/archives/libvir-list/2014-April/msg00382.html
Signed-off-by: Antonios Motakis <a.motakis@virtualopensystems.com>
Reviewed-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/linux/amba')
| -rw-r--r-- | include/linux/amba/bus.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/amba/bus.h b/include/linux/amba/bus.h index 0ab5f8e0dea2..50fc66868402 100644 --- a/include/linux/amba/bus.h +++ b/include/linux/amba/bus.h | |||
| @@ -33,6 +33,7 @@ struct amba_device { | |||
| 33 | struct clk *pclk; | 33 | struct clk *pclk; |
| 34 | unsigned int periphid; | 34 | unsigned int periphid; |
| 35 | unsigned int irq[AMBA_NR_IRQS]; | 35 | unsigned int irq[AMBA_NR_IRQS]; |
| 36 | char *driver_override; | ||
| 36 | }; | 37 | }; |
| 37 | 38 | ||
| 38 | struct amba_driver { | 39 | struct amba_driver { |
