diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2012-01-05 15:49:18 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2012-01-06 12:36:14 +0100 |
commit | c75fead66e25b35b867b661ee92087dc245a48c9 (patch) | |
tree | 22b590cf2c5d3ad3ce583c00ee45a338ac9a4af0 /hw | |
parent | 24a5bbe1c8cd6f5e90100b42eac29f41c33939de (diff) | |
download | qemu-c75fead66e25b35b867b661ee92087dc245a48c9.zip |
usb-host: properly release port on unplug & exit
Factor out port release into a separate function. Call release function
in exit notifier too. Add explicit call the USBDEVFS_RELEASE_PORT
ioctl, just closing the hub file handle seems not to be enougth. Make
sure we release the port before resetting the device, otherwise host
drivers will not re-attach.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw')
0 files changed, 0 insertions, 0 deletions