public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Dzmitry Sankouski <dsankouski@gmail.com>
To: u-boot@lists.denx.de
Cc: Dzmitry Sankouski <dsankouski@gmail.com>,
	Minkyu Kang <mk7.kang@samsung.com>
Subject: [PATCH 1/4 v2] serial: samsung: add support for skip debug init in s5p
Date: Sun, 17 Oct 2021 13:45:39 +0300	[thread overview]
Message-ID: <20211017104542.3821-2-dsankouski@gmail.com> (raw)
In-Reply-To: <20211017104542.3821-1-dsankouski@gmail.com>

Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
Cc: Minkyu Kang <mk7.kang@samsung.com>
---
Changes for v2:
- if CONFIG_DEBUG_UART_SKIP_INIT, return from init function

 drivers/serial/serial_s5p.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/serial/serial_s5p.c b/drivers/serial/serial_s5p.c
index 6d09952a5d..6823da79f8 100644
--- a/drivers/serial/serial_s5p.c
+++ b/drivers/serial/serial_s5p.c
@@ -221,6 +221,9 @@ U_BOOT_DRIVER(serial_s5p) = {
 
 static inline void _debug_uart_init(void)
 {
+	if (IS_ENABLED(CONFIG_DEBUG_UART_SKIP_INIT))
+		return;
+
 	struct s5p_uart *uart = (struct s5p_uart *)CONFIG_DEBUG_UART_BASE;
 
 	s5p_serial_init(uart);
-- 
2.20.1


  reply	other threads:[~2021-10-17 10:46 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-17 10:45 [PATCH 0/4] Add support for Samsung 2017 A-series phones Dzmitry Sankouski
2021-10-17 10:45 ` Dzmitry Sankouski [this message]
2021-10-31 16:25   ` [PATCH 1/4 v2] serial: samsung: add support for skip debug init in s5p Tom Rini
2021-10-17 10:45 ` [PATCH 2/4] pinctrl: exynos: add support for multiple pin banks Dzmitry Sankouski
2021-10-31 16:25   ` Tom Rini
2021-10-17 10:45 ` [PATCH 3/4] SoC: exynos: add support for exynos 78x0 Dzmitry Sankouski
2021-10-31 16:25   ` Tom Rini
2021-10-17 10:45 ` [PATCH 4/4] board: samsung: add support for Galaxy A series of 2017 (a5y17lte) Dzmitry Sankouski
2021-10-31 16:25   ` Tom Rini

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=20211017104542.3821-2-dsankouski@gmail.com \
    --to=dsankouski@gmail.com \
    --cc=mk7.kang@samsung.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