Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp868225lqa; Sun, 28 Apr 2024 07:46:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWw9nkv2xp9xetqKXFChQOu/3P0zxG9OgvknaO5LH4zS4RAoP0fYBdN3hmK0Npgt93iWim8sP9UtCxJUM9Wdn+BtekCNSPA8rN1uIyNGw== X-Google-Smtp-Source: AGHT+IGT7eYGCXDGXcINPppKChpztTlDV6IPPcUZHnO2acZ9ylgAbe9JMbXkm4DwQDWTiZ9jGYCz X-Received: by 2002:a17:906:dfc5:b0:a58:bd1b:a05f with SMTP id jt5-20020a170906dfc500b00a58bd1ba05fmr5340015ejc.68.1714315581951; Sun, 28 Apr 2024 07:46:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714315581; cv=pass; d=google.com; s=arc-20160816; b=tU+OHHL5wj3kuPPocybShzWuQEpc2wjdFG/WaPJIzQzlRi2ER8Hrjk/KTWb7be/FsY n9hUvEaQ3/6NyS5WkNN3SkmmmJrY8EzjsMKZ/JtHMIPgopZ00f+wx64+ebPusG1AUjW6 ymDKJ63cXAhujXfwDG2EhA39durUAUGSNrLbN3SDCncGEfprANFoO6MQ+jXKjR2IAlj9 z2aSJfOACjQdDke7QbYuK4dZQA/ximkN8E8QZfhKc0yMA9CVTewIhmlgWkEUx4jbX7RP QJyhtQtQaz6IABgq5T0eBVim6qMWEot0uZ4W9dE/uAfnVOgQSYn2RW792Na7Y8mHLQ49 QuEQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=1rb9DsOYv/HCrsFxBDIIM2h3mC32NpYupGiI69vo6Ro=; fh=AG6Yo+kszAL6weslcBc9FmnIglm1RvjhxFDYrcc3Ubc=; b=yiHuy5nku/bgsceF1AydVDuwDFS3JGQLr6V8QOzytyONNZcTTkq1GEtNm69M5DJ5JN 4VsVR5sdC+9IptBjSCUXj99Q80KYGXJdbbIkk0E+Z7iSzk5gpJD9OBsnxq060nyYAZdJ RtvD/dYkVfCzYK17xe+ExrjmfoIC0sglXtQQoj/5ZaJPCUNC5bMi9p2ngw2k5/Io87JU J3iC/gc/mAWE5nafjFu/nZod1KRkLSamXEsfvy1TZDdTB3VCZS87kIL8fadTpyvwkLaK 9kPka6wEnQNUVpj3TKLCz7xs/z61EvCTl474ccShf3vRn9/AAsj1ZYXHmYToZ2+Y21Wz ZKJg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ya.ru header.s=mail header.b=pkSnX7Nk; arc=pass (i=1 spf=pass spfdomain=ya.ru dkim=pass dkdomain=ya.ru dmarc=pass fromdomain=ya.ru); spf=pass (google.com: domain of linux-kernel+bounces-161458-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161458-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ya.ru Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ot6-20020a170906ccc600b00a5888728369si5982071ejb.303.2024.04.28.07.46.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Apr 2024 07:46:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161458-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@ya.ru header.s=mail header.b=pkSnX7Nk; arc=pass (i=1 spf=pass spfdomain=ya.ru dkim=pass dkdomain=ya.ru dmarc=pass fromdomain=ya.ru); spf=pass (google.com: domain of linux-kernel+bounces-161458-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161458-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ya.ru Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id AB9DC1F21417 for ; Sun, 28 Apr 2024 14:46:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 83EAE38DF2; Sun, 28 Apr 2024 14:46:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ya.ru header.i=@ya.ru header.b="pkSnX7Nk" Received: from forward101a.mail.yandex.net (forward101a.mail.yandex.net [178.154.239.84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DE3601E89A; Sun, 28 Apr 2024 14:46:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.154.239.84 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714315574; cv=none; b=D12uwfE1uCNdo2AWEv1fS5qbzdFpQKLMnJNhNFqTtZ2kjly3712GYDkKCbEg8aSKboNmB0ewjfacUWmAaEoUpHkiRG6H0/lb9D/mEC57nnYiwa12jurcMKd2vDYGc+pPZbpzWC1j+ONdVYsAmJYJ5B94B5nC/7ioVEk62fja08c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714315574; c=relaxed/simple; bh=2gtxsJmO0Yl29VT9YxKKpnmC4LGKvavZ6mZzgqja+fQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=f8oXpe8iNF9bdOf2NCHRoUOnocbSs64qqKqSPuNGyx0opMh83t2VGyDr5zrIr0+Xtv4HIwYY5Ae8G3fQZNYr2B2P1nFFdCYaITKRdcetv3IllwNisnS3ou+/hGYyoUpuyAXi/TxTtMEagFKW9EqXDxnoQWdNr4YKDIssJaQSk+A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ya.ru; spf=pass smtp.mailfrom=ya.ru; dkim=pass (1024-bit key) header.d=ya.ru header.i=@ya.ru header.b=pkSnX7Nk; arc=none smtp.client-ip=178.154.239.84 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ya.ru Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ya.ru Received: from mail-nwsmtp-smtp-production-main-68.vla.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-68.vla.yp-c.yandex.net [IPv6:2a02:6b8:c0d:41f:0:640:22c7:0]) by forward101a.mail.yandex.net (Yandex) with ESMTPS id 9667760903; Sun, 28 Apr 2024 17:46:00 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-68.vla.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id tjQeFr9Sga60-GbvMPXHt; Sun, 28 Apr 2024 17:45:59 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ya.ru; s=mail; t=1714315559; bh=1rb9DsOYv/HCrsFxBDIIM2h3mC32NpYupGiI69vo6Ro=; h=Message-ID:Date:Cc:Subject:To:From; b=pkSnX7Nkz/0vjh/8OSNniLUlm5xi43RIQDarkknVLAsiVHx2QPqT9PkPdlbv7u+a/ wwLL+nQtqMt8CXO+lEk61CRoP9dFOEFcoKHjcjPleE598jCZpjJxX0ZKYebAj2UIUx 2abapW2KHiCsoVGS/unfw/tr+Fq7I24fl8jkYgeQ= Authentication-Results: mail-nwsmtp-smtp-production-main-68.vla.yp-c.yandex.net; dkim=pass header.i=@ya.ru From: Konstantin Pugin To: Cc: krzk@kernel.org, conor@kernel.org, lkp@intel.com, vz@mleia.com, robh@kernel.org, jcmvbkbc@gmail.com, nicolas.ferre@microchip.com, manikanta.guntupalli@amd.com, corbet@lwn.net, ychuang3@nuvoton.com, u.kleine-koenig@pengutronix.de, Maarten.Brock@sttls.nl, linux-stable@vger.kernel.org, Konstantin Pugin , Greg Kroah-Hartman , Jiri Slaby , Hugo Villeneuve , Andy Shevchenko , Lech Perczak , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: [PATCH 0/1] serial: sc16is7xx: announce support of SER_RS485_RTS_ON_SEND Date: Sun, 28 Apr 2024 17:45:32 +0300 Message-ID: <20240428144541.80812-1-rilian.la.te@ya.ru> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit When specifying flag SER_RS485_RTS_ON_SEND in RS485 configuration, we get the following warning after commit 4afeced55baa ("serial: core: fix sanitizing check for RTS settings"): invalid RTS setting, using RTS_AFTER_SEND instead This results in SER_RS485_RTS_AFTER_SEND being set and the driver always write to the register field SC16IS7XX_EFCR_RTS_INVERT_BIT, which breaks some hardware using these chips. The hardware supports both RTS_ON_SEND and RTS_AFTER_SEND modes, so fix this by announcing support for RTS_ON_SEND. This patch is extracted from my XR20M117X series as it is affect all SC16IS7XX hardware. This bug affects all kernel series from 6.1 onwards. Konstantin Pugin (1): serial: sc16is7xx: announce support of SER_RS485_RTS_ON_SEND drivers/tty/serial/sc16is7xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) base-commit: 660a708098569a66a47d0abdad998e29e1259de6 -- 2.44.0