All of lore.kernel.org
 help / color / mirror / Atom feed
From: Graeme Russ <graeme.russ@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] tegra: Specify debugging serial port at boot.
Date: Wed, 21 Mar 2012 11:17:45 +1100	[thread overview]
Message-ID: <CALButC+U+nhrW29_c+J-RduR6iPpYDwVvMHyhZ0x0oVqdYyOXA@mail.gmail.com> (raw)
In-Reply-To: <CAPnjgZ092bjFdYfuoMoSC7eRJNOi5ZnP4YoWHr0BmyzjZhZNjw@mail.gmail.com>

Hi Simon,

On Wed, Mar 21, 2012 at 11:02 AM, Simon Glass <sjg@chromium.org> wrote:
> Hi Graeme,
>
> On Tue, Mar 20, 2012 at 4:52 PM, Graeme Russ <graeme.russ@gmail.com> wrote:
>> Hi Simon,
>>
>> On Wed, Mar 21, 2012 at 10:33 AM, Simon Glass <sjg@chromium.org> wrote:

>>> We cannot select the UART via CONFIG - remember that all of these
>>> boards have the same U-Boot binary. Please read that again :-) The
>>> device tree is the only thing that distinguishes them. All of the
>>> CONFIG options are identical for all boards.
>>
>> But I don't get it - In your Seaboard patch, you only use UARTD so in this
>> case we could CONFIG_ it?
>
> Yes, Stephen specifically asked for this so I changed it. See the
> other ongoing discussion on this.
>
>>
>> And it's sounding like for other scenarios you are going to resign
>> yourself to there not being a common UART so you will send the pre-console
>> (panic) message to multiple UARTs - something that should be avoided at
>> all costs...
>
> Of course - we cannot require the board to use a particular UART. The
> SOCs have various options and different people will make different
> decisions. Honestly, if we can't deal with UART selection in the
> device tree, we aren't going to solve the more difficult problems.

But aren't we dealing in a case where the device tree is probably not
available anyway?

And we are talking about one board vendor taking a SoC and using UARTA
for the panic output and another board vendor deciding to use UARTB - But
surely these vendors will create a separate config file for their boards.

>> I know we are dealing with a corner case abnormal situation here, but
>> something does not smell right... Maybe I'm not understanding something
>> obvious yet...
>
> I'm not sure. I suspect it could be easily explained with an hour at
> the whiteboard, but it's hard by email.
>
> The requirement is to output a message that the user can see, and we
> have a selection of UARTs which *might* be the console UART. For now
> we don't know exactly which one it is (see my SPL config comment
> though which might eventually solve this). So we send output to
> several of them. To protect against any danger, we permit the board
> file to select which are permitted.

Again, we are going back to per-board configurations - Why can't this
selection be CONFIG_'d? Surely we could define a bitmap of available UARTs
in a SoC header (and reserve space for board specific UARTs) which can
then be used in the board config.

I'm not really seeing an example of where two boards use exactly the same
configuration file and yet one has 'UARTx' plumbed and the other does not

Sorry, I'm not trying to be difficult, just poking all the corners to see
what squishes ;)

Regards,

Graeme

  reply	other threads:[~2012-03-21  0:17 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-20 19:57 [U-Boot] [PATCH] tegra: Specify debugging serial port at boot Stephen Warren
2012-03-20 20:13 ` Simon Glass
2012-03-20 21:17   ` Stephen Warren
2012-03-20 23:28     ` Graeme Russ
2012-03-20 23:33       ` Simon Glass
2012-03-20 23:52         ` Graeme Russ
2012-03-21  0:02           ` Simon Glass
2012-03-21  0:17             ` Graeme Russ [this message]
2012-03-21  0:19               ` Simon Glass
2012-03-21  0:39                 ` Graeme Russ
2012-03-21  1:18                   ` Simon Glass
2012-03-21  1:46                     ` Graeme Russ
2012-03-21  0:42         ` Stephen Warren
2012-03-21  1:54           ` Simon Glass
2012-03-21  9:38         ` Wolfgang Denk
2012-03-21 10:35           ` Graeme Russ
2012-03-21 16:49             ` Stephen Warren
2012-03-21 16:59               ` Simon Glass
2012-03-21 17:09                 ` Stephen Warren
2012-03-21 17:13                   ` Simon Glass
2012-03-21 17:38                     ` Stephen Warren
2012-03-21 17:50                       ` Simon Glass
2012-03-21 18:25                         ` Stephen Warren
2012-03-21 23:00                           ` Wolfgang Denk
2012-03-21 22:56                 ` Wolfgang Denk
2012-03-21 23:01                   ` Simon Glass
2012-03-21 23:07                     ` Wolfgang Denk
2012-03-21 23:16                       ` Simon Glass
2012-03-22 13:25                         ` Wolfgang Denk
2012-03-22 15:17                           ` Simon Glass
2012-03-22 23:00                             ` Wolfgang Denk
2012-03-22 23:03                               ` Simon Glass
2012-03-22 23:07                                 ` Wolfgang Denk
2012-03-22 23:41                                 ` Graeme Russ
2012-03-23 15:08                                   ` Simon Glass
2012-03-22 15:40               ` Doug Anderson
2012-03-21 16:29           ` Stephen Warren
2012-03-21 22:52             ` Wolfgang Denk
2012-03-20 23:29     ` Simon Glass
2012-03-21  9:19     ` 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=CALButC+U+nhrW29_c+J-RduR6iPpYDwVvMHyhZ0x0oVqdYyOXA@mail.gmail.com \
    --to=graeme.russ@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 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.