All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans de Goede <hdegoede@redhat.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] dm: serial: Add a REQUIRE_SERIAL_CONSOLE option for boards with no serial port
Date: Thu, 6 Aug 2015 20:27:01 +0200	[thread overview]
Message-ID: <55C3A6F5.1040804@redhat.com> (raw)
In-Reply-To: <CAPnjgZ2pNFhoCFqUo2ycDbydfhCeDc1YQoAh46k93jL5ps9LcA@mail.gmail.com>

Hi,

On 06-08-15 18:10, Simon Glass wrote:
> hi Hans,
>
> On 1 August 2015 at 10:05, Simon Glass <sjg@chromium.org> wrote:
>> Hi Hans,
>>
>> On 25 July 2015 at 03:58, Hans de Goede <hdegoede@redhat.com> wrote:
>>> Currently the serial code assumes that there is always at least one serial
>>> port (and panics / crashes due to null pointer dereferences when there is
>>> none).
>>>
>>> This makes it impossible to use u-boot on boards where there is no (debug)
>>> serial port, because e.g. all uart pins are muxed to another function.
>>>
>>> This commit adds a CONFIG_REQUIRE_SERIAL_CONSOLE Kconfig option, which
>>> defaults to y (preserving existing behavior), which can be set to n on
>>> such boards to make them work.
>>>
>>> This commit only implements this for CONFIG_DM_SERIAL=y configs, as allowing
>>> running without a serial port for CONFIG_DM_SERIAL=n configs is non trivial,
>>> and is not necessary at this moment.
>>>
>>> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
>>> ---
>>>   drivers/serial/Kconfig         | 11 +++++++++++
>>>   drivers/serial/serial-uclass.c | 20 +++++++++++++++++---
>>>   2 files changed, 28 insertions(+), 3 deletions(-)
>>
>> Acked-by: Simon Glass <sjg@chromium.org>
>>
>> A few nits below.
>
> Are you OK with me fixing the nits when I apply it or would you like to resent?

I was planning on doing a v2, but I have not found the time to do
so yet. So your offer to fix the nits sounds good. Please go ahead
and fix them.

Thanks & Regards,

Hans

      reply	other threads:[~2015-08-06 18:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-25  9:58 [U-Boot] [PATCH] dm: serial: Add a REQUIRE_SERIAL_CONSOLE option for boards with no serial port Hans de Goede
2015-08-01 16:05 ` Simon Glass
2015-08-06 16:10   ` Simon Glass
2015-08-06 18:27     ` Hans de Goede [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=55C3A6F5.1040804@redhat.com \
    --to=hdegoede@redhat.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.