From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 6627C41B369; Wed, 4 Feb 2026 15:09:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770217779; cv=none; b=dScO/ORKKq0pp2HOmopVectKEI+MVPJEwPT3ylyhg+c8fL7w+ZuqSXcT/iaD5lETnDp7FnsjwRVRodJAlNpsvIwQVHXb9FuOtODki26Gycp1nnMnu8x1Ba+fU24eZOao0TGrNqCAI96xJLR+0NF0YOPXkTc1XBkej2DU23n9ybo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770217779; c=relaxed/simple; bh=ykM9PETldvXrLYIKROuKa4vHOZ8hSW1Xox5bT41hXCs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OUm6jLxNPycp9mjg/uWhuWwUyGSwB2XyoHn/7S2x0kyNwMelRvggXsSuhmLAuqj1okaYWHp5FQWb1zAAm1Ub+mryGKbu/6LXMoFRhV82wrpSBpMic2zeA33Qcl+cZmgAecbi1F55s+8mPunFXGabjBOmDlymlpDeh3FbevPw4OM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mrgx3DyI; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="mrgx3DyI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CEF66C116C6; Wed, 4 Feb 2026 15:09:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1770217779; bh=ykM9PETldvXrLYIKROuKa4vHOZ8hSW1Xox5bT41hXCs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mrgx3DyI+xMdmWWu0JP1T+NDJJ59eWDe3njLoq+QY4sTENTXvPKrGeUKSe/QSvMJ6 kDVYpk5tfBtnfw1UbVj9fbfvEeHAgr1sUBlHdwm7tsX2ES1ru2PN9/zQeNCiYCX8FL LEAR3SH3CMXP8cl+yPzBdwkAL7DHPBm9kl2QHxrY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, stable , Marnix Rijnart Subject: [PATCH 6.1 115/280] serial: 8250_pci: Fix broken RS485 for F81504/508/512 Date: Wed, 4 Feb 2026 15:38:09 +0100 Message-ID: <20260204143913.780216794@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260204143909.614719725@linuxfoundation.org> References: <20260204143909.614719725@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Marnix Rijnart commit 27aff0a56b3c77ea1a73641c9b3c4172a8f7238f upstream. Fintek F81504/508/512 can support both RTS_ON_SEND and RTS_AFTER_SEND, but pci_fintek_rs485_supported only announces the former. This makes it impossible to unset SER_RS485_RTS_ON_SEND from userspace because of uart_sanitize_serial_rs485(). Some devices with these chips need RTS low on TX, so they are effectively broken. Fix this by announcing the support for SER_RS485_RTS_AFTER_SEND, similar to commit 068d35a7be65 ("serial: sc16is7xx: announce support for SER_RS485_RTS_ON_SEND"). Fixes: 4afeced55baa ("serial: core: fix sanitizing check for RTS settings") Cc: stable Signed-off-by: Marnix Rijnart Link: https://patch.msgid.link/20260112000931.61703-1-marnix.rijnart@iwell.eu Signed-off-by: Greg Kroah-Hartman --- drivers/tty/serial/8250/8250_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/tty/serial/8250/8250_pci.c +++ b/drivers/tty/serial/8250/8250_pci.c @@ -1583,7 +1583,7 @@ static int pci_fintek_rs485_config(struc } static const struct serial_rs485 pci_fintek_rs485_supported = { - .flags = SER_RS485_ENABLED | SER_RS485_RTS_ON_SEND, + .flags = SER_RS485_ENABLED | SER_RS485_RTS_ON_SEND | SER_RS485_RTS_AFTER_SEND, /* F81504/508/512 does not support RTS delay before or after send */ };