[PATCH 0/3] Adding a hook for config data

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

 



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


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

  Powered by Linux