Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp142297ybt; Tue, 30 Jun 2020 16:43:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLTCCQ6V5SQQxDCsf/txlN4dTW+ECn2n7NIUfOJ42AdhlNB9y58ucIP/Vyon05NHjmxsxn X-Received: by 2002:a17:906:a081:: with SMTP id q1mr15739572ejy.499.1593560581735; Tue, 30 Jun 2020 16:43:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593560581; cv=none; d=google.com; s=arc-20160816; b=bAGi+oLhg0+8NuwLdwUK2TOiDrebvfJlQfKlyA/99BwJXz5oQEZetHZg4UKOfYS7IH U5bLFipkcso0Nkt9i24JHxy/Gl6o+jpSe6+AstQ04zX8TEDwi9/18KkosN9j4IUwc8qR YUu8+jvU/UByGQxZ2bnYAMa+1MrcHk2YATcOOkk/JDAUYeEV1jrUlaeqWQTwxCjO0jdj TBza367KFLqgBMZrdDv1aAQpqbcylNpOej9p/4kq+UpJWaS7a1/axfDWKOdf64W3VhOk x41bC7E+rYGZdjgGsec/4CQpZqO6yOT5Yl1Xhsix1hHy3aFM7BEox9Z9S24UTY0FSKPe knBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:mime-version :message-id:date:dkim-signature; bh=n7raTtIxzIsyGs4VWsPeosbmDVfxOPL6Kt3Xxdq+NzQ=; b=ILGvGBKuMBzeKr1zOJCHcMWyYdJmvmNhTnHZqzX36nleWNcHZOykRpQGrM9r7xplly yqmf8JNBgQc6O0kQrLVBMsRO3BzzhQDUZ4Weiai8CywzNIfMMHzb9Owum2MfRaf4yOLM bVwamMPgGJF8TIm9Afjm4hZ2EDDRwCTuq+Vy+7IDPnTKq2nkbB64HRemqlFKmS8r3hTw frxaQuaoxEe6nPjQXgwP+pYNJk67y6tPH24S2NTtCKxQ/hlyuW1UgSXHb6wfyKMhDiDQ DGm1fWyI/HDE93s3gH68TarMCBrB/BUBJrKGSG6WfXwFaGG+hPHPXO/jBxEUXYAqzTl+ c31w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=A08aIEHF; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s21si2941414edi.268.2020.06.30.16.42.37; Tue, 30 Jun 2020 16:43:01 -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=@google.com header.s=20161025 header.b=A08aIEHF; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726739AbgF3XmY (ORCPT + 99 others); Tue, 30 Jun 2020 19:42:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725930AbgF3XmX (ORCPT ); Tue, 30 Jun 2020 19:42:23 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11F50C061755 for ; Tue, 30 Jun 2020 16:42:23 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id a205so14081501ybg.8 for ; Tue, 30 Jun 2020 16:42:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=n7raTtIxzIsyGs4VWsPeosbmDVfxOPL6Kt3Xxdq+NzQ=; b=A08aIEHFxec2io4UGF3QU20z0l2BqR3XRZdtO0deY3xpDvUVhgUsaEA0fEJq8xLVv1 8iCEpYwHEW+DpYTAYAhmywuVfaUUvalvMif/YEaUBGSUyzVMqL63Rsp0U5Ru387tHPZ+ /fUOjy+s+z1U8vdgIPpCtI/0xDh2YjITOMhhvLn43fEsd8+265yQGgrr2glqwnWDdJ8K uz6cuejZtMwVxmLDE78AoZpJAyRmOBqX3S9faTinh0d0+P8tC+NoQk3w7V4yXR3zn5pI dR94lL+K0Kfj/bjLrk6DNrWqlH2Zk40NlXWbGZtj95aLheVuSpxG3LAHfny/GIJwuRr3 YTTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=n7raTtIxzIsyGs4VWsPeosbmDVfxOPL6Kt3Xxdq+NzQ=; b=sXg+ti8AXAzcDJSQIJVJz6UIiypzulx7ArskJ3M1LNGtEXiF6sGiKmU1GZZ+pgSU8I wWSFljI/rQYRdHfHInjvICl9mHVS9d3hZLECKYL9aWHR1/7fT1vaHWWzrSCSPizic7hz s7VY1nAi9zFy9T9cGEWMPrkbCzqLWorvQYAzV07e3rhBgKI20a/1VONp7tp7eJpaZRlk a7GZmQHM+DnXaKlr3a2rIxUHLun93+6QoSQPI4Auj9erzwE/yGZ8H1jMRede2GHckDLC CkWSKfzQbbJUPu/H/d3taGG6HODBOR5ozMdUxyXHpzhmM8n31Vh/TfD1qZIqhkDOuACc st7Q== X-Gm-Message-State: AOAM530rTfvtfq4P+zo429VcW375afOpBZirOLm37yMM7p3m5GgEj5SD rjgGwoSKMAanMRqcK+neDQ6l6FcADTtedO0ZzFFb X-Received: by 2002:a25:5d04:: with SMTP id r4mr35391905ybb.290.1593560542263; Tue, 30 Jun 2020 16:42:22 -0700 (PDT) Date: Tue, 30 Jun 2020 16:42:11 -0700 Message-Id: <20200630164204.1.I2cc415fa5793b3e55acfd521ba8f0a71e79aa5f1@changeid> Mime-Version: 1.0 X-Mailer: git-send-email 2.27.0.212.ge8ba1cc988-goog Subject: [PATCH] Revert "serial: 8250: Fix max baud limit in generic 8250 port" From: Daniel Winkler To: linux-serial@vger.kernel.org, linux-mediatek@lists.infradead.org Cc: chromeos-bluetooth-upstreaming , Daniel Winkler , Aaron Sierra , Andy Shevchenko , Greg Kroah-Hartman , Jiri Slaby , Lukas Wunner , Vignesh Raghavendra , linux-kernel@vger.kernel.org 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 This reverts commit 0eeaf62981ecc79e8395ca8caa1570eaf3a12257. The change regresses the QCA6174A-3 bluetooth chip, preventing firmware from being properly loaded. We have verified that without this patch, the chip works as intended. Signed-off-by: Daniel Winkler --- drivers/tty/serial/8250/8250_port.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/tty/serial/8250/8250_port.c b/drivers/tty/serial/8250/8250_port.c index 1632f7d25acca..e057c65ac1580 100644 --- a/drivers/tty/serial/8250/8250_port.c +++ b/drivers/tty/serial/8250/8250_port.c @@ -2618,8 +2618,6 @@ static unsigned int serial8250_get_baud_rate(struct uart_port *port, struct ktermios *termios, struct ktermios *old) { - unsigned int tolerance = port->uartclk / 100; - /* * Ask the core to calculate the divisor for us. * Allow 1% tolerance at the upper limit so uart clks marginally @@ -2628,7 +2626,7 @@ static unsigned int serial8250_get_baud_rate(struct uart_port *port, */ return uart_get_baud_rate(port, termios, old, port->uartclk / 16 / UART_DIV_MAX, - (port->uartclk + tolerance) / 16); + port->uartclk); } void -- 2.27.0.212.ge8ba1cc988-goog