- Previously, usb mode is disabled according to the selected mode.
Selected mode means that User selected the mode as the next mode.
However Selected mode can be different with current mode since
usb mode setting can be failed or there is no mode if usb cable
is not connected. Thus usb mode should be disabled according to
the current mode.
Change-Id: If3b825910aa1360cf92ccab68442f4931b5f2ec6
Signed-off-by: taeyoung <ty317.kim@samsung.com>
break;
case USB_DISCONNECTED:
_I("USB cable is disconnected");
- usb_operation_stop(usb_state_get_selected_mode());
+ usb_operation_stop(usb_state_get_current_mode());
usb_state_update_state(USB_DISCONNECTED, USB_FUNCTION_NONE);
ret = usb_config_disable();