Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp332989ybb; Wed, 8 Apr 2020 00:14:50 -0700 (PDT) X-Google-Smtp-Source: APiQypI8ZPZEaXXMHvdd7L+MrzpgemrQkFqbd4Cbgmng8pNhle7w3jdv+qKqSRbxN8aOBpf0xpz0 X-Received: by 2002:a9d:6d82:: with SMTP id x2mr4801342otp.50.1586330090465; Wed, 08 Apr 2020 00:14:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586330090; cv=none; d=google.com; s=arc-20160816; b=wnSlqEHSkxWIqoxDzX7r0GyOTj/F0ZymnQ3M7+MUL6VEchEL3LixQZhwWtYaQFDJps SleEX3kJxQ2eIwAGjedMCLoBi6LoBXdfmXYSgpYMdMNzDx27SfP8URWpIuWleg9uFpBU PIroxqC4FQXWrY62LsGfvMetXiUviM+UduAZ6T/JJ0g9NMGa7HK2a14jXkCGONR7/zWk m8Kj2NVhYpnXW7fWBairhJO89POkoUNayptK6KWyKHqXTswW39oGI1yU8g39gk/PtCOr 5UiGF0hPG+5vfFYbn3WVmBiKTCJdR8aXgvl4no3eZI1FdPXqWtA/5Fsrd8K9MGBREm5V YQAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=n3pOLajiHp9QNgBFOxW5iWABG0gRZUq3fep3oI+pRP8=; b=wXlf0Cu5B/SUw2oiJ9YsKyBk6lPHsBrZ40BELdQX26o1yFlRkjOZpvF92h/8mhkvPg h4C0dSC+3g6HI8T4WBymi9KweNfVa7CnIvJMC3AcEVunt28RZxC4Nwi7zBdhQSnStq7k XSABLBawoDzGTe5feqcRdCn3MEsLMpbl3z0A/eKJHIg4uHtz3w1TlTZxOsmw0xMxDwc/ XolOHIXYrWIpj4DYk4sqiLQOVHkwhz1yrHWmcfT+gu0F/gr2NFJ3ii03ml+ihg2LrrHj bsumoMRkxFvCxlh1+uTrolRZdHgEoSdP8DXEYjeGawcPeasB2UY3TG9zu3tPY3pN9L9Z kKQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NYpEyhHH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a1si1630378oie.70.2020.04.08.00.14.35; Wed, 08 Apr 2020 00:14:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NYpEyhHH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726657AbgDHHOE (ORCPT + 99 others); Wed, 8 Apr 2020 03:14:04 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:41623 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725932AbgDHHOE (ORCPT ); Wed, 8 Apr 2020 03:14:04 -0400 Received: by mail-io1-f66.google.com with SMTP id b12so6070451ion.8; Wed, 08 Apr 2020 00:14:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=n3pOLajiHp9QNgBFOxW5iWABG0gRZUq3fep3oI+pRP8=; b=NYpEyhHH8YEEcu1QsXmXLw3y8kOTad+w3HVZnR+Y3hyVn62prunYKNT8T4GqQbQpBj l/At2kUjKL8Th079SXupYhtk21aNK7hDaCSwh9agFmmKlcK1CdHlWB2UW04XWDI3jA3m TuoQuBtCLW/G+i1HIPoZo0LfWs2GyJlsNd2SQuwD8vFG2NISI8HYiruCgp71XTTZj9A3 rNRMGli6GXwytqzWW+cq3bspNSs7051L9l1d7ACWQYfr6eoBzNYQ//d4wEEumxvFSkdo gxYOGCqvk9aExhalhwO/oAaZIiEdBj0eswBvUf8O0FZrHL5YUJV6MatginpalN+p7TE4 h36A== 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=n3pOLajiHp9QNgBFOxW5iWABG0gRZUq3fep3oI+pRP8=; b=MxjCUM5Kh/qViTQqnaR9dOI9lhLvFwjlZ9Bi1B4nfvVuFxvFm0tRd4IxjiGCPE8UjT slNS5u1EUbGu9h4Yk6cSXnAzhREfrIAi3cUb3oi1k+aBPOP7ZsQIoaqgnLBbczP3kEB7 T4UZyVwAS82fQgN3HYLT0KGT9Yc4bYvLFiTC6Fkryt5nZ5MZ6RLAN0kAtLlEjgF/sY4I UICyf7c7VEyia8uA0UrqMAhq5bjM6DChj7G0256SGoYTZYD/8McBAYa7yKb0f/OQJ5al 5x6X3KrPj9qEeDQImUEggMYPdqOpHZQvRkAxGTOgzQaMTwaiZgVXhRbeVLd0o93YHaRw /KsQ== X-Gm-Message-State: AGi0PuZGG33cEexS+iYq6PilpH7alF8ERhpLfeijxUM++I0Ej86l3N91 JVET52dYZ70OYYL37hUtUknRI/ccuql6EHIa3F2YcQ== X-Received: by 2002:a5d:948e:: with SMTP id v14mr5715979ioj.112.1586330043053; Wed, 08 Apr 2020 00:14:03 -0700 (PDT) MIME-Version: 1.0 References: <1586278391-9061-1-git-send-email-raviteja.narayanam@xilinx.com> In-Reply-To: <1586278391-9061-1-git-send-email-raviteja.narayanam@xilinx.com> From: Shubhrajyoti Datta Date: Wed, 8 Apr 2020 12:43:51 +0530 Message-ID: Subject: Re: [PATCH] serial: uartps: Wait for tx_empty in console setup To: Raviteja Narayanam Cc: linux-serial@vger.kernel.org, Greg Kroah-Hartman , jslaby@suse.com, Michal Simek , linux-arm-kernel , linux-kernel , git@xilinx.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi , On Tue, Apr 7, 2020 at 10:25 PM Raviteja Narayanam wrote: > > On some platforms, the log is corrupted while console is being > registered. It is observed that when set_termios is called, there > are still some bytes in the FIFO to be transmitted. > > So, wait for tx_empty inside cdns_uart_console_setup before > calling set_termios. > Reviewed-by: Shubhrajyoti Datta