From patchwork Sun May 21 07:50:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 96830 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp757717vqo; Sun, 21 May 2023 01:01:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6dXgPOuuu1CiOq0/SXfjZaofHdKg+uQBxZKlKOPMgc8XkNXvwYyHLY55zmVX0L4TlIww3D X-Received: by 2002:a17:90b:3e8d:b0:253:4b01:30d with SMTP id rj13-20020a17090b3e8d00b002534b01030dmr11855293pjb.11.1684656110063; Sun, 21 May 2023 01:01:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684656110; cv=none; d=google.com; s=arc-20160816; b=QhNL/epL/kNNS7Wr8BDH8Be+LJMY8MDRaE+WXqmoPdjgnXz+O4c49wo+m7tqQygg1y kaprQJVLGSmjMvj3oErV2RjW+Om/oa56C7ZBxhtfn8Z89uS/9vw4dyaL81cmprwVWvii wP7CF8VuW5dCwHsR3IQ4RVBHhLLc1QPUsLTpfoXfcnUhAuBJvYCTAJstlI/aq3PYYDud +hyOVqhZYbe30EejUwFnxI28qRblVnxa6xl66eIrQwSwaFA/+FrylcRj9bF93cy9TxHe dzeb9310BTE+LMbFitjQ7db4wUE5G8q0zBRcejDNWjkg8NySgn3OTqp25JyECXxFqQFE Wkgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=x45JB6d8uRh2jZVynsLC/k+HQt3mBQZgQCZkixZARFg=; b=TjoAooa+TLyLiIQCa3f9/niRKm4A/2anLQ6W49xBp7Itj5/5sf8xz3LeTkcSygsN8F ysAcHtlDlCqARdGKnyV5syQi6VRPMYpV87W8RFYM/47Yr/sraF16a/RGIS2sJ3Ol2MOR vQDTRn8ybiH+Lm91UrEQgh9q8GAlnGq5cEKFTLN1KqKLLIl/SMIQ6gj4M7nVZ/pOizXK yJLoWf1ITc+jRWCyaBIQzSwiZ0eaepdPAFBlWh9nyah0ksvrW2ohrJvbxZm7VKqmQ05g 8bu4XSQBLky86lfxR/btU7KUV6sJGSfmzkIMqcxHm7e/wIKq+AEGfw1M49pXWZ5cRscN 1TtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=VQ4tV0C9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 63-20020a17090a09c500b00250a970092bsi42624pjo.4.2023.05.21.01.01.27; Sun, 21 May 2023 01:01:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=VQ4tV0C9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229644AbjEUHvV (ORCPT + 99 others); Sun, 21 May 2023 03:51:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbjEUHvS (ORCPT ); Sun, 21 May 2023 03:51:18 -0400 Received: from mail-il1-x135.google.com (mail-il1-x135.google.com [IPv6:2607:f8b0:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7FB911A; Sun, 21 May 2023 00:51:16 -0700 (PDT) Received: by mail-il1-x135.google.com with SMTP id e9e14a558f8ab-3318961b385so6809955ab.1; Sun, 21 May 2023 00:51:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684655476; x=1687247476; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=x45JB6d8uRh2jZVynsLC/k+HQt3mBQZgQCZkixZARFg=; b=VQ4tV0C9VCY6EIUoCRmK6hTXDcgNrmDtcOU4DRqRZBwe/R+Y1D3vB+HsFZuPuDGYEo UmLwKlXb8D+AI6pxHoCh+uVdASK6VqRAOHEx+5RuEsVMvbJblbHpXjlYz/PLGTBbnLbS bWxDDE84fK0R1ZIV9Odien/s5U3W/SxH7uqzqPRitw14lmD46eNiq4hJDFG1i+n5+pzw wrEtKzxnAw7TmXHUshz0yGZnZTUgbrbcEv8C+VXUqrND4mWZw1lyfd0edIMSdv3M+vvK BllAXALdTFKWzzTQG7qpHs2U0hp2rJBuOwTfSxEMiMUkPnQuHxiCR86g0XsZBHIJXZ+U 2CJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684655476; x=1687247476; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=x45JB6d8uRh2jZVynsLC/k+HQt3mBQZgQCZkixZARFg=; b=P3QEpAIwBqEXikCzNewYdSO0EcuQdJCKZJVfefFF6U2JkYLk5X1+Sau+ECE7qcyKdy 6qp/X/B56TspWQ4AJqddNSkKxEIUPN+YU0PRNbfUuGU4pxtUnTqZX4nLbDjAjKkzmoxU RoEccE83EroY8PXl7QZRVAUQoGI4USvlkUXRht4z4ftGhbFdHFNnKM7x45XmkSpb4Pce 2qMVpsgCBv8U4MSwZygJiovEJloztuUwF/xWoaQZuJqaZeYajqkiUCh+dc6MR9dIskIH Z8faDucIedkIl/IRRgQIP8E67Pz+RiUS/DN5omQ+yZN/XKRiOKrEZIE0rRbRro22DaXE iQLw== X-Gm-Message-State: AC+VfDwITHIVEo7q/8U9MRpUauAlNOZFnDwp4u7X2/GlY03GMjek7itj 1bjbsWeFAHbvmyWnDypzqBreQEik1EAc3w== X-Received: by 2002:a92:c24e:0:b0:331:7885:3300 with SMTP id k14-20020a92c24e000000b0033178853300mr9821417ilo.12.1684655475800; Sun, 21 May 2023 00:51:15 -0700 (PDT) Received: from james-x399.localdomain (71-33-144-241.hlrn.qwest.net. [71.33.144.241]) by smtp.gmail.com with ESMTPSA id bv26-20020a056638449a00b0041627abe120sm424jab.160.2023.05.21.00.51.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 May 2023 00:51:15 -0700 (PDT) From: James Hilliard To: linux-serial@vger.kernel.org Cc: James Hilliard , Greg Kroah-Hartman , Jiri Slaby , Andy Shevchenko , Kumaravel Thiagarajan , =?utf-8?q?Ilpo?= =?utf-8?q?_J=C3=A4rvinen?= , Helge Deller , Geert Uytterhoeven , Matthew Gerlach , Randy Dunlap , linux-kernel@vger.kernel.org Subject: [PATCH] serial: Indicate fintek option may also be required for RS232 support Date: Sun, 21 May 2023 01:50:44 -0600 Message-Id: <20230521075046.3539376-1-james.hilliard1@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766489965053785032?= X-GMAIL-MSGID: =?utf-8?q?1766489965053785032?= The current config comment for SERIAL_8250_FINTEK implies that this option is only needed when one wants to support RS485. As it turns out we also need to enable this option for RS232 support to function correctly on some variants. For example for variants such as the F71869AD attempting to use multiple RS232 ports simultaneously without this option enabled can result in data corruption. Signed-off-by: James Hilliard --- drivers/tty/serial/8250/Kconfig | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/tty/serial/8250/Kconfig b/drivers/tty/serial/8250/Kconfig index 5313aa31930f..cf33e858b0be 100644 --- a/drivers/tty/serial/8250/Kconfig +++ b/drivers/tty/serial/8250/Kconfig @@ -71,14 +71,16 @@ config SERIAL_8250_16550A_VARIANTS console, you can say N here. config SERIAL_8250_FINTEK - bool "Support for Fintek F81216A LPC to 4 UART RS485 API" + bool "Support for Fintek variants" depends on SERIAL_8250 help - Selecting this option will add support for the RS485 capabilities - of the Fintek F81216A LPC to 4 UART. + Selecting this option will add support for the RS232 and RS485 + capabilities of the Fintek F81216A LPC to 4 UART as well similar + variants. If this option is not selected the device will be configured as a - standard 16550A serial port. + standard 16550A serial port, however the device may not function + correctly without this option enabled. If unsure, say N.