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.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
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>
uhci: add ich9 controllers
Add ich9 controllers, Factor out properties to a separatestruct and reference it to reduce duplication.
ehci: fix port count.
The ICH4 EHCI controller which we emulate has six ports not four.
ehci: add ich9 controller.
View revisions
Also available in: Atom