Re: composition switch design

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

 



On Thu, 21 Jan 2010, sai pavan wrote:

> This approach may not work if two configurations has common functions. say
> 
> config 1: mass storage + CDC-ACM
> config 2: mass storage
> 
> The composite driver adds 1st configuration by calling usb_add_config,
> which in turn would call mass storage bind method. The same bind
> method would get called when 2nd configuration added. This duplicates
> all buffers used in gadget function driver.
> 
> Does this mean we can not have a common function across multiple
> configurations?

I don't know; I'm not familiar with the composite framework.

Can't you fix it so that it calls each bind function only once, even if 
a driver appears in more than one configuration?

Alan Stern

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