diff options
author | Alexey Kardashevskiy <aik@ozlabs.ru> | 2015-03-12 18:25:30 +1100 |
---|---|---|
committer | Alexey Kardashevskiy <aik@ozlabs.ru> | 2015-03-12 18:25:30 +1100 |
commit | 9b82c855c594cb978e21257802fbd4e7db4dff39 (patch) | |
tree | 296988234a908d3bdbafc57780692c355f3fbc56 /slof/fs/usb | |
parent | ea2b48a7a352146b34f25bbb55cc24c53d9daf7b (diff) | |
download | SLOF-9b82c855c594cb978e21257802fbd4e7db4dff39.zip SLOF-9b82c855c594cb978e21257802fbd4e7db4dff39.tar.gz SLOF-9b82c855c594cb978e21257802fbd4e7db4dff39.tar.bz2 |
pci-properties: Remove redundant call to device-type
At the moment SLOF adds a "device_type" property automatically for
every single PCI device based on its class even if there is no SLOF
driver for such a device. OF1275 says that "device_type" is for
implemented interfaces only. A side effect of this is virtio-balloon
getting device_type=="memory" while it should not have.
This removes automatic call to device-type from the common PCI code.
Since now, we rely on existing SLOF PCI drivers to call device-type if
needed. virtio-blk/net, e1000, ohci/ehci/xhci do this. virtio-scsi
does not create the property for itself but disks on its bus do.
virtio-ballon won't get the device_type property as there is no driver
for it.
While we are here, remove device-type from usb-mouse as well.
Reviewed-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
---
Changes:
v2:
* removed usb mouse as well - slof does not implement it
Diffstat (limited to 'slof/fs/usb')
-rw-r--r-- | slof/fs/usb/dev-mouse.fs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/slof/fs/usb/dev-mouse.fs b/slof/fs/usb/dev-mouse.fs index 278a7c0..f6acd7e 100644 --- a/slof/fs/usb/dev-mouse.fs +++ b/slof/fs/usb/dev-mouse.fs @@ -6,7 +6,6 @@ sudev slof-dev>port l@ dup set-unit encode-phys " reg" property sudev slof-dev>udev @ VALUE udev s" usb-mouse" device-name -s" mouse" device-type \ .S cr \ dup slof-dev>udev dup . @ . cr |