From patchwork Mon Jul 31 09:31:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Bich HEMON X-Patchwork-Id: 108985 Delivered-To: patch@linaro.org Received: by 10.140.101.6 with SMTP id t6csp12187qge; Mon, 31 Jul 2017 02:32:30 -0700 (PDT) X-Received: by 10.84.211.111 with SMTP id b102mr16150755pli.439.1501493550825; Mon, 31 Jul 2017 02:32:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501493550; cv=none; d=google.com; s=arc-20160816; b=tOzZuisG6UiYK/Zc+swB0SbjNMlXtZkVyKIJhdxosyV3Q3it2VjOmGF7ciCua6+b3l zvC9ex6CHpfsGbfTQULUlkw67SSrWKxroSt7oQD0pl45NQo6gljKWy8+Py4J1GhGze8N t04PS3xOnthDLVJu6ptWUUvxmtQ4KnENZY26420vF9wAnIn56nMkt4rzCLr2AcSg78iv QWLq7IdBYqe3QjI2CRwkfEQ/GTeKdnXywXal9PHjfDZJmP6eo6VFluLZNa+23e4AbIdR epcGI6gzM49IjXsmjc2k79WLQxTRZvhNuc8LF2ET7vs4++0Gs4zMB0xP0HS3WwSDbmja zYXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:message-id:date :thread-index:thread-topic:subject:cc:to:from :arc-authentication-results; bh=9ScDPxtM5koxWt+WUDI+lLeg3MygF2wV+fO6dAady/Q=; b=qKQcPLS8tKE8RJOUeZfLQvJPiPmy3LLAbfkSVs6M9TF4EJyw29gOQfrzupXdqVJI2c RyGQexN+cOXvzjD+wVId1n4q8hqjD/rU41SHRydpHW9getlBXXrRd96OqzTQwjogwWA2 N1FCUqEQhYNEG6w/nllwFsK9OHVnLHPs50ANGPzy70McPbzP/Kgcd0S0zYGBBxJuMB+E uoI4PdaVGXdGMLW8VQohTWuDLSgJqNXWQBQXPwUCLMuXC85Wbeflcq9xRDFBxIEYkk7x rfavkhFX296zwH/CTJ1P8DENag59yMK2Ajm7SyfNNL4aNfVcMzSOjEWAOvpdwxAllJBu 4WBQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u15si15403718plk.932.2017.07.31.02.32.30; Mon, 31 Jul 2017 02:32:30 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752057AbdGaJc3 (ORCPT + 26 others); Mon, 31 Jul 2017 05:32:29 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:11841 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750748AbdGaJc1 (ORCPT ); Mon, 31 Jul 2017 05:32:27 -0400 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id v6V9T0Xd015498; Mon, 31 Jul 2017 11:31:54 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-.pphosted.com with ESMTP id 2c0ftwj2kd-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 31 Jul 2017 11:31:54 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 9BBC249; Mon, 31 Jul 2017 09:31:53 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag3node2.st.com [10.75.127.8]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 728B02513; Mon, 31 Jul 2017 09:31:53 +0000 (GMT) Received: from SFHDAG3NODE1.st.com (10.75.127.7) by SFHDAG3NODE2.st.com (10.75.127.8) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Mon, 31 Jul 2017 11:31:53 +0200 Received: from SFHDAG3NODE1.st.com ([fe80::1166:1abb:aad4:5f86]) by SFHDAG3NODE1.st.com ([fe80::1166:1abb:aad4:5f86%20]) with mapi id 15.00.1178.000; Mon, 31 Jul 2017 11:31:52 +0200 From: Bich HEMON To: Greg Kroah-Hartman , Rob Herring , Mark Rutland , Maxime Coquelin , Alexandre TORGUE , "Jiri Slaby" , "linux-serial@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" CC: Bich HEMON Subject: [PATCH] serial: stm32: fix pio transmit timeout Thread-Topic: [PATCH] serial: stm32: fix pio transmit timeout Thread-Index: AQHTCd/X0MP9o8YHYUCpZ2xMua/a6A== Date: Mon, 31 Jul 2017 09:31:52 +0000 Message-ID: <1501493505-27933-1-git-send-email-bich.hemon@st.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.75.127.49] Content-ID: <1B00007B14299642A25194DAEE2F7969@st.com> MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-07-31_03:, , signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Gerald Baeza 100µs was too short for low speed transmission (9600bps) Signed-off-by: Gerald Baeza Signed-off-by: Bich Hemon --- drivers/tty/serial/stm32-usart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c index 72c0ec1..b16e7e7 100644 --- a/drivers/tty/serial/stm32-usart.c +++ b/drivers/tty/serial/stm32-usart.c @@ -203,7 +203,7 @@ static void stm32_transmit_chars_pio(struct uart_port *port) ret = readl_relaxed_poll_timeout_atomic(port->membase + ofs->isr, isr, (isr & USART_SR_TXE), - 10, 100); + 10, 100000); if (ret) dev_err(port->dev, "tx empty not set\n");