From patchwork Thu Aug 22 09:11:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Portia Stephens X-Patchwork-Id: 1975362 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WqHWT1dgrz1ybW for ; Thu, 22 Aug 2024 19:11:33 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1sh3qo-00016W-Ib; Thu, 22 Aug 2024 09:11:26 +0000 Received: from smtp-relay-internal-0.internal ([10.131.114.225] helo=smtp-relay-internal-0.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1sh3qm-00016P-VF for kernel-team@lists.ubuntu.com; Thu, 22 Aug 2024 09:11:24 +0000 Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id AEB333F12E for ; Thu, 22 Aug 2024 09:11:24 +0000 (UTC) Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-2d3c4d321f4so670699a91.2 for ; Thu, 22 Aug 2024 02:11:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724317882; x=1724922682; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=s2+g8+xpGDnhL6Gdlry3LTMr/0aMqNP1OPj/2AlhNwI=; b=IHXj/1zpJ/M7wTXDMlPoFUkbbXBMhniiUkgpGVelxluSIICVwGE6BzNnu8ebfEZP7T febOixF+/Q32llIpQQ25rRk7KO8RG8dQ8NQPxIRvJ7j6xP1Nj8sqm3XwN8iv20PsFmoh AG90Njq34XJLbQZJG+MKrHTT1lvx7N9F+zeFRGPVmxdIob1n9CtOixO5vBPgDF5D54G8 tpl0VTxiQbUxC7fCduBLMLjaRxpyicXDjrIZfRvn1X1yrT60V6xyy2iiX/yMikVPo1pb Ip4gahseoGkA4ra2budty1d5niN4vVQ3z6/o4n9eUIoK3iOLf315QEXtoJwmRc37w/Ry zjug== X-Gm-Message-State: AOJu0YxIMYyVMz9ut4nOSJmTZDvrbnUQREOFSexiI8F9mIQF4Z27SvSd gfkNgpHGqKhsU2hOFH13J3C8VJhNKhhQ21Y6/oMucVX+q6wmsC59tz9uGSN1Nk9vWZ6wviCNElf Nxqonls7kyY4deBnAz2QiDBPOezI7KZq8J4lr8ihOg1vZ/U8P7udGBWD0fUI2yxpWDkdLvZA4n5 sBqCt6ZkSfYA== X-Received: by 2002:a17:90b:3881:b0:2c9:7d09:1e7b with SMTP id 98e67ed59e1d1-2d5e9db8804mr5718745a91.27.1724317882605; Thu, 22 Aug 2024 02:11:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFDiMgrbV+HYAJl+TmwiLyejuEKOPmIs+TFUyD71WzyuCEToDROL7VReLDziZStQUGdOFnMJw== X-Received: by 2002:a17:90b:3881:b0:2c9:7d09:1e7b with SMTP id 98e67ed59e1d1-2d5e9db8804mr5718721a91.27.1724317882038; Thu, 22 Aug 2024 02:11:22 -0700 (PDT) Received: from localhost ([159.196.41.205]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2d5eb911da5sm3510944a91.24.2024.08.22.02.11.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Aug 2024 02:11:21 -0700 (PDT) From: Portia Stephens To: kernel-team@lists.ubuntu.com Subject: [SRU] [jammy:linux-xilinx-zynqmp 00/14] Backport ps uart RS485 driver Date: Thu, 22 Aug 2024 19:11:03 +1000 Message-Id: <20240822091117.1760423-1-portia.stephens@canonical.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" [ Impact ] * Backports support for rs485 to the uartps driver from the tty staging tree * One device tree patch is taken from the vendor's tree . [ Test Plan ] * Testing is needed to ensure this doesn't break the serial console on current platforms. QA will develop a new automated test to be integrated into cert testing * Testing of the RS485 port will be integrated into the cert testing for the KD240 [ Where problems could occur ] * The patches have not landed in mainline and are being pulled from the maintainers tree. There is a risk they will be rejected from mainline. * Two patch is not in mainline and only exists on the vendor tree , it is a device tree change. [ Other info ] * The following 3 patches are required from the tty-dev tree. All other patches were pulled in to support the backport. 1. https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git/commit/?h=tty-next&id=32152467ffac3b79eae7313959c310946b0e6072 2. https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git/commit/?h=tty-next&id=74231ab6cc2d02303ddf1fabd878756c52f788a5 3. https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git/commit/?h=tty-next&id=fccc9d9233f918ee50cf2955ae7134a7f3418351 4. https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git/commit/?h=tty-next&id=cc3236cd758b07c1f36cabd55ea1740f0881faa0 5. https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git/commit/?h=tty-next&id=b4337685010990385901405cc317a5a46b147b5a 6. https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git/commit/?h=tty-next&id=e3896be240780ccade65cc6cc8925c6f12e7f6c6 7. https://github.com/Xilinx/linux-xlnx/commit/6472141dd7401ff43fc0fbb3dbc253454c5be2ee * BugLink: https://bugs.launchpad.net/bugs/2055237 Geert Uytterhoeven (1): serial: 8250: Document termios parameter of serial8250_em485_config() Ilpo Järvinen (2): serial: Store character timing information to uart_port serial: take termios_rwsem for ->rs485_config() & pass termios as param Johan Hovold (1): serial: fix TIOCSRS485 locking Krzysztof Kozlowski (1): dt-bindings: serial: cdsn,uart: add power-domains Manikanta Guntupalli (8): dt-bindings: Add reference to rs485.yaml tty: serial: uartps: Relocate cdns_uart_tx_empty to facilitate rs485 tty: serial: uartps: Add rs485 support to uartps driver dt-bindings: serial: cdns,uart: Add optional reset property arm64: zynqmp: Add resets property for UART nodes tty: serial: uartps: Add support for uartps controller reset arm64: zynqmp: dts: Add required properties for rs485 support for KD240 arm64: zynqmp: dts: Add rts delay property for rs485 mode on KD240 Wen-chien Jesse Sung (1): UBUNTU: SAUCE: dts: zynqmp-sck-kd-g-revA: Enable uart0 for KD240 .../devicetree/bindings/serial/cdns,uart.yaml | 21 +- .../boot/dts/xilinx/zynqmp-sck-kd-g-revA.dts | 34 +++ arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 2 + .../staging/uartlite-rs485/uartlite-rs485.c | 1 + drivers/tty/serial/8250/8250.h | 3 +- drivers/tty/serial/8250/8250_exar.c | 9 +- drivers/tty/serial/8250/8250_fintek.c | 2 +- drivers/tty/serial/8250/8250_lpc18xx.c | 2 +- drivers/tty/serial/8250/8250_pci.c | 2 +- drivers/tty/serial/8250/8250_port.c | 4 +- drivers/tty/serial/amba-pl011.c | 2 +- drivers/tty/serial/ar933x_uart.c | 2 +- drivers/tty/serial/atmel_serial.c | 2 +- drivers/tty/serial/fsl_lpuart.c | 4 +- drivers/tty/serial/imx.c | 2 +- drivers/tty/serial/max310x.c | 2 +- drivers/tty/serial/mcf.c | 3 +- drivers/tty/serial/omap-serial.c | 3 +- drivers/tty/serial/sc16is7xx.c | 2 +- drivers/tty/serial/serial_core.c | 30 ++- drivers/tty/serial/stm32-usart.c | 2 +- drivers/tty/serial/xilinx_uartps.c | 251 ++++++++++++++++-- include/linux/serial_core.h | 2 + 23 files changed, 332 insertions(+), 55 deletions(-) Acked-by: Aaron Jauregui Acked-by: Manuel Diewald