summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Szewczyk <p.szewczyk@samsung.com>2018-06-29 13:37:59 (GMT)
committerPaweł Szewczyk <p.szewczyk@samsung.com>2018-06-29 13:37:59 (GMT)
commit3464706cec50ca4cc07da0708064874fca775f35 (patch)
tree38cbae8763b85ed5320ad0fdc14f99674972d93a
parent441caf215fa4b0419a80780474ee7b66569fd775 (diff)
downloadlibdevice-node-3464706cec50ca4cc07da0708064874fca775f35.zip
libdevice-node-3464706cec50ca4cc07da0708064874fca775f35.tar.gz
libdevice-node-3464706cec50ca4cc07da0708064874fca775f35.tar.bz2
usb_cfs_client: Enable gadget at reconfigurationrefs/changes/12/183012/1
This workaround was introduced on artik, where gadget need to be enabled before usb connection can be properly monitored. As this does little harm, it's moved here to prevent regression on artik. The side effect of this is starting some functionfs daemons long before they are actually needed, so this should be removed when exton issue is fixed. Change-Id: Ia41c21e3c44d7d3a00d557f181e8c22766c6f31b Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
-rw-r--r--hw/usb_cfs_client_common.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/usb_cfs_client_common.c b/hw/usb_cfs_client_common.c
index 5e043cc..c133aff 100644
--- a/hw/usb_cfs_client_common.c
+++ b/hw/usb_cfs_client_common.c
@@ -806,6 +806,11 @@ static int cfs_reconfigure_gadget(struct usb_client *usb,
goto out;
}
+ /* Workaround for enabling extcon notification */
+ ret = usbg_enable_gadget(cfs_client->gadget, cfs_client->udc);
+ if (ret)
+ goto out;
+
ret = cfs_cleanup_left_configs(cfs_client, i);
/* TODO