Extcon support for artik is bound to the gadget, so we need to need to
enable it to start monitoring usb connection. This does not do much
harm, but can cause some functionfs daemons to run long before they are
actually needed.
Change-Id: I7a5eaacaa476539a7cf1c237f811163be4d9b7d5
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
goto out;
}
+ /* Workaround for enabling extcon notification on artik */
+ ret = usbg_enable_gadget(cfs_client->gadget, cfs_client->udc);
+ if (ret) {
+ _E("Could not enable gadget");
+ goto out;
+ }
+
ret = cfs_cleanup_left_configs(cfs_client, i);
/* TODO