Hi, Currently there is no way for a gadget driver to save pointer to resources (which may be common to more than one function) that it allocates during config bind. Even single-function configurations have to free such data in function's unbind callback. Which isn't very correct, because we have a situation where call to a structure's member callback frees the space occupied by parent structure. Patch-1 adds a new hook to 'struct usb_configuration' Patch-2,3 converts Zero and Webcam gadget drivers for a start. Other gadgets could be converted(though not necessary) as and when interest arise. 1) USB: Gadget: Add private data hook for config 2) USB: Gadget: Zero: Free resources in config unbind 3) USB: Gadget: Webcam: Free resources in config unbind Thanks, Jassi -- 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