Re: usb-gadget: dynamic reconfiguration

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

 



On Mon, Nov 08, 2021 at 12:54:37PM +0000, Shantur Rathore wrote:
> Hi all,
> 
> I am trying to figure out if it's possible to reconfigure a usb-gadget
> when it's live.
> The idea is to create a gadget with 1 function - lets say a serial gadget.
> 
> Upon communication with the host, the host could specify (via Serial
> communication) which is the next gadget it needs for example a mass
> storage or ecm and the next gadget can be added to the configuration.
> 
> For now this only works if the gadget is disconnected and reconnected
> to the UDC.
> 
> I want to understand if it is technically possible to add more
> functions to a live config without affecting existing functions.

The USB standard does not allow for this type of thing, sorry.  So this
really isn't anything you could do on the gadget side and expect the
host side to notice it.

thanks,

greg k-h



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

  Powered by Linux