From patchwork Fri Mar 11 07:02:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Woerner X-Patchwork-Id: 550725 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4EC6BC433F5 for ; Fri, 11 Mar 2022 07:02:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234827AbiCKHDP (ORCPT ); Fri, 11 Mar 2022 02:03:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345199AbiCKHDO (ORCPT ); Fri, 11 Mar 2022 02:03:14 -0500 Received: from mail-qt1-x82b.google.com (mail-qt1-x82b.google.com [IPv6:2607:f8b0:4864:20::82b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8D261AAA45; Thu, 10 Mar 2022 23:02:11 -0800 (PST) Received: by mail-qt1-x82b.google.com with SMTP id c4so6675405qtx.1; Thu, 10 Mar 2022 23:02:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=vaMUR8eqBjunf19pL1HP7SUWTLVHC5595sNbHKANJ+U=; b=OvAfQl8HBtshuXU8uIh/jHIk9HdF3cvpD3sqHlw+eFWZfkRfO7CDL0bwZD4yUFXM2U k8aWg48VK+MlXncM5P93BdY0MF/tashrOdO38JNU51w27sOmWCXkWfEFRm2NdlAJ7rOK nC00Lxd9cZnESHWqrP6g+oY12KhA/6M0XD1mzzBv3Nha6KMhFYiAQhg34lXo6h0iAxlO V+ibhZTIIubUr8b69+lZvUAQ79Ch2pOzwzGNSykj4gc8tdXTRqL2u09U+L8v5DYHe+UQ CVz/5vpJImv3xmLlg9VA3H3yuG6beg2h0oVQSKWUjYMX9K6No3zqLvHc3gnCP4sF/NAT sEgw== 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:mime-version :content-transfer-encoding; bh=vaMUR8eqBjunf19pL1HP7SUWTLVHC5595sNbHKANJ+U=; b=c00zq7vKbp5aA6UC596RHGQ+C1NcDv5EN1xszNS3BpLe2XZPaFNjtI5kwDIm8cfdoy h4mDd6KlAhUetzn+Orbob/r8o6egG01yR4uohY85GE+aJ9/L6IrWHcSv2NYWuUW8UG6c 1Fvs4BBx/XhB3lIKirSgHmG+gUjztVYsBA5WwS5nvnAinRI2+/uw+gulYQ48hSKp95Wy /MGfvfk5gho9wOdozT+oBBFMrnus7HqtI17NdBKeZjyixEc9hPy4U9m+UO8c4VZpeL6Z DLnAbBWmGuKCHyub17RuJa/hdwDtZ0/iE6ZzcSsmcup/4UqlmoEx+yvvsfvBL7VvSESh 44Tw== X-Gm-Message-State: AOAM533nocn38KDq5TXJZxMeJnccdCc/9XZS3gj+q16/89aC9pK+cycA IPYi/00tC8WWZkrCrraOJaEhfec6KtQ= X-Google-Smtp-Source: ABdhPJxTOE3DoJ1oAmVNsMPoW5pI9Iu7bwKQM5vPdI81FzaUDVD2xeLjU5iMaFeRMx/thPSy7D65KQ== X-Received: by 2002:ac8:5c07:0:b0:2de:97ee:6d8d with SMTP id i7-20020ac85c07000000b002de97ee6d8dmr7018722qti.110.1646982130702; Thu, 10 Mar 2022 23:02:10 -0800 (PST) Received: from localhost.localdomain (pppoe-209-91-167-254.vianet.ca. [209.91.167.254]) by smtp.gmail.com with ESMTPSA id k8-20020a05620a138800b00679fc7566fcsm3352834qki.18.2022.03.10.23.02.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Mar 2022 23:02:10 -0800 (PST) From: Trevor Woerner To: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Jiri Slaby Cc: linux-serial@vger.kernel.org Subject: [PATCH 1/3] serial: 8250_fintek.c: Finish support for the F81865 Date: Fri, 11 Mar 2022 02:02:00 -0500 Message-Id: <20220311070203.18159-1-twoerner@gmail.com> X-Mailer: git-send-email 2.34.1.75.gabe6bb3905 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org This driver only partially supports the F81865 device. The UART portions of this SuperIO chip behave exactly like the UART of the F81866, except that the F81866 has 128-byte FIFOs whereas the F81865 has 16-byte FIFOs. Therefore fill out the support for the F81865 in the places where it is missing. Tested at 1500000 baud on the iEi NANO-PV-D5251-R10 board. Signed-off-by: Trevor Woerner --- drivers/tty/serial/8250/8250_fintek.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/tty/serial/8250/8250_fintek.c b/drivers/tty/serial/8250/8250_fintek.c index 251f0018ae8c..d9f0e546b1a1 100644 --- a/drivers/tty/serial/8250/8250_fintek.c +++ b/drivers/tty/serial/8250/8250_fintek.c @@ -316,6 +316,7 @@ static void fintek_8250_set_termios(struct uart_port *port, break; case CHIP_ID_F81966: case CHIP_ID_F81866: + case CHIP_ID_F81865: reg = F81866_UART_CLK; break; default: @@ -363,6 +364,7 @@ static void fintek_8250_set_termios_handler(struct uart_8250_port *uart) case CHIP_ID_F81216H: case CHIP_ID_F81966: case CHIP_ID_F81866: + case CHIP_ID_F81865: uart->port.set_termios = fintek_8250_set_termios; break; From patchwork Fri Mar 11 07:02:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Woerner X-Patchwork-Id: 550724 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 22A74C433EF for ; Fri, 11 Mar 2022 07:02:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346685AbiCKHDY (ORCPT ); Fri, 11 Mar 2022 02:03:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346916AbiCKHDQ (ORCPT ); Fri, 11 Mar 2022 02:03:16 -0500 Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53D881AAFEA; Thu, 10 Mar 2022 23:02:14 -0800 (PST) Received: by mail-qt1-x831.google.com with SMTP id o22so6636284qta.8; Thu, 10 Mar 2022 23:02:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UvaYo2cimBpUC52A1zMiwrJzooNeMXFHyymI5Ni0pQY=; b=bOUtlZpsu4wVKoOC+ID+rxLV9D6EYjf4g/iYWDPPeOpwRsK+Fyqx1Yet4K7S4WQHFF AasMvFtO9ZI5hcBNDqkfu3mPyg8rJ/XrzsKRXkxLk7g5X0PFbwRmO6biYfT4YG47O+TA FmVFFUOvsdmZbz2fHIbs9zogimPS+c1TzWsu2fzbQfJGj9QAJjwVMjzsGRhiSfQT1c5O JvN+S1/vEva+vzVvLkaDbuzeQAWuBSTVEvHSPNKaWfExvdoLhd39RS16CV2mFUe94Pnu epe3dKFiXkjF2qOU3e/sBmctv3naGUIIGmz9CTN10gqs/bovizOOoQR70qzeNa8vBWUW V6LQ== 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:mime-version :content-transfer-encoding; bh=UvaYo2cimBpUC52A1zMiwrJzooNeMXFHyymI5Ni0pQY=; b=jjNWlN8a7eldy735lhqBBDHc91jZ2Y7n+xlV54RwsvkaQv7DRbTfyCC6bXwhMK7hZR oUUCemBE+KTv1/ycl1LFR1EwlGa4xF1UTNxb/QjaHpSwZuJyOt+U1wav+UzFw6tG5zGC y5aBg2uxkcGC0isGhhyPDHF5cKhoSDMZ+QthXSyT75i9tXXdxvPJyR1xjIc53OfVm6+O UpoZrVsYvUu4H0m8/WZJZJegr2BAyC02xlZarbCltVnF7vvnK6hdIQmJVFi8uJBtGEpI 4ojQXMsLY3y7E9Cc8aAnEY9IfW9ACLuN+07TjDz/QybD5kaiHz81OYGGgNmTQyzUBJq+ qLZw== X-Gm-Message-State: AOAM532FOt2mxvRL13IcxG/qdHb7moHtKdxfcqPHBheRNfdCRHyXarSs WOLery4vyXizJK5zXS4CXV4y/lowB/o= X-Google-Smtp-Source: ABdhPJx2kZLNWgXhY+Tv5Ear02WQgXVRYuHG+84lw/Yvp1LZhPYxbxNGrxl045/ZGRpelOTw6ha56Q== X-Received: by 2002:a05:622a:1c1:b0:2e1:b35c:2aa9 with SMTP id t1-20020a05622a01c100b002e1b35c2aa9mr4622353qtw.313.1646982133259; Thu, 10 Mar 2022 23:02:13 -0800 (PST) Received: from localhost.localdomain (pppoe-209-91-167-254.vianet.ca. [209.91.167.254]) by smtp.gmail.com with ESMTPSA id k8-20020a05620a138800b00679fc7566fcsm3352834qki.18.2022.03.10.23.02.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Mar 2022 23:02:12 -0800 (PST) From: Trevor Woerner To: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Jiri Slaby Cc: linux-serial@vger.kernel.org Subject: [PATCH 3/3] serial: 8250_fintek.c: Clean up set_termios() message Date: Fri, 11 Mar 2022 02:02:02 -0500 Message-Id: <20220311070203.18159-3-twoerner@gmail.com> X-Mailer: git-send-email 2.34.1.75.gabe6bb3905 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Clean up the status message that is given in the case where a custom termios() is not installed. Signed-off-by: Trevor Woerner --- drivers/tty/serial/8250/8250_fintek.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/8250/8250_fintek.c b/drivers/tty/serial/8250/8250_fintek.c index 03ad2354d808..dcab23d1965e 100644 --- a/drivers/tty/serial/8250/8250_fintek.c +++ b/drivers/tty/serial/8250/8250_fintek.c @@ -333,7 +333,7 @@ static void fintek_8250_set_termios(struct uart_port *port, default: /* Don't change clocksource with unknown PID */ dev_warn(port->dev, - "%s: pid: %x Not support. use default set_termios.\n", + "%s: chipID: %x not supported; using default set_termios.\n", __func__, pdata->pid); goto exit; }