Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4513045pxj; Wed, 12 May 2021 07:15:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEJhjaoGsb/kInZypoDB4ZR2MlG+j1dE4IgcEqGH6y7zTsFxJBLmvN4VG5PSjQBRrWSNHt X-Received: by 2002:a05:6830:1205:: with SMTP id r5mr5064271otp.359.1620828906263; Wed, 12 May 2021 07:15:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620828906; cv=none; d=google.com; s=arc-20160816; b=OXgj2tUsH3DfBlPmDIRRl2+uvGo95vYbv2yJw3JCIqRIZFCH5h7OYM0wasn9s/0FK/ 5TQQ+jD68TkZ+cOpTqnzKLhENmsQMJV+Uf9190IEfticYV4f1ow3harG/82tKJwLO+pL 7S1kzyO3rFlr+Laxa4Utbg55q7Bcbc/z7JuLnLNnYcHiyAC3OE9nkHA1dp06NvQRb97x QCkxytDGRWdqDS2iXs1/tuQEgNpcnu4aUMXbvStlYXGTx/Er0muAmWffD1NJiGhb3mlY pfnhwga6x9AgS+78Gx/z8deFdZeTJYj1+O5M53fU0HWqg1ZrP6GLnWj55dnTSCW1Zslb 0RVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=0IUiD20jWaXc9GDvz9cnvvt/m2/qUjY9WWIGbn040jA=; b=jWnPOQ/kRsCE0G5cuBi7Puvi8OUzv/aPARpH9+oKiRmzbrBaMnfQz1nrRE2MO6w2u9 9BFAI0KMUWlElFMcs65DiQlcKS5WlrUue36ICK5N1jtTMYwePylsmgSG2okcqw7THtST 3bab/WPT1xcnKUH7RQZiEWXIXbIlK4Be1f4JL+RUJwOM45BxlsH7qr4360oXni2J8cU5 tOG+Bdi2Xio1wBO+TbFWBdb9oAmYtGZW7PTHyz1hqfvUxhTFYl0dUcJ8KHrIbM3l7esT 0IV0Ge5M6yM2EW3yRKLYxtavyyam2nxwpr3SPNfihWSimRM/D9SyUpTqin6tcjAoOBDH STHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=sNM47TXy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w10si11477otm.142.2021.05.12.07.14.52; Wed, 12 May 2021 07:15:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=sNM47TXy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231416AbhELOOn (ORCPT + 99 others); Wed, 12 May 2021 10:14:43 -0400 Received: from ssl.serverraum.org ([176.9.125.105]:36021 "EHLO ssl.serverraum.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231327AbhELOOP (ORCPT ); Wed, 12 May 2021 10:14:15 -0400 Received: from mwalle01.fritz.box (unknown [IPv6:2a02:810c:c200:2e91:fa59:71ff:fe9b:b851]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id D713E2224E; Wed, 12 May 2021 16:13:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1620828785; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=0IUiD20jWaXc9GDvz9cnvvt/m2/qUjY9WWIGbn040jA=; b=sNM47TXy9w4/dt702d5w3yhYARqcBbkczYui3gcSieYdlHhgJc3sUL2N4TilpkC/lNFfa3 fCioKMeCo+IPpZR87pFNHRaCvSjU0qeqRAdX2I7iftayyMqjrs6EfbHFXTdVhGK5TT/Bk1 lQPyCK+O4u+ljRS0agkA1EH2VWr6AOg= From: Michael Walle To: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Jiri Slaby , Angelo Dureghello , Johan Hovold , Philippe Schenker , Michael Walle Subject: [PATCH v2 0/9] serial: fsl_lpuart: sysrq, loopback support and fixes Date: Wed, 12 May 2021 16:12:46 +0200 Message-Id: <20210512141255.18277-1-michael@walle.cc> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Give fsl_lpuart some love and add break, loopback and sysrq support. While at it, some errors were noticed, which are also fixed in this series. The sysrq support was tested on both interrupt driven and DMA based transfers on the 32bit LPUART. Changes since v1: - rephrased commit message of serial: fsl_lpuart: don't restore interrupt state in ISR Sorry again, I didn't want to take credit of that sentence. - rephrased commit message and split into two patches: serial: fsl_lpuart: handle break and make sysrq work Esp. drop the mention of a possible deadlock as it turns out it isn't one. - remove the spin_trylock_irqsave() special case for sysrq handling Michael Walle (9): serial: fsl_lpuart: don't modify arbitrary data on lpuart32 serial: fsl_lpuart: use UARTDATA_MASK macro serial: fsl_lpuart: don't restore interrupt state in ISR serial: fsl_lpuart: split sysrq handling serial: fsl_lpuart: handle break and make sysrq work serial: fsl_lpuart: remove RTSCTS handling from get_mctrl() serial: fsl_lpuart: remove manual RTSCTS control from 8-bit LPUART serial: fsl_lpuart: add loopback support serial: fsl_lpuart: disable DMA for console and fix sysrq drivers/tty/serial/fsl_lpuart.c | 132 +++++++++++++++++--------------- 1 file changed, 72 insertions(+), 60 deletions(-) -- 2.20.1