public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Marcel Janssen <korgull@home.nl>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 4/4] updates for DFU and atmel usba udc
Date: Tue, 15 Feb 2011 21:14:21 +0100	[thread overview]
Message-ID: <201102152114.22352.korgull@home.nl> (raw)
In-Reply-To: <AANLkTim6DKH_m2BoZM5e2ca3Mu-_L31o+gR4ydKrb+gT@mail.gmail.com>

Hi Remy,

> 2011/2/15 Marcel Janssen <korgull@home.nl>:
> > On Tuesday, February 15, 2011 07:43:34 pm Remy Bohmer wrote:
> >> Hi,
> >> 
> >> 2011/2/13 Marcel Janssen <korgull@home.nl>:
> >> > From: Marcel <korgull@home.nl>
> >> > 
> >> > Signed-off-by: Marcel <korgull@home.nl>
> >> > ---
> >> >  arch/arm/cpu/arm926ejs/at91/led.c   |  119
> >> > +++++++++++++++++++++++++++++++++-
> >> 
> >> Why is this part if this patch?
> >> It does not seem to be related to USB stuff. Please make it a seperate
> >> patch.
> > 
> > I optionally use the LED's in DFU mode so that there's interaction while
> > upgrading the board.
> 
> U-boot has a terminal/monitor. It is not up to the driver to control
> LEDs that might or might not be on a board.

OK, good to know. I'll check that out, but not today.
For now I can remove the LED code I think. Than in a couple of months I can 
can check how to use the monitor code.

> > You might believe the host could handle this, but I like
> > the device to indicate activity as well.
> > Somehow I couldn't get it working without changing led.c I think, but I
> > may have missed something.
> 
> The problem is here that you mix up sub-systems.
> Modifying LED code should be independent from USB driver code, and
> really not in the same patch.
>
> >> >  common/Makefile                     |    1 +
> >> >  common/update_dfu.c                 |    2 -
> >> >  drivers/usb/gadget/usbdfu.c         |   14 +++--
> 
> These files should be completely generic code, that even would work on
> X86, PowerPC and so on.

Agree on that. It would be optiomal. Not everything is, the first time :-)

> >> >  drivers/usb/gadget/atmel_usba_udc.c |    8 +-
> 
> Only this driver file should be Atmel USBA specific, but NOT SoC
> specific, and absolutely not board or board config related.

ok.

> >> Please, only make a patch series with only USB-DFU stuff in it, drop
> >> the add-board code from this series. The board code is not acceptable
> >> for mainstream since it does not follow the new
> >> u-boot-atmel->rework110202 tree style of adding at91 boards. It will
> >> take you a huge amount of effort to make it suitable.
> >> Further, both parts of the patch series are not related and you are
> >> now creating a link between the Atmel tree and the USB tree, which
> >> makes it even more difficult.
> > 
> > I'm actually busy fixing the board code for u-boot-atmel->rework110202
> > 
> > Most of it is working so I hope I can create the patches as you like
> > them.
> 
> Hmm, Let's make it even more black/white: I do not have to like the
> board code. ;-)
> Reinhard is the Atmel maintainer. He needs to pull in the Board code.
> I only care about generic USB code... ;-)))

hmmm.
The black and white this is that after today I don't have a single hour to 
spend on this code :-)

> Please make 2 unrelated patch series (1 series for USB DFU support, 1
> series for board support), or it will never hit mainline...
> AND: I would really recommend to build a decent USB/DFU patch series
> first. Forget the board for now. The board seems to depend on DFU
> support, not the other way around.
> If generic DFU code is really generic and acceptable, I will pull it
> in my tree. I am willing to fix small issues in the series to assist
> you, but I will not do major redesigns...

Well, the board  does not depend on DFU. Not even the USBD controller is 
activated in the board config. It is left up to a script to handle that though 
update_dfu.c which defines a command for that. I may have left some parts in 
that don't really belong there, I haven't check it yet.

Best regards,
Marcel

  reply	other threads:[~2011-02-15 20:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-13 21:52 [U-Boot] [PATCH v2 4/4] updates for DFU and atmel usba udc Marcel Janssen
2011-02-15 18:43 ` Remy Bohmer
2011-02-15 19:20   ` Marcel Janssen
2011-02-15 19:53     ` Remy Bohmer
2011-02-15 20:14       ` Marcel Janssen [this message]
2011-02-15 22:19       ` Marcel Janssen
  -- strict thread matches above, loose matches on Subject: below --
2011-02-13 21:53 Marcel Janssen
2011-02-13 22:38 ` Marcel Janssen

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=201102152114.22352.korgull@home.nl \
    --to=korgull@home.nl \
    --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