Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3c4e0c21 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "USB: android: Dont call functionfs_bind during android enable"

parents e3727e00 dd8dac64
Loading
Loading
Loading
Loading
+1 −12
Original line number Diff line number Diff line
@@ -445,23 +445,12 @@ static void ffs_function_enable(struct android_usb_function *f)
{
	struct android_dev *dev = f->android_dev;
	struct functionfs_config *config = f->config;
	int ret = 0;

	config->enabled = true;

	/* Disable the gadget until the function is ready */
	if (!config->opened) {
	if (!config->opened)
		android_disable(dev);
	} else {
		/*
		 * Call functionfs_bind to handle the case where userspace
		 * passed descriptors before updating enabled functions list
		 */
		ret = functionfs_bind(config->data, dev->cdev);
		if (ret)
			pr_err("%s: functionfs_bind failed (%d)\n", __func__,
									ret);
	}
}

static void ffs_function_disable(struct android_usb_function *f)