From patchwork Sun Nov 14 18:39:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jay Dolan X-Patchwork-Id: 517655 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7353FC433F5 for ; Sun, 14 Nov 2021 18:39:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4E3AD604DC for ; Sun, 14 Nov 2021 18:39:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236157AbhKNSmI (ORCPT ); Sun, 14 Nov 2021 13:42:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236153AbhKNSmH (ORCPT ); Sun, 14 Nov 2021 13:42:07 -0500 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65A80C061767 for ; Sun, 14 Nov 2021 10:39:13 -0800 (PST) Received: by mail-pj1-x1035.google.com with SMTP id gb13-20020a17090b060d00b001a674e2c4a8so12059596pjb.4 for ; Sun, 14 Nov 2021 10:39:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=accesio-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=LuzSRLtM/3fmTKXQ2R84gnWt2v8TS0BEYenwKOqGvYk=; b=oX6Zew9JvlcpOc/re8nyHX/mY+Bj4c6xxbzvHY42A7xPndjvggO3HSNBPssCdDkGqD HXz2NBDYRgnhskoUYXK+xKjT2eDKQgdanYquu/w/HPqdTsK7A6v1QTQkWMeMbkJK9l5w ABKr2PAL5QlP2QkaLcPbnrdN06y8DJQYIyh6zLfXb5Z2upZjm4TL4bGWQ0uE0PvyrfhO sUcRknFMnK9tUJ5fupVw7jaCh7j7LuMjxSaGlzPWdvvXFVCYdNdUT95Gzd8T70bZhbkG ax4EwlYT9A/P3ViB4vVCcJLMJwRlNq+uGz60SDAFxGRswwz+W5qaKlY6ni/7CweR/8o+ tHlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=LuzSRLtM/3fmTKXQ2R84gnWt2v8TS0BEYenwKOqGvYk=; b=ZSNAVjjhdUhPn1qDIcVpxikuaDBAxe1M8UBehqwuraNQSQgt3N739WYSmgT6MuxLAE KUSNvzisvFm5YzN0NdNAtqmKfGL0p2atop+GIBd3pX45a+gHE8x9A0t4+w0bCy7coEVD sLq1Io4mfME/b0sVlSb5o1ck37qMIOCksqyvvg6J2hAeqdxCxJbDPjmQJH9U2hJXXTVX 8Cg5log+vi8YfmUJ5eWAmgZkDZVz07DYEbj/wg+iN3O0lJNyIGAsZImx5qBtA9CYTDv9 T8x8lLoOHC39d++80u7e3WqxjjD6nKG6uFHreXo2tH43PZ3i0vA/dSNJGpZkdkmXxXUo BaPQ== X-Gm-Message-State: AOAM533gWXZ0+YFKkh4tauuSI6m/LHNNl+lfObtw2rrR+eCNZZ+HJkzm EESxNHI977AHSc4BpfY7UYaOBi4heGKBjl0v956rCvSQ8r92EUQyuCy1K5Ehjb3JbPhYkJzzJ6L E8XcjJfvNf6adXyk7ZYdkGUAb5FPcCJQojClDipWRqf/70olwl8KJF9oMkvWwqk6iDpKbVgKbOk dv8Kw= X-Google-Smtp-Source: ABdhPJxBJ5zxlftewT+ZpsGBhkp5Z3t2tonVFjnE4crS0KWPBJnbKzoIOpO7weXAmgkMMRGiBizlmw== X-Received: by 2002:a17:90b:4a50:: with SMTP id lb16mr39601124pjb.147.1636915152682; Sun, 14 Nov 2021 10:39:12 -0800 (PST) Received: from work-laptop.dolannet.net ([98.149.220.160]) by smtp.gmail.com with ESMTPSA id y130sm12551642pfg.202.2021.11.14.10.39.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Nov 2021 10:39:12 -0800 (PST) From: Jay Dolan To: linux-serial@vger.kernel.org Cc: Jay Dolan Subject: [PATCH 2/3] serial: 8250_pci: Re-enable higher baud rates on Pericom chips Date: Sun, 14 Nov 2021 10:39:07 -0800 Message-Id: <20211114183908.444923-3-jay.dolan@accesio.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211114183908.444923-1-jay.dolan@accesio.com> References: <20211114183908.444923-1-jay.dolan@accesio.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Add UPF_MAGIC_MULTIPLIER to Pericom serial ports since there is now range checking in serial8250_get_baud_rate() in 8250_port.c Signed-off-by: Jay Dolan --- drivers/tty/serial/8250/8250_pci.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/tty/serial/8250/8250_pci.c b/drivers/tty/serial/8250/8250_pci.c index aea43683b76d..5615ac1d2352 100644 --- a/drivers/tty/serial/8250/8250_pci.c +++ b/drivers/tty/serial/8250/8250_pci.c @@ -1352,6 +1352,11 @@ pericom_do_set_divisor(struct uart_port *port, unsigned int baud, } } } +static int pericom_do_startup(struct uart_port *port) +{ + port->flags |= UPF_MAGIC_MULTIPLIER; + return serial8250_do_startup(port); +} static int pci_pericom_setup(struct serial_private *priv, const struct pciserial_board *board, struct uart_8250_port *port, int idx) @@ -1372,6 +1377,7 @@ static int pci_pericom_setup(struct serial_private *priv, return 1; port->port.set_divisor = pericom_do_set_divisor; + port->port.startup = pericom_do_startup; return setup_port(priv, port, bar, offset, board->reg_shift); } @@ -1398,6 +1404,7 @@ static int pci_pericom_setup_four_at_eight(struct serial_private *priv, return 1; port->port.set_divisor = pericom_do_set_divisor; + port->port.startup = pericom_do_startup; return setup_port(priv, port, bar, offset, board->reg_shift); } From patchwork Sun Nov 14 18:39:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jay Dolan X-Patchwork-Id: 517654 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5BE74C433FE for ; Sun, 14 Nov 2021 18:39:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 38A42604DC for ; Sun, 14 Nov 2021 18:39:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234526AbhKNSmL (ORCPT ); Sun, 14 Nov 2021 13:42:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236127AbhKNSmI (ORCPT ); Sun, 14 Nov 2021 13:42:08 -0500 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35B6EC061746 for ; Sun, 14 Nov 2021 10:39:14 -0800 (PST) Received: by mail-pf1-x42e.google.com with SMTP id n26so8480741pff.3 for ; Sun, 14 Nov 2021 10:39:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=accesio-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=VA+Nf5mnU3mY2GBsE0jbJZKakSMRM1K5SLbV9R5mN2M=; b=aMmbNnfLquP7oxgY9WQ9ObrQwPFDgq+J9EoWRmoP/JCEHgOqFjYBZcrVjfPbxWq4YI 32Ct28XGzpeECxdOV9bNIOu/LxPaP3k6aNKg9yospHrPfTOlXG2FUUp8bVFs60Jv1pLG l2HD714beYJsqvx0jBdEGpUhdJtw7g6hUSIXrNy7kSy3s5FcA8a1TLhKQVDAK/zQuJSF y1xO343wXOu7g7mYtKKUTAEIpyP/m6ttYGAsUPZ2VLLtd2u+bN7YPhEkY4jMU14SvMwH ONi6LOJ5zpRbUibc8MX7mLO0fo5hefeV4xffwp22etRYOFLmclQTMX3c1TQBXkKGX+ZB oESA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=VA+Nf5mnU3mY2GBsE0jbJZKakSMRM1K5SLbV9R5mN2M=; b=SMWqYm8lL6TGg3ZjTXUb6Dl7LvYvWYxJB9Kl5WUxzsmVK0ZPX6nfgUcWbeSs6teJgG QaaOlq8q4GStneCsmb36fabWh2shtm7Ju1JH6D2DnH3q0i6VnV9o/nWEgoXBhyg9edKP iS1uQhZIcR/a9a/8o8iPyMMDbsbjXWLGU370mglMqQ1rE6/HTv40/pEtCqnk8kcMLvlz DKpxcH6dXoQURy4DekoMVy5hjOaX30EOobdBJXtB2kovysjpFLnvBKsynPGqhHSHNcE7 ikwYIcfic18/XfGBgeDpiCEXbtsrbWKYq0WwlPbc0uwhPO29i7UbJC3OaEH9+mp1D0pL bUWA== X-Gm-Message-State: AOAM533gnoiiGuA/tRwfkVgHI3pjMj+oR/NUy9wVeuZevr+raWqPfMjv 2ahA1Qr3CK2VcuK8qwBX6bnYfw9sDtpRHtmrWp4c8DJqjIVqtRLn9ug/SErBgfxCUK6rE0sssbz el0MtzZ/S8C5zyttlvd1mm1/RUdSzJnDVEQTtAIea9xlKD2ZUNL+oHb91E8iIZEBs20egLfk5ie uvUkw= X-Google-Smtp-Source: ABdhPJynfZj+4+wTgNshTSaP4TxxhOK6M06xL0rCy9z63zIg7g74E2MvbeedL97tHZWkMi/jNLdaVg== X-Received: by 2002:a63:54f:: with SMTP id 76mr20812108pgf.26.1636915153362; Sun, 14 Nov 2021 10:39:13 -0800 (PST) Received: from work-laptop.dolannet.net ([98.149.220.160]) by smtp.gmail.com with ESMTPSA id y130sm12551642pfg.202.2021.11.14.10.39.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Nov 2021 10:39:13 -0800 (PST) From: Jay Dolan To: linux-serial@vger.kernel.org Cc: Jay Dolan Subject: [PATCH 3/3] serial: 8250_pci: Fix ACCES entries in pci_serial_quirks array Date: Sun, 14 Nov 2021 10:39:08 -0800 Message-Id: <20211114183908.444923-4-jay.dolan@accesio.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211114183908.444923-1-jay.dolan@accesio.com> References: <20211114183908.444923-1-jay.dolan@accesio.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Fixes: 78d3820b9bd39028727c6aab7297b63c093db343 Fix error in table for PCI_DEVICE_ID_ACCESIO_PCIE_ICM_4S that caused it and PCI_DEVICE_ID_ACCESIO_PCIE_ICM232_4 to be missing their fourth port. Signed-off-by: Jay Dolan --- drivers/tty/serial/8250/8250_pci.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/tty/serial/8250/8250_pci.c b/drivers/tty/serial/8250/8250_pci.c index 5615ac1d2352..3f792cb44805 100644 --- a/drivers/tty/serial/8250/8250_pci.c +++ b/drivers/tty/serial/8250/8250_pci.c @@ -2302,12 +2302,19 @@ static struct pci_serial_quirk pci_serial_quirks[] = { .setup = pci_pericom_setup_four_at_eight, }, { - .vendor = PCI_DEVICE_ID_ACCESIO_PCIE_ICM_4S, + .vendor = PCI_VENDOR_ID_ACCESIO, .device = PCI_DEVICE_ID_ACCESIO_PCIE_ICM232_4, .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, .setup = pci_pericom_setup_four_at_eight, }, + { + .vendor = PCI_VENDOR_ID_ACCESIO, + .device = PCI_DEVICE_ID_ACCESIO_PCIE_ICM_4S, + .subvendor = PCI_ANY_ID, + .subdevice = PCI_ANY_ID, + .setup = pci_pericom_setup_four_at_eight, + }, { .vendor = PCI_VENDOR_ID_ACCESIO, .device = PCI_DEVICE_ID_ACCESIO_MPCIE_ICM232_4,