From patchwork Mon Dec 22 14:44:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pramod Gurav X-Patchwork-Id: 5527551 Return-Path: X-Original-To: patchwork-linux-arm-msm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1101F9F2F7 for ; Mon, 22 Dec 2014 14:52:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 361D620173 for ; Mon, 22 Dec 2014 14:52:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 67D6020160 for ; Mon, 22 Dec 2014 14:52:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754921AbaLVOwI (ORCPT ); Mon, 22 Dec 2014 09:52:08 -0500 Received: from smtp126.ord1c.emailsrvr.com ([108.166.43.126]:36135 "EHLO smtp126.ord1c.emailsrvr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754832AbaLVOwH (ORCPT ); Mon, 22 Dec 2014 09:52:07 -0500 X-Greylist: delayed 454 seconds by postgrey-1.27 at vger.kernel.org; Mon, 22 Dec 2014 09:52:07 EST Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp16.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id B2DD91802CC; Mon, 22 Dec 2014 09:44:32 -0500 (EST) X-Virus-Scanned: OK Received: by smtp16.relay.ord1c.emailsrvr.com (Authenticated sender: pramod.gurav-AT-smartplayin.com) with ESMTPSA id AD9B8180071; Mon, 22 Dec 2014 09:44:28 -0500 (EST) X-Sender-Id: pramod.gurav@smartplayin.com Received: from SPINITLTDL00278.smartplayin.local ([UNAVAILABLE]. [220.227.185.53]) (using TLSv1.1 with cipher DHE-RSA-AES256-SHA) by 0.0.0.0:465 (trex/5.4.2); Mon, 22 Dec 2014 14:44:32 GMT From: Pramod Gurav To: Stephen Boyd Cc: David Brown , Daniel Walker , Bryan Huntsman , Greg Kroah-Hartman , Jiri Slaby , linux-arm-msm@vger.kernel.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Pramod Gurav Subject: [PATCH] tty: serial: msm_serial: Remove duplicate call to msm_set_baud_rate Date: Mon, 22 Dec 2014 20:14:20 +0530 Message-Id: <1419259460-24142-1-git-send-email-pramod.gurav@smartplayin.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The function 'msm_set_baud_rate' is called twice while setting up msm console. Once in msm_console_setup and next when uart_set_options calls port->ops->set_termios ie. msm_set_termios(). Remove the duplicate call in msm_console_setup. Tested on IFC6410 console. Signed-off-by: Pramod Gurav --- drivers/tty/serial/msm_serial.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/tty/serial/msm_serial.c b/drivers/tty/serial/msm_serial.c index dbc278d..4c4a250 100644 --- a/drivers/tty/serial/msm_serial.c +++ b/drivers/tty/serial/msm_serial.c @@ -945,7 +945,6 @@ static int __init msm_console_setup(struct console *co, char *options) if (baud < 300 || baud > 115200) baud = 115200; - msm_set_baud_rate(port, baud); msm_reset(port);