public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Marek Vasut <marek.vasut@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/1] USB: EHCI: Initialize multiple USB controllers at once
Date: Tue, 31 Jul 2012 07:31:23 +0200	[thread overview]
Message-ID: <201207310731.24044.marek.vasut@gmail.com> (raw)
In-Reply-To: <4B9C9637D5087840A465BDCB251780E9E2D6EDA40D@HKMAIL02.nvidia.com>

Dear Jim Lin,

> >-----Original Message-----
> >From: Marek Vasut [mailto:marek.vasut at gmail.com]
> >Sent: Monday, July 30, 2012 8:02 PM
> >To: Jim Lin
> >Cc: Wolfgang Denk; Tom Warren; u-boot at lists.denx.de
> >Subject: Re: [U-Boot] [PATCH 1/1] USB: EHCI: Initialize multiple USB
> >controllers at once
> >
> >Dear Jim Lin,
> >
> >> >-----Original Message-----
> >> >From: Marek Vasut [mailto:marek.vasut at gmail.com]
> >> >Sent: Friday, July 27, 2012 5:26 PM
> >> >To: u-boot at lists.denx.de
> >> >Cc: Jim Lin; Wolfgang Denk; Tom Warren
> >> >Subject: Re: [U-Boot] [PATCH 1/1] USB: EHCI: Initialize multiple USB
> >> >controllers at once
> >> >
> >> >> Wolfgang,
> >> >> Is there any chance to get this feature in after Stephen explained to
> >> >> you?
> >> >
> >> >I'll poke into it. Can we not get rid of the added ifdef, eg. by
> >> >setting up the controller number to 1 for those that don't define
> >> >CONFIG_USB_MULTI now (everyone)
> >> 
> >> I assume you want me to add these in next patch.
> >> 1 . Use CONFIG_USB_MULTI, instead of CONFIG_USB_INIT_MULTI
> >> 
> >>  (current patch),
> >> 
> >> 2. If CONFIG_USB_MULTI is not defined, then define
> >> CONFIG_USB_MAX_CONTROLLER_COUNT as 1.
> >
> >Yes, is that a problem? Aka. have this always enabled and don't treat not
> >having multiple controllers as a special case.
> 
> Item 2 is not necessary.
> Because CONFIG_USB_MAX_CONTROLLER_COUNT will not be used if
> CONFIG_USB_MULTI is not defined.

But we don't need CONFIG_USB_MULTI option at all -- just assume it's always 
defined and unless a board has multiple controllers, define 
CONFIG_USB_MAX_CONTROLLER_COUNT to be 1.

Aka. it boils down to sticking

#ifndef CONFIG_USB_MAX_CONTROLLER_COUNT
#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
#endif

somewhere in usb.c or so.

Best regards,
Marek Vasut

      reply	other threads:[~2012-07-31  5:31 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-26 10:15 [U-Boot] [PATCH 1/1] USB: EHCI: Initialize multiple USB controllers at once Jim Lin
2012-06-26 21:29 ` Wolfgang Denk
     [not found]   ` <4B9C9637D5087840A465BDCB251780E9E2D6EDA3EC@HKMAIL02.nvidia.com>
     [not found]     ` <4B9C9637D5087840A465BDCB251780E9E2D6EDA3F0@HKMAIL02.nvidia.com>
     [not found]       ` <4B9C9637D5087840A465BDCB251780E9E2D6EDA3F1@HKMAIL02.nvidia.com>
     [not found]         ` <4B9C9637D5087840A465BDCB251780E9E2D6EDA3F2@HKMAIL02.nvidia.com>
     [not found]           ` <4B9C9637D5087840A465BDCB251780E9E2D6EDA3F5@HKMAIL02.nvidia.com>
2012-06-27  6:55             ` Wolfgang Denk
2012-06-27 16:57               ` Stephen Warren
2012-07-02 23:29                 ` Jim Lin
2012-07-27  2:47                 ` Jim Lin
2012-07-27  9:25                   ` Marek Vasut
2012-07-30  7:20                     ` Jim Lin
2012-07-30 12:02                       ` Marek Vasut
2012-07-31  4:07                         ` Jim Lin
2012-07-31  5:31                           ` Marek Vasut [this message]

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=201207310731.24044.marek.vasut@gmail.com \
    --to=marek.vasut@gmail.com \
    --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