Re: [RFC v2] usb/gadget: the start of the configfs interface

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

 



On Mon, Dec 03, 2012 at 07:27:05PM +0100, Michal Nazarewicz wrote:
> > On Fri, Nov 30, 2012 at 07:40:31PM +0100, Michal Nazarewicz wrote:
> >> IMO that's actually mute argument since it can be done regardless.  You
> >> can modprobe the module anyway.
> 
> On Fri, Nov 30 2012, Felipe Balbi wrote:
> > fair enough, I just want to avoid doing any memory allocations, or HW
> > initialization (in case of the UDCs) or anything at all until we know
> > that will be used.
> 
> My understanding is that hardware initialisation will be made only after
> the gadget is fully configured and bound to the UDC.
> 
> As for memory allocation, than you are correct to note that memory can
> be allocated without it being used at all, but that happens any time
> user loads a module without using it.
> 
> Similarly, while the gadget is being configured, memory is allocated but
> not really used, and if user never binds gadget to UDC it will just stay
> there.  I don't think there's anything we can do about it.

I'm convinced ;-)

-- 
balbi

Attachment: signature.asc
Description: Digital signature


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

  Powered by Linux