From patchwork Sat Sep 21 08:10:54 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Pelykh X-Patchwork-Id: 2922111 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 2586CBFF05 for ; Sat, 21 Sep 2013 08:11:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4264220121 for ; Sat, 21 Sep 2013 08:11:50 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 470F820109 for ; Sat, 21 Sep 2013 08:11:49 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VNII5-000849-S7; Sat, 21 Sep 2013 08:11:46 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VNII3-00043p-Fy; Sat, 21 Sep 2013 08:11:43 +0000 Received: from mail-wi0-x233.google.com ([2a00:1450:400c:c05::233]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VNIHz-00042w-7I for linux-arm-kernel@lists.infradead.org; Sat, 21 Sep 2013 08:11:40 +0000 Received: by mail-wi0-f179.google.com with SMTP id hm2so427722wib.0 for ; Sat, 21 Sep 2013 01:11:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=QvCmU14NmXBGca5WIZoE0Kwwlc4WLsorJTiqs1Abe5g=; b=0Q2fQNbuWxLWxwPBjWnS4t62/B71ksEYq8g2zWWZVT1To4QOyszRs2a2OEbmdRyTk5 Chf+jVA3IpyzrBayhA9zQgn8XPWDXPDnmBtET1BPUJSB7o2U0ocja1jtwfLHJ5V81MRd W5Si91HZW4IHCkUBuNrBDfe97if0wceJMFVFggIm7JU4A7zmpJOTwc1siyiyjVuKJ3PM woMGzs442iwdqi7PW85b4tXBqzjfmGPM2t87Thr/c1+C7rIwpO8Q3SK2D2Z+aOz1Sj2k FIyFH1VYpYQgS+n78S7VA6NIr4TFzBPnywm/6p9mre+WKThqtoRcBw+6n2XFPyE85bIM DBpA== X-Received: by 10.180.206.5 with SMTP id lk5mr5807882wic.10.1379751061793; Sat, 21 Sep 2013 01:11:01 -0700 (PDT) Received: from inertiallabs-linux64 (5353B86B.cm-6-4c.dynamic.ziggo.nl. [83.83.184.107]) by mx.google.com with ESMTPSA id ed12sm9795414wic.11.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 21 Sep 2013 01:11:01 -0700 (PDT) Date: Sat, 21 Sep 2013 04:10:54 -0400 From: Alexey Pelykh To: Greg KH Subject: [PATCH] OMAP/serial: Fix Mode13 vs Mode16 priority Message-ID: <20130921081054.GA15775@inertiallabs-linux64> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130921_041139_434400_715F92D9 X-CRM114-Status: UNSURE ( 9.06 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) Cc: Tony Lindgren , linux-kernel@vger.kernel.org, Felipe Balbi , linux-serial@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 From: Alexey Pelykh Make Mode16 more preferred than Mode13, to match TRM baudrates table. Signed-off-by: Alexey Pelykh Cc: Tony Lindgren Cc: Felipe Balbi Cc: Greg KH Cc: linux-serial@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-omap@vger.kernel.org Cc: linux-kernel@vger.kernel.org diff --git a/drivers/tty/serial/omap-serial.c b/drivers/tty/serial/omap-serial.c index 7d348c8..146e712 100644 --- a/drivers/tty/serial/omap-serial.c +++ b/drivers/tty/serial/omap-serial.c @@ -247,7 +247,7 @@ serial_omap_baud_is_mode16(struct uart_port *port, unsigned int baud) if(baudAbsDiff16 < 0) baudAbsDiff16 = -baudAbsDiff16; - return (baudAbsDiff13 > baudAbsDiff16); + return (baudAbsDiff13 >= baudAbsDiff16); } /*