From patchwork Wed May 12 14:12:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Walle X-Patchwork-Id: 436055 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 09096C43461 for ; Wed, 12 May 2021 14:13:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BF856613BE for ; Wed, 12 May 2021 14:13:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230497AbhELOOh (ORCPT ); Wed, 12 May 2021 10:14:37 -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 Precedence: bulk List-ID: X-Mailing-List: linux-serial@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(-)