All of lore.kernel.org
 help / color / mirror / Atom feed
From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v1 1/2] usb: dfu: add config option to use in dfu mode fullspeed only
Date: Wed, 10 Sep 2014 08:10:02 +0200	[thread overview]
Message-ID: <540FEB3A.30600@denx.de> (raw)
In-Reply-To: <540F11BE.7000202@ti.com>

Hello Bin Liu,

Am 09.09.2014 16:42, schrieb Bin Liu:
> Heiko,
>
> On 09/09/2014 09:37 AM, Heiko Schocher wrote:
>> Hello Bin Liu,
>>
>> Am 09.09.2014 16:09, schrieb Bin Liu:
>>> Heiko,
>>>
>>> On 09/09/2014 07:37 AM, Heiko Schocher wrote:
>>>> add the new config option CONFIG_DFU_FULLSPEED. With this
>>>> option enabled, DFU uses fullspeed only.
>>>
>>> Can we not introduce the new config option but check the gadget driver
>>> speed in runtime as what the ether gadget driver does?
>>> I don't want two config options (CONFIG_USB_GADGET_DUALSPEED and
>>> CONFIG_DFU_FULLSPEED) to control one feature, as in your patch 2/2.
>>
>> Hmm.. I am not sure, if I understand you correct. I could use
>> CONFIG_USB_GADGET_DUALSPEED instead the new config option
>> for setting "config->fullspeed = 1;" in g_dnl_config_register()
>>
>> If you mean this, yes, thats would be a good change...
>
> No, I did not mean this build time macro, but was thinking you can check g->speed at the same place in runtime.
>
> I think you can refer to ether.c, which supports full-speed but does not use any macro.

Yep, you are right, I can get rid completely of this new define!
The speed selection is done in drivers/usb/gadget/composite.c

I removed it, do some tests, and send a v2. Thanks!

bye,
Heiko
-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany

  reply	other threads:[~2014-09-10  6:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-09 12:37 [U-Boot] [PATCH v1 0/2] usb: dfu: am335x: allow dfu in fullspeed mode only Heiko Schocher
2014-09-09 12:37 ` [U-Boot] [PATCH v1 1/2] usb: dfu: add config option to use in dfu mode fullspeed only Heiko Schocher
2014-09-09 14:09   ` Bin Liu
2014-09-09 14:25     ` Lukasz Majewski
2014-09-09 14:37     ` Heiko Schocher
2014-09-09 14:42       ` Bin Liu
2014-09-10  6:10         ` Heiko Schocher [this message]
2014-09-09 12:37 ` [U-Boot] [PATCH v1 2/2] arm: am335x: siemens board use in DFU " Heiko Schocher
2014-09-09 13:43 ` [U-Boot] [PATCH v1 0/2] usb: dfu: am335x: allow dfu in fullspeed mode only Lukasz Majewski
2014-09-09 14:05   ` Bin Liu
2014-09-09 14:24     ` Lukasz Majewski
2014-09-09 14:22   ` Heiko Schocher
2014-09-10  5:46     ` Stockmann, Lukas

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=540FEB3A.30600@denx.de \
    --to=hs@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 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.