From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] usb:udc:samsung Add functions for storing private gadget data in UDC driver
Date: Sat, 14 Apr 2012 11:48:33 +0200 [thread overview]
Message-ID: <201204141148.33492.marex@denx.de> (raw)
In-Reply-To: <1334214969-19664-1-git-send-email-l.majewski@samsung.com>
Dear Lukasz Majewski,
> This commit adds support for storing private data to Samsung's UDC
> driver. This data is afterward used by usb gadget.
>
> Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> Cc: Marek Vasut <marex@denx.de>
> ---
> drivers/usb/gadget/s3c_udc_otg.c | 12 ++++++++++++
> 1 files changed, 12 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/usb/gadget/s3c_udc_otg.c
> b/drivers/usb/gadget/s3c_udc_otg.c index f7f7b54..cb4916c 100644
> --- a/drivers/usb/gadget/s3c_udc_otg.c
> +++ b/drivers/usb/gadget/s3c_udc_otg.c
> @@ -133,6 +133,18 @@ static void nuke(struct s3c_ep *ep, int status);
> static int s3c_udc_set_halt(struct usb_ep *_ep, int value);
> static void s3c_udc_set_nak(struct s3c_ep *ep);
>
> +void set_udc_gadget_private_data(void *p)
> +{
> + printf("%s: the_controller: 0x%p, p: 0x%p\n", __func__,
> + the_controller, p);
> + the_controller->gadget.dev.device_data = p;
> +}
> +
> +void *get_udc_gadget_private_data(struct usb_gadget *gadget)
> +{
> + return gadget->dev.device_data;
> +}
> +
Is this part of some bigger patchset or are you simply adding dead code?
> static struct usb_ep_ops s3c_ep_ops = {
> .enable = s3c_ep_enable,
> .disable = s3c_ep_disable,
Best regards,
Marek Vasut
next prev parent reply other threads:[~2012-04-14 9:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-12 7:16 [U-Boot] [PATCH] usb:udc:samsung Add functions for storing private gadget data in UDC driver Lukasz Majewski
2012-04-14 9:48 ` Marek Vasut [this message]
2012-04-16 9:33 ` Lukasz Majewski
2012-04-16 9:41 ` Marek Vasut
2012-04-14 13:47 ` Wolfgang Denk
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=201204141148.33492.marex@denx.de \
--to=marex@denx.de \
--cc=u-boot@lists.denx.de \
/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