OSDN Git Service

xhci: update port handling
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 28 Aug 2012 11:38:01 +0000 (13:38 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 11 Sep 2012 05:43:01 +0000 (07:43 +0200)
commit0846e6359c407e372f446723b8b7b09ac20d0f03
treef472d98bc2f8a1a254a8636a7a648f534e79af24
parent106b214c4fbba80699b32b63020432cbd1cf95db
xhci: update port handling

This patch changes the way xhci ports are linked to USBPorts.  The fixed
1:1 relationship between xhci ports and USBPorts is gone.  Now each
USBPort represents a physical plug which has usually two xhci ports
assigned: one usb2 and ond usb3 port.  usb devices show up at one or the
other, depending on whenever they support superspeed or not.

This patch also makes the number of usb2 and usb3 ports runtime
configurable by adding 'p2' and 'p3' properties.  It is allowed to
have different numbers of usb2 and usb3 ports.  Specifying p2=4,p3=2
will give you an xhci adapter which supports all speeds on physical
ports 1+2 and usb2 only on ports 3+4.
hw/usb/hcd-xhci.c