From: Felipe Balbi <balbi@kernel.org>
To: Shantur Rathore <i@shantur.com>
Cc: linux-usb@vger.kernel.org
Subject: Re: usb-gadget: dynamic reconfiguration
Date: Mon, 08 Nov 2021 15:07:26 +0200 [thread overview]
Message-ID: <87sfw6eqx8.fsf@kernel.org> (raw)
In-Reply-To: <CABEcMwWwsa1Q_mZaf=QUQb-Gc-xe=gmL6F2v3BPGyrJ7-mfB2g@mail.gmail.com>
Hi,
Shantur Rathore <i@shantur.com> writes:
> 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 only thing you can do is upon a certain command, logically
disconnect from the bus and connect again as a new device.
--
balbi
next prev parent reply other threads:[~2021-11-08 13:08 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
2021-11-08 13:07 ` Felipe Balbi [this message]
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=87sfw6eqx8.fsf@kernel.org \
--to=balbi@kernel.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.