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

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

 



* Jassi Brar | 2011-06-25 01:34:11 [+0530]:

> 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.

Is it causing any harm somewhere? If so could you describe it / post an
example?

> 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.

It would be nice to have consistent behaviour across a subsystem.

>Thanks,
>Jassi

Sebastian
--
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