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

Commit 3e6a2db8 authored by Manu Gautam's avatar Manu Gautam
Browse files

USB: gadget: Remove configfs usage



Userspace after mounting configfs may continue to
use configfs if usb_gadget supports configfs. For this
userspace just relies on the presence of /config/usb_gadget.
As 3.18 kernel USB drivers don't full support configfs but
rather rely on android gadget, hence remove compilation of
usb configfs so that usb_gadget node doesnt appear in /config
and userspace can fallback to android gadget.

Change-Id: Ic59adfacd3972fd54608f916c98478525b9a9286
Signed-off-by: default avatarManu Gautam <mgautam@codeaurora.org>
parent dc9078ea
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ ccflags-y += -I$(srctree)/drivers/usb/gadget/udc -I$(srctree)/drivers/usb/gad

obj-$(CONFIG_USB_LIBCOMPOSITE)	+= libcomposite.o
libcomposite-y			:= usbstring.o config.o epautoconf.o
libcomposite-y			+= composite.o functions.o configfs.o u_f.o
libcomposite-y			+= composite.o functions.o u_f.o

obj-y				+= debug.o
g_android-y			:= android.o
+0 −2
Original line number Diff line number Diff line
@@ -3576,8 +3576,6 @@ static void ffs_closed(struct ffs_data *ffs)
	    || !atomic_read(&opts->func_inst.group.cg_item.ci_kref.refcount))
		goto done;

	unregister_gadget_item(ffs_obj->opts->
			       func_inst.group.cg_item.ci_parent->ci_parent);
done:
	ffs_dev_unlock();
}
+0 −1
Original line number Diff line number Diff line
@@ -3645,7 +3645,6 @@ static void fsg_lun_drop(struct config_group *group, struct config_item *item)
		struct config_item *gadget;

		gadget = group->cg_item.ci_parent->ci_parent;
		unregister_gadget_item(gadget);
	}

	fsg_common_remove_lun(lun_opts->lun, fsg_opts->common->sysfs);
+0 −2
Original line number Diff line number Diff line
@@ -1150,8 +1150,6 @@ static struct usb_function_instance *rndis_alloc_inst(void)

	descs[0] = &opts->rndis_os_desc;
	names[0] = "rndis";
	usb_os_desc_prepare_interf_dir(&opts->func_inst.group, 1, descs,
				       names, THIS_MODULE);
	config_group_init_type_name(&opts->func_inst.group, "",
				    &rndis_func_type);