Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3394202pxk; Mon, 28 Sep 2020 16:57:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBoXXspbK8dOqA5OKTCrmDuPGm/09kumUSWkQmK92dS3QFCkfJJurzDA073DSVJMNEmH1T X-Received: by 2002:a05:6402:ca7:: with SMTP id cn7mr446275edb.143.1601337454387; Mon, 28 Sep 2020 16:57:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601337454; cv=none; d=google.com; s=arc-20160816; b=Frzx8r9ecgpmuaLOxDzwpDernjvs5bX43qGHbTHkh9zHXV/hyo8SaG9+s/6M0YvXJI 5BYUpkAk7mmz7ZG7rADgP4riE+5iqXw90SNrUYU5+Cww/hWUrqeGhomEC2rbxlWLZCZt KJ29dIbmrQW8+EymselrMQ/RAvPXXNtL5ipx/Xtsa2TFZ+H31xUYYc+E4WVdiiXFPjbz Oa3mnnh6n25Ot1qyfgCv3rxAX13iDPOwqGjF/cqUWE7UslK0tQnTkwds/qY8Rwjvn3A+ lcziz0r0yOrgTqU9K75nC2z/vS8tYNSegogkMwrd/HgFNZ4y9WvLFPM9U0Q3BiKMWuCB Y6tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ERLSmH29Wwr1IY03LaFVNQ7ltDIG/gA/L4vA1ctoXjk=; b=g3XnnK9XZsE/GL18DeWt58d0i8mG9OsRkY4NcdhjEFrfX0QngPQZlBsF+uRPhBMKwO fAl3tzvPY8gQG3llfnWIehSfakv31XDSI92a2UMtVKbUKBMGKeG5Ej7mvEY/6xYgTGw4 8nbyPrL2Tdq38IMwCUtv2V+Ej8JcU/G0mBjMd0WojydO2Bo3+G8pt8zz+2LVSicLi8et ast9SDEVxRwXmIZRoeydwOO2ISBIeh3G0e/87JA/9VIkIsvHu/C63wxL46P3J768ICIj 1j90065n6XiN9Ko1zGruV8nDzDFkk2hkHPagRAkaRFPdCPIrtWtySup3U4HUzlB1p4vQ cQ3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gJLQq3Xg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g24si1711649edu.262.2020.09.28.16.57.02; Mon, 28 Sep 2020 16:57:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gJLQq3Xg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727153AbgI1Xzc (ORCPT + 99 others); Mon, 28 Sep 2020 19:55:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:51778 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726952AbgI1Xzc (ORCPT ); Mon, 28 Sep 2020 19:55:32 -0400 Received: from localhost (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 947A82193E; Mon, 28 Sep 2020 22:00:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601330426; bh=ZFEod8yQOVrkBo8ei/0ZNHsZ2G5wacEFDAQREbQ1Mrc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gJLQq3XgRmcaXVK+sZq+JIMO4IOEauGmH4HgF2Sa6Btp9+3h4CDacN1VCnp/tPJMz DUmXdPyhHucWge65pwMg1pegZv6ltXZdy1x3aZox7MFn9fTY83MkimhlRgaCHfFpds LDiJd1X2alw+WM3v7lVlQJ1Xidohk/r8SnkeGMZ0= Date: Mon, 28 Sep 2020 18:00:25 -0400 From: Sasha Levin To: Naresh Kamboju Cc: open list , linux- stable , Raviteja Narayanam , Shubhrajyoti Datta , Greg Kroah-Hartman , linux-serial@vger.kernel.org, Linux ARM Subject: Re: [PATCH AUTOSEL 4.4 42/64] serial: uartps: Wait for tx_empty in console setup Message-ID: <20200928220025.GD2219727@sasha-vm> References: <20200918021643.2067895-1-sashal@kernel.org> <20200918021643.2067895-42-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 29, 2020 at 01:46:59AM +0530, Naresh Kamboju wrote: >On Fri, 18 Sep 2020 at 07:51, Sasha Levin wrote: >> >> From: Raviteja Narayanam >> >> [ Upstream commit 42e11948ddf68b9f799cad8c0ddeab0a39da33e8 ] >> >> 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. >> >> Signed-off-by: Raviteja Narayanam >> Reviewed-by: Shubhrajyoti Datta >> Link: https://lore.kernel.org/r/1586413563-29125-2-git-send-email-raviteja.narayanam@xilinx.com >> Signed-off-by: Greg Kroah-Hartman >> Signed-off-by: Sasha Levin > >stable rc branch 4.4 arm64 build broken. > >../drivers/tty/serial/xilinx_uartps.c: In function ‘cdns_uart_console_setup’: >../drivers/tty/serial/xilinx_uartps.c:1170:40: error: ‘TX_TIMEOUT’ >undeclared (first use in this function) > 1170 | time_out = jiffies + usecs_to_jiffies(TX_TIMEOUT); > ^~~~~~~~~~ >Reported-by: Naresh Kamboju Dropped, thanks! -- Thanks, Sasha