summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINSUN PYO <insun.pyo@samsung.com>2020-02-21 05:04:52 (GMT)
committerHyotaek Shim <hyotaek.shim@samsung.com>2020-02-21 07:15:55 (GMT)
commit22e1dd090a493b1a2f9f3ef4d95efd786428c55f (patch)
tree71735ff2cfc46a21ab3f48400cdf24cf8ac2c8b7
parentb54461f39296454dd32075e8ed84983199ce8d88 (diff)
downloadlibdevice-node-22e1dd090a493b1a2f9f3ef4d95efd786428c55f.zip
libdevice-node-22e1dd090a493b1a2f9f3ef4d95efd786428c55f.tar.gz
libdevice-node-22e1dd090a493b1a2f9f3ef4d95efd786428c55f.tar.bz2
Excon does not work perfectly in Artik. So I added the workaround code, which causes some strange USB initialization. This problem disappears when the extcon value is always fixed at 1. So I asked the kernel team to fix the extcon value to 1 and removed the workaround code. If extcon is always 1, deviecd will not recognize when usb is disconnected, but it will work normally. Conclusion: For targets where extcon does not work perfectly, deviced do not support usb connect/disconnect. Change-Id: Idf06c987f589218a458df6904d8fb8f9132f05c3 (cherry picked from commit f68550cd0c83a60621de5ef70de2a9edcba8b5d7)
-rw-r--r--hw/usb_cfs_client_common.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/hw/usb_cfs_client_common.c b/hw/usb_cfs_client_common.c
index e4572de..d594fd2 100644
--- a/hw/usb_cfs_client_common.c
+++ b/hw/usb_cfs_client_common.c
@@ -826,22 +826,6 @@ static int cfs_reconfigure_gadget(struct usb_client *usb,
goto out;
}
- /* Workaround for enabling extcon notification */
- /* ******************************************* */
- /* ******************************************* */
- {
- const char *ARTIK_UDC_NAME = "c0040000.dwc2otg";
- const char *udc_name = usbg_get_udc_name(cfs_client->udc);
- if (udc_name && !strncmp(udc_name, ARTIK_UDC_NAME, strlen(ARTIK_UDC_NAME))) {
- ret = usbg_enable_gadget(cfs_client->gadget, cfs_client->udc);
- if (ret)
- goto out;
- }
- }
- /* ******************************************* */
- /* ******************************************* */
- /* ******************************************* */
-
ret = cfs_cleanup_left_configs(cfs_client, i);
/* TODO