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

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

Merge "usb: gadget: configfs: Correct usb functions order for UDC gadget bind"

parents 40fe5634 a1bd87c8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1257,9 +1257,9 @@ static void purge_configs_funcs(struct gadget_info *gi)

		cfg = container_of(c, struct config_usb_cfg, c);

		list_for_each_entry_safe(f, tmp, &c->functions, list) {
		list_for_each_entry_safe_reverse(f, tmp, &c->functions, list) {

			list_move_tail(&f->list, &cfg->func_list);
			list_move(&f->list, &cfg->func_list);
			if (f->unbind) {
				dev_dbg(&gi->cdev.gadget->dev,
					"unbind function '%s'/%pK\n",