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 X-Spam-Level: X-Spam-Status: No, score=-17.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 74B74C07E9B for ; Tue, 20 Jul 2021 18:34:37 +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 DA732606A5 for ; Tue, 20 Jul 2021 18:34:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DA732606A5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6E4C982DF6; Tue, 20 Jul 2021 20:34:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="jJ+zy3xq"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2E22982DC4; Tue, 20 Jul 2021 20:33:43 +0200 (CEST) Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) (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 6B26D82DE4 for ; Tue, 20 Jul 2021 20:33:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@google.com Received: by mail-wm1-x32a.google.com with SMTP id b14-20020a1c1b0e0000b02901fc3a62af78so2045354wmb.3 for ; Tue, 20 Jul 2021 11:33:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WjHTcU5lY7PsrXGYcn5MthuQuVKbY3r6HRbWZ1w92gk=; b=jJ+zy3xqxBCoEUfJALrbItu33xuFAYSwIzbL0wqiLyYFisdtt6VViE1+T4TTxBaI3K 1+sJ81JVh2TNGXEYwsIFopvtz1x5IFPc4VNBuFE8PNyo9MgrWTt6ETn2bN205UlkWVPj xpQC/Tw/rmNeTOftY5AaH4GcQhbqn6nCuDfAs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WjHTcU5lY7PsrXGYcn5MthuQuVKbY3r6HRbWZ1w92gk=; b=kOm7x7du8UHaxwgEp8DAWzw4bCqKpJMHHZRVoncQd4SGGjh3hBuyqTkAS8kfeqwoPx vv422glHGMCfXk40J7m61aFrn7DZXmToYzfpZ0QIhQILE7wjDee28NpWs4MFvqARJqrx GlSjCQQH/UhPDccYWke5D/prtorbZVSVpXG+n2bXuMTVkhYiLJxcOl0LHMpf77g2uDKV zwbCK665mdNyrxpgasIYd8RN60RCb/BmffVQR+yfLIG72PQImkaFbfgvwp76pWQdNbTz dWgW7jeHjS0NujgJDsbidnP0uVDFzGfl1qY4KpzltLZP8kX96bIJT6eJOyja+qz9kl9F 56AQ== X-Gm-Message-State: AOAM5309LmWvRvj3xZ2UGiCRSPz7Mue+NWdNzq1Mcv/JbHd5HAu0yiOY x1cFIpU4LEuMxT0b0Swj4InXwUPfKTkyvv79fJomturgfumJlg== X-Google-Smtp-Source: ABdhPJxFVlLSBONVemGk0okMfQ33ctUh9VzRlgtkr/VHSAObDUE5ZfCcPRfFih6swE8ThnyW9wl4AtwutpqRBLbOcIs= X-Received: by 2002:a7b:ca43:: with SMTP id m3mr33054704wml.74.1626806013729; Tue, 20 Jul 2021 11:33:33 -0700 (PDT) MIME-Version: 1.0 References: <20210719073604.17252-1-chenbaozi@phytium.com.cn> In-Reply-To: <20210719073604.17252-1-chenbaozi@phytium.com.cn> From: Simon Glass Date: Tue, 20 Jul 2021 12:33:11 -0600 Message-ID: Subject: Re: [PATCH v2] serial: pl011: Resend the character if FIFO is full in debug uart To: chenbaozi@phytium.com.cn Cc: U-Boot Mailing List , Tom Rini , Stefan Roese Content-Type: text/plain; charset="UTF-8" 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 On Mon, 19 Jul 2021 at 01:36, Chen Baozi wrote: > > pl01x_putc() might return -EAGAIN if there was no space in FIFO. In that > case, high-level caller should wait until there is space and resend the > character. > > Signed-off-by: Chen Baozi > Reviewed-by: Stefan Roese > --- > drivers/serial/serial_pl01x.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Reviewed-by: Simon Glass