usb: Replace device_destroy bus op with a child_detach port op
Note this fixes 2 things in one go, first of all the device_destroy busop should be a device_detach bus op, as pending async packets from thedevice should be cancelled on detach not on destroy....
usb-ehci: drop unused num-ports state member
Signed-off-by: Hans de Goede <hdegoede@redhat.com>Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
usb-ehci: Connect Status bit is read only, don't allow changing it by the guest
usb-ehci: cleanup port reset handling
Doing a usb_attach when dev is NULL will just result in theport detach op getting called even though nothing was connected inthe first place.
usb: assert on calling usb_attach(port, NULL) on a port without a dev
with the "usb-ehci: cleanup port reset handling" patch in place no callersare calling usb_attach(port, NULL) for a port where port->dev is NULL.
Doing that makes no sense as that causes the port detach op to get called...
usb-ehci: Fix handling of PED and PEDC port status bits
The PED bit should only be set for highspeed devices and the PEDC bitshould not be set on "normal" PED bit changes, only on io errors.
usb-ehci: Add support for registering companion controllers
usb-uhci: Add support for being a companion controller
To use as a companion controller set the masterbus property.
usb-ohci: Add support for being a companion controller
To use as a companion controller, use pci-ohci as device and set themasterbus and num-ports properties, ie:
-device usb-ehci,addr=0b.1,multifunction=on,id=ehci0-device pci-ohci,addr=0b.0,multifunction=on,masterbus=ehci0.0,num-ports=4...
pci: add ich9 usb controller ids
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
View revisions
Also available in: Atom