mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-02-21 14:43:20 +00:00
Refine the logic of usb interface state transition. The libusb uses two pair of APIs to deal with usb interface: 1. libusb_claim_interface & libusb_detach_kernel_driver; 2. libusb_release_interface & libusb_attach_kernel_driver. The calling sequences of those APIs are very important, so this patch add some error handling code to make this process more robust. Change-Id: I0f7950aae806dee9a21f16cc293f51609eede0d8 Tracked-On: Signed-off-by: Xiaoguang Wu <xiaoguang.wu@intel.com> Reviewed-by: Liang Yang <liang3.yang@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>