All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Shantur Rathore <i@shantur.com>
Cc: linux-usb@vger.kernel.org
Subject: Re: usb-gadget: dynamic reconfiguration
Date: Mon, 8 Nov 2021 14:02:43 +0100	[thread overview]
Message-ID: <YYkf87RxhhJ3eWuC@kroah.com> (raw)
In-Reply-To: <CABEcMwWwsa1Q_mZaf=QUQb-Gc-xe=gmL6F2v3BPGyrJ7-mfB2g@mail.gmail.com>

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

  reply	other threads:[~2021-11-08 13:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-08 12:54 usb-gadget: dynamic reconfiguration Shantur Rathore
2021-11-08 13:02 ` Greg KH [this message]
2021-11-08 13:07 ` Felipe Balbi
2021-11-08 14:05   ` Shantur Rathore

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YYkf87RxhhJ3eWuC@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=i@shantur.com \
    --cc=linux-usb@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.