From: heiko@sntech.de (Heiko Stübner)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4 3/4] USB: Gadget: Add Samsung S3C24XX USB High-Speed controller driver
Date: Thu, 14 Apr 2011 19:06:47 +0200 [thread overview]
Message-ID: <201104141906.48156.heiko@sntech.de> (raw)
In-Reply-To: <20110414154748.GA1366@kroah.com>
Am Donnerstag 14 April 2011, 17:47:48 schrieb Greg KH:
> On Thu, Apr 14, 2011 at 11:35:43AM -0400, Alan Stern wrote:
> > On Thu, 14 Apr 2011, Heiko [iso-8859-1] St?bner wrote:
> > > From: Thomas Abraham <thomas.ab@samsung.com>
> > >
> > > The Samsung's S3C2416, S3C2443 and S3C2450 includes a USB High-Speed
> > > device controller module. This driver enables support for USB
> > > high-speed gadget functionality for the Samsung S3C24xx SoC's that
> > > include this controller.
> > >
> > > Signed-off-by: Thomas Abraham <thomas.ab@samsung.com>
> > > Signed-off-by: Sangbeom Kim <sbkim73@samsung.com>
> > > Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
> > > Signed-off-by: Alexander Neumann <alexander@bumpern.de>
> > > Signed-off-by: Heiko Stuebner <heiko@sntech.de>
> >
> > ...
> >
> > > +static struct usb_ep_ops s3c_hsudc_ep_ops = {
> > > + .enable = s3c_hsudc_ep_enable,
> > > + .disable = s3c_hsudc_ep_disable,
> > > + .alloc_request = s3c_hsudc_alloc_request,
> > > + .free_request = s3c_hsudc_free_request,
> > > + .queue = s3c_hsudc_queue,
> > > + .dequeue = s3c_hsudc_dequeue,
> > > + .set_halt = s3c_hsudc_set_halt,
> > > +};
> >
> > There's no .set_wedge method. Why do people always leave this out?
>
> Does the code spit out a nasty warning if this isn't set? If not, I
> would suggest adding it so that this doesn't keep happening.
>From what I gathered from gadget.h the usb_ep_set_wedge function checks if
set_wedge is defined and uses set_halt if it's missing. The comments
surrounding usb_ep_set_wedge and usb_ep_ops also don't indicate that set_wedge
is a must.
As it has a fallback [through set_halt] it might therefore lead to the
impression of being optional.
>From Alan's response I gather that it isn't optional and the fallback is only
there for older drivers.
Hopefully Thomas [the original author] reads this. He would probably be able
to implement the set_wedge function in a tiny fraction of the time I would
need :-), as I don't really understand the inner workings of this.
Heiko
next prev parent reply other threads:[~2011-04-14 17:06 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-23 21:35 [PATCH RESEND 0/4] USB: gadget: Add Samsung S3C24xx USB HS controller driver Heiko Stübner
2011-03-23 21:37 ` [PATCH RESEND 1/4] ARM: S3C2416: Add USB Phy register definitions Heiko Stübner
2011-03-23 21:38 ` [PATCH RESEND 2/4] ARM: S3C24XX: Add plaform device definition for USB High-Speed gadget controller Heiko Stübner
2011-03-23 21:39 ` [PATCH RESEND v3 3/4] USB: Gadget: Add Samsung S3C24XX USB High-Speed controller driver Heiko Stübner
2011-04-13 23:28 ` Greg KH
2011-04-14 9:06 ` [PATCH RESEND v2 0/4] USB: gadget: Add Samsung S3C24xx USB HS " Heiko Stübner
2011-04-14 9:08 ` [PATCH 1/4] ARM: S3C2416: Add USB Phy register definitions Heiko Stübner
2011-04-14 9:10 ` [PATCH 2/4] ARM: S3C24XX: Add plaform device definition for USB High-Speed gadget controller Heiko Stübner
2011-04-14 9:11 ` [PATCH v4 3/4] USB: Gadget: Add Samsung S3C24XX USB High-Speed controller driver Heiko Stübner
2011-04-14 15:35 ` Alan Stern
2011-04-14 15:47 ` Greg KH
2011-04-14 17:06 ` Heiko Stübner [this message]
2011-04-14 17:15 ` Alan Stern
2011-04-16 10:00 ` Heiko Stübner
2011-04-16 14:58 ` Greg KH
2011-04-16 18:47 ` Heiko Stübner
2011-05-07 20:23 ` [PATCH v3 0/4] USB: gadget: Add Samsung S3C24xx USB HS " Heiko Stübner
2011-05-07 20:24 ` [PATCH 1/4] ARM: S3C2416: Add USB Phy register definitions Heiko Stübner
2011-05-07 20:26 ` [PATCH 2/4] ARM: S3C24XX: Add plaform device definition for USB High-Speed gadget controller Heiko Stübner
2011-05-08 11:17 ` Sergei Shtylyov
2011-05-07 20:28 ` [PATCH v5 3/4] USB: Gadget: Add Samsung S3C24XX USB High-Speed controller driver Heiko Stübner
2011-05-07 20:29 ` [PATCH 4/4] ARM: S3C2416: Add support for USB 2.0 High-Speed gadget controller Heiko Stübner
2011-04-14 9:12 ` Heiko Stübner
2011-03-23 21:40 ` [PATCH RESEND " Heiko Stübner
2011-04-08 10:04 ` [PATCH RESEND 0/4] USB: gadget: Add Samsung S3C24xx USB HS controller driver Heiko Stübner
2011-04-08 20:52 ` Greg KH
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=201104141906.48156.heiko@sntech.de \
--to=heiko@sntech.de \
--cc=linux-arm-kernel@lists.infradead.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).