From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796229900; b=ZETd/uMIzzwMls8yWVwGVFAuoYEgjUj7FMYM6i8zoGbd13TWTRAcuRAvc3ejFXdOUijN TzYa0FGD7n6qqZF0mwUukiMolqRJSxUqiuWf5lkI9ynOMYe+27dXv4qDYhhDhRUj6wlT5 wSaFM85CDdQ0d9avvNQ4dXEeevqT35zt5VyC1VvyJVDXyVGiTCe5swb7ZrV6k2UBsw639 cmbCSqadBUAeyCfwpJz4oA2wdm8G1TVXwgFiP+/Gim3Qi1ZA2SWuyFQnHP03P4Ss+5eTE VdkPKaNal32ornx7G0xEwq5xrTZTxyjbN3MgBebpXpbaJTxwuAR2uppA1CBwTxTiJJA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796229900; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=MI1BBznoFgnBfwfcwYwvtsCjfMxY+uhngVijAbrJxf0=; b=zQS2FzagLRDMHD4xoAjRtKoyDyCMx8QgGGOTvdtfkhwbzphzOjVlXzJHTivlTS+c7YCR 2VXGDaGIKqr7yt0Ns8NkrzD3/3FAbwRoD3N9WMFZGz6NZXci/z1gXrccrk03ACXdredxJ zsgNpabqSSjYcAUqmKqJd4KuMPgah1HCRTGXSilzat3tD2kZaz8uVYYy/0QJEPTJ2ehAs znjUcyyPTb7FRnML/CWGPN6lbdbYfNrNZ5mfIlOiM6TJrjBvg25peGydQByvR761MBz/h 5dp1+LS1+r+qzBe/wLamph0OZLzdpuF2gqkEaoaPX2V6cbo53JHoUMw17zHzKNL+iKA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=eRfO2nlS; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EC511606A31A for ; Wed, 2 Dec 2026 16:44:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=eRfO2nlS Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E23B1F00896; Wed, 2 Dec 2026 16:44:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796229899; bh=MI1BBznoFgnBfwfcwYwvtsCjfMxY+uhngVijAbrJxf0=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=eRfO2nlS5omYB0iIVCTI88N6eLEwcEm+4k7owcfPA0AKw6duteKw0j8SewlAK2bLf iaNXDY/p++YGIPCzVf7WOl9Dc++/VBv7zCMTNEC3oHRaW/UQrfUSDZr2p+KObv7SJG 8TIDQd4DI60zIafUwXZTWj6qQZ4AOBv+X1MwSympHUo6wYVdtGetgrKDJalJO0EMB3 s8E8vadKy42rVFk8aYUAhuQDxwSSFYa8lVfB9O89BHY/omGAtd2Ri12xxnHtrNOaSZ VOYsApByH1vMtkVp7E775cuG+cuelvLWnA8vEV/XbotZWxFI4L49nE2UXu7Vck2D7+ 7uD9e7nVnDCuQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2] serial: imx: disable TX interrupts when already stopped Reply-To: sashiko-reviews@lists.linux.dev To: "Michael Glembotzki" , linux-serial@vger.kernel.org In-Reply-To: <20261202163424.698658-2-Michael.Glembotzki@iris-sensing.com> References: <20261202111526.664966-2-Michael.Glembotzki@iris-sensing.com> <20261202163424.698658-2-Michael.Glembotzki@iris-sensing.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Dec 2026 16:44:59 +0000 X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > On i.MX8MP, watchdog diagnostics captured repeated UART TX-ready > interrupts with tx_state OFF, an empty transmit buffer and no pending > x_char. The normal transmit handler calls imx_uart_stop_tx(), but that > function returns early when the state is OFF without clearing > UCR1_TRDYEN or UCR4_TCEN. A still-enabled TX interrupt can starve the CPU > and prevent the watchdog from being serviced. >=20 > Clear both TX interrupt enable bits before returning from the OFF branch > of imx_uart_stop_tx(). This also handles stopped transmission with data > still queued, a buffer drained by the transmit handler, and platforms > using a separate TX interrupt handler. Keep the existing DMA and RS485 > handling for other TX states unchanged. >=20 > UART and RX remain enabled. Subsequent transmission can enable TX > interrupts again through the normal start path. >=20 > The origin of the inconsistent state is not yet known. This change > addresses the observed interrupt loop, not the initial state mismatch. >=20 > Fixes: cb1a60923609 ("serial: imx: implement rts delaying for rs485") > Cc: stable@vger.kernel.org > Signed-off-by: Michael Glembotzki Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261202163424.6986= 58-2-Michael.Glembotzki@iris-sensing.com?part=3D1