Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp3183lqe; Fri, 5 Apr 2024 10:35:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWQWKAk5iFu49LhZH2lDFPLRUGV9/MaakFviSRwghbViD8ma+XxIiUqDFKf3TfuLeEYxTyPk3SxoIOhpiyB7GjWRsdrGoEIxPYwp6DCNA== X-Google-Smtp-Source: AGHT+IHC2oKMG4ksTRlrykwbZsOY/gpnkaaSraSZFV1W4CF1f/KeO1tNhYAaAcBmEK4DRHa8Qiku X-Received: by 2002:a05:6a00:23d2:b0:6ec:f566:6eb0 with SMTP id g18-20020a056a0023d200b006ecf5666eb0mr2306141pfc.17.1712338518363; Fri, 05 Apr 2024 10:35:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712338518; cv=pass; d=google.com; s=arc-20160816; b=VELyAmKLtqQR4OgBY76n2lA+l1gHJF1YWQJRHs9DJugBrF3y1kNFHchHAWql1I4S8M 9wHSRKFNt+XhDQij6VlzF7qvKPxFDVPCppKKUvt/54g3YLSo+Rusd3CwvDrNH1691QMK yh0ng+Wp8OWhxyyLF1onqxhvlx9G59w81SL3wcyI+4yDp66PggaFS4JNiwuTKu/Km6jx 6AnkUuu4iGmsS8PXmTO9F8AD304o9/flIz/dM+dz2ixuRRqdjNeEVEWq96tdPVP+NKeP GjaQ5gz8PI5f/DM9WHFQzXD9jKasfxxgAtlvVCUx/qHQLOpZUJNnqs8AHZSTnsHJMYM1 5W7A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=o9Qck8o0r/jWRwLZFL4QaCNLD93ATbhtyDCNYfC16WQ=; fh=MKNsBaDwJqsLKwNMuU1Hb07uR2QhOzT1UkNrC6/TrlM=; b=yVKyb7xH2+nm+TI33UZNc0GhRO4lRKIDx7Uc0YGklkaljClfQIpEdSwNoPLrFdYrrA E6F+V/D3dXloEhwdQCUWvROLRY7dKEzVVgkNKJFg8STzk47RViJbdKtDWOK5wWHJRByA fe+cwfr/Ljj51qwGogQ/3P9HNMsiJs6QkDpZQu/7XwevT6ZysclpoZzXCqfGJCfiTT66 Ymb6PGP9Y2LPGjK57rcHNHVG5T6xx/eFKd2qjs/C6tOQj4V2UZOWqnyD6tUQt78i8o8A GS61ZooRmzevPrv9s8NW+KNiwevDJ/ZWGCjzW2ZYj4HjJ1Dz+wviuLddFIvliwkugu0e eYzg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-133429-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133429-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id y23-20020a63de57000000b005dc6fa39b70si1751126pgi.54.2024.04.05.10.35.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 10:35:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133429-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-133429-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133429-linux.lists.archive=gmail.com@vger.kernel.org" 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4A99828573B for ; Fri, 5 Apr 2024 17:34:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C1F1171E47; Fri, 5 Apr 2024 17:34:07 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (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 E603F17167A for ; Fri, 5 Apr 2024 17:34:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712338446; cv=none; b=PN5x7ChDXPA0GFY1050LNxv5ja0jJqY0II0j6a+gREfcB2hf6NPJQFiGJ4HWeeBRoF0bkf4RJZ2K4rasyS42um/t65Qm0H18hw/lBgW+sR3Ux4ZWRQ/oKodnjxL+mPWEh1D0IBialB8r771v/d1QZO2r/FamscGqd8y9vfir8zQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712338446; c=relaxed/simple; bh=yNKlQsRX9NX6jSUmt6M9DavRE3tT1/cEPwISWiiJF1o=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CFXKY6vUyh/Tw9CWPodjvYkrFpQhWOW9Uyq0abEIdIH6aceGcjHuUa0BH1K1Bcz4y0LLUzT5kvOqzfZU1JVTPh3dxIxer51bzzup/4UirVB1qd5bPaqb7sxwVuCcSoRIC29hpoAdcXNgX2+VRGR83Xbra0jqQayHg8s4/TJnXQg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rsnRo-0006ax-55; Fri, 05 Apr 2024 19:33:52 +0200 Received: from [2a0a:edc0:0:b01:1d::7b] (helo=bjornoya.blackshift.org) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rsnRn-00AbC0-C5; Fri, 05 Apr 2024 19:33:51 +0200 Received: from pengutronix.de (unknown [172.20.34.65]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: mkl-all@blackshift.org) by smtp.blackshift.org (Postfix) with ESMTPSA id F30542B2CB5; Fri, 5 Apr 2024 17:33:50 +0000 (UTC) Date: Fri, 5 Apr 2024 19:33:50 +0200 From: Marc Kleine-Budde To: Esben Haabendal Cc: Greg Kroah-Hartman , Jiri Slaby , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 1/2] serial: imx: Introduce timeout when waiting on transmitter empty Message-ID: <20240405-amused-cascade-0801f31c674a-mkl@pengutronix.de> References: <76cf9ce9cbf9dcdf78bc00ce7a919db1776ebce1.1712309058.git.esben@geanix.com> <20240405-impurity-emerald-f67dc37adf9b-mkl@pengutronix.de> <874jcf67xm.fsf@geanix.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="4bjqwdxylbl7erdi" Content-Disposition: inline In-Reply-To: <874jcf67xm.fsf@geanix.com> X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: mkl@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org --4bjqwdxylbl7erdi Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 05.04.2024 19:22:29, Esben Haabendal wrote: > Marc Kleine-Budde writes: >=20 > > On 05.04.2024 11:25:13, Esben Haabendal wrote: > >> By waiting at most 1 second for USR2_TXDC to be set, we avoid a potent= ital > >> deadlock. > >>=20 > >> In case of the timeout, there is not much we can do, so we simply igno= re > >> the transmitter state and optimistically try to continue. > >>=20 > >> Signed-off-by: Esben Haabendal > >> Acked-by: Marc Kleine-Budde > > > > Where's the cover letter and patch 2/2? Have a look at b4 [1], it's a > > great tool to help you with sending git patch series. >=20 > It is left out on purpose. >=20 > This patch is a stand-alone patch as it is. The other part of the series > you are talking about is not going to mainline for now. It needs still > quite some work, and will only go in after all the other printk stuff. >=20 > I hope we can merge this patch as it to mainline now, instead of piling > up more than necessary in the rt tree. Ok, then send it as patch 1/1. Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung N=C3=BCrnberg | Phone: +49-5121-206917-129 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 | --4bjqwdxylbl7erdi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEUEC6huC2BN0pvD5fKDiiPnotvG8FAmYQNfsACgkQKDiiPnot vG9DAgf7BXuZetpPFhgqfRuDFXD45sY0bXSNzz+OUWMCPPyz3WmXU0+EV74/QMCU un0y/QTd+SM5nYz4/hiRANBcDIXR71D0gDH1aNBNG6rpd3ZaZ/GnDfMmS6mj7MfJ xYRaMZ0wlKbrueg3up5K24qKL8J+HDWCVtEF06htScqSA33Z/sWC6x6vJ21qhU13 KAYE8e+cy2QEcwUnBzxoYyNNS04hD1AyCGrtbJwyIwKJG7ZU8EqBsGZWGqyQDZCR WmfJvQGSjY2HuB0vTQD9hidq4pt9PIR6s0tVd8FQR+Xif02BK31KOlzsdkm0QVp4 BimNplJFuQbXcL4cq8AW7EFuKkp9OQ== =SQHg -----END PGP SIGNATURE----- --4bjqwdxylbl7erdi--