linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Greg KH <greg@kroah.com>
Cc: linux-usb@vger.kernel.org,
	Joel Stanley <joel.stanley@au1.ibm.com>,
	Andrew Jeffery <andrew@aj.id.au>, Felipe Balbi <balbi@kernel.org>
Subject: [v3,2/3] usb/gadget: Add an EP dispose() callback for EP lifetime tracking
Date: Tue, 23 Jan 2018 09:25:34 +1100	[thread overview]
Message-ID: <1516659934.7489.38.camel@kernel.crashing.org> (raw)

On Mon, 2018-01-22 at 15:33 +0100, Greg KH wrote:
> On Fri, Jan 12, 2018 at 05:50:03PM +1100, Benjamin Herrenschmidt wrote:
> > Some UDC may want to allocate endpoints dynamically, either because
> > the HW supports an arbitrary large number or because (like the Aspeed
> > BMC SoCs), the pool of HW endpoints is shared between multiple gadgets.
> > 
> > The allocation side can be done rather easily using the existing
> > match_ep() UDC hook.
> > 
> > However we have no good place to "free" them.
> > 
> > This implements a "simple" variant of this, which calls an EP dispose
> > callback on all EPs associated with a gadget when the composite device
> > gets unbound.
> > 
> > This is required by my upcoming Aspeed vHub driver.
> > 
> > Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> > ---
> >  drivers/usb/gadget/composite.c | 8 ++++++++
> >  include/linux/usb/gadget.h     | 1 +
> >  2 files changed, 9 insertions(+)
> 
> Any reason you aren't sending these to the maintainer of the usb gadget
> subsystem?  get_maintainer.pl is your friend :)

Ooops, forgot to CC Felipe, I suppose I assumed he follows the list.

I'll resend them. He saw earlier versions, he proposed a different
approach to solve the lifetime tracking that I very strongly disagreed
with, but he didn't reply to that last email back in the day..

Cheers,
Ben.
---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

             reply	other threads:[~2018-01-22 22:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-22 22:25 Benjamin Herrenschmidt [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-01-22 14:33 [v3,2/3] usb/gadget: Add an EP dispose() callback for EP lifetime tracking Greg KH
2018-01-12  6:50 Benjamin Herrenschmidt

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=1516659934.7489.38.camel@kernel.crashing.org \
    --to=benh@kernel.crashing.org \
    --cc=andrew@aj.id.au \
    --cc=balbi@kernel.org \
    --cc=greg@kroah.com \
    --cc=joel.stanley@au1.ibm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).