[PATCH] libusbg: Fix usbg_disable_gadget to actually clear the UDC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Currently usbg_disable_gadget() does not actually write anything
to UDC to clear it and the configured UDC name stays there.

Signed-off-by: Tony Lindgren <tony@xxxxxxxxxxx>

---

Matt, maybe check if you want to have this fixed in some other way?

--- a/src/usbg.c
+++ b/src/usbg.c
@@ -1994,7 +1994,7 @@ int usbg_disable_gadget(usbg_gadget *g)
 
 	if (g) {
 		strcpy(g->udc, "");
-		ret = usbg_write_string(g->path, g->name, "UDC", "");
+		ret = usbg_write_string(g->path, g->name, "UDC", "\n");
 	}
 
 	return ret;
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux