From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A8164C433F5 for ; Sun, 17 Oct 2021 10:46:33 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E828C60F8F for ; Sun, 17 Oct 2021 10:46:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org E828C60F8F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D010383509; Sun, 17 Oct 2021 12:46:26 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="VD/JlnGP"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 41EAC834A3; Sun, 17 Oct 2021 12:45:57 +0200 (CEST) Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id EC85C8348B for ; Sun, 17 Oct 2021 12:45:49 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=dsankouski@gmail.com Received: by mail-ed1-x530.google.com with SMTP id i20so57365298edj.10 for ; Sun, 17 Oct 2021 03:45:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=b1vcTZwL3CmUwALM6oQOqalAXYdBZT3IQx4I/e9zCjY=; b=VD/JlnGPUAw0cFwMdm/2XL0RYfxukBLOjT9egqjPyqgzjRmrJsxCks4CshxxkW4KYI yShmYkt9kj8UFLo8lvA4/YI5ldmB0oeyHuvSORa8j6MWREEREalli+GBvouxlWvB1AfM JU/owKNlIFRQeXemndS90P9muzYnj/VmCi6KdC3o3aUEL9ZktXz64I0vUoWdJzQUaTKA OCYq2gg4fmSwzTWL8zdHnIEY0U/EP9UEdfQAyRGMNzqgbihoLrkyX5FH0OG12mZb/53I pJRJ1euAIQkR2GMVCYLmet27y/r95nnD/VMrHriRgTR4h1Qvm0Tu68N6t/EvX7Hy9H+m eyKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=b1vcTZwL3CmUwALM6oQOqalAXYdBZT3IQx4I/e9zCjY=; b=fIMqB69mBnmP6R8S/axHZjhOapYxqBARGyUKYLIRIO+8/HP7135I5PAo5nE8bxFCzg eEwetCawO4u1wYObDQsq7T7+9R5E7PIxww5Fmm3UvGBGQDKHw/+3fINQ2SjSxvdJT+Hl M79rT1oiZWR/m3yjS+6Y9Qw9M6UqQ/LRiC0ES/Ypaf7HWTJgx9b2JiUJOD+EpFhXSH8F wwEI6LHHtEIGmbIbuVjN0JBU1FDCZgXIRzd7z1++Kd7FFcm1kdQudQywWyjLVuSS7Zd1 i9IBsYWR4eICijPn2wxghFNuwpo14NvqqwpDN/PrF3LaRw+Ddi8PPorh8yTWakKcsz/I eQNQ== X-Gm-Message-State: AOAM533zSxSxi9jiUOVFksToNCez805Jwd2PXDagccMFKsRSMsXaVGuL AFKaDkGJxVMz9GklGKOmbA36W7eyNUP1aQ== X-Google-Smtp-Source: ABdhPJympyOLVAPZr6Fa/o87Vhp4UDkxmEnXzxmWaR1sfi7iKpPMDED7zc+4dUKkBcKUVMGmC2Xtug== X-Received: by 2002:a17:907:2658:: with SMTP id ar24mr21117049ejc.405.1634467549245; Sun, 17 Oct 2021 03:45:49 -0700 (PDT) Received: from localhost.localdomain ([46.216.16.109]) by smtp.gmail.com with ESMTPSA id l23sm7403576ejn.15.2021.10.17.03.45.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Oct 2021 03:45:48 -0700 (PDT) From: Dzmitry Sankouski To: u-boot@lists.denx.de Cc: Dzmitry Sankouski , Minkyu Kang Subject: [PATCH 1/4 v2] serial: samsung: add support for skip debug init in s5p Date: Sun, 17 Oct 2021 13:45:39 +0300 Message-Id: <20211017104542.3821-2-dsankouski@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20211017104542.3821-1-dsankouski@gmail.com> References: <20211017104542.3821-1-dsankouski@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Signed-off-by: Dzmitry Sankouski Cc: Minkyu Kang --- 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