Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4512593pxj; Wed, 12 May 2021 07:14:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKg3Ty6iNRGQtsiRkshFwRtH4dBGcE9l9SJMl0QasDqv96JUVcc0kPk2aE2adIjs4BzXTc X-Received: by 2002:a9d:6198:: with SMTP id g24mr23349793otk.365.1620828875373; Wed, 12 May 2021 07:14:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620828875; cv=none; d=google.com; s=arc-20160816; b=NiyxQonyxq5HI7gMrHqaZmoGZAGkKP0Y366q1gyYZTr5UKbaaTPKOylMOmIuTuBzTk C+i1mDdgVh0R75/T/EUmKJzkFlLEHCtbIpJDvCJun20cl8xCINEWzEUm2hXSRPDZKuQ1 cON59siTRefO+KSkLsGOh17ZJam9+XT8hX1i4fqSF6+pGtwCF0/auV5T/hsMPqNbLZuu ZEhtYglPZCocB4YzglI7LexLxcn5in6djnY5moyQ3jpX3fSYxCrQpOMc2KYh0WcNDIG5 FOWMugmzMc2hbV0OMKbWlDa6u9equusBL5xu2cm/nqW6Urrv6nLB3yLDJD7n3afX85/u Df8w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=JAJPgRblRiNhiOC7XlWvYpG23ZdxlO3ho2zd+PjduLM=; b=JI45ooYsR3962wnwzvncrDEObU7qnmm9l6k54BSzrnR/JvPiIQKUHYAEjufwoVfGe6 D1c2K1iuPV6uU4QiRd6JnuQzNZh5VmqKI5w0Cj53U3/LQKGY6C1NPveFKi6oB7oERQqD n4aBys+YC/+56mWPL4X44YuA/MCOTSzw3Mde97/TkrevOutkPGXE8jgbQxICfmk17OJL +IFp7L55YJsr/GhZ4mBFoEq/Usvo0q2i0oZpKfTHBNDVqBEBX6YjZwHbRcLsIwoGgB4q kA+lA8Cuz9pbC2Ws713RZIG49Nzu43r9zKUE4Pfwikct1SK+l6NL+MIN30zJU0E8m+sz Xmww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=UlUaMHCp; 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 j20si22001otk.0.2021.05.12.07.14.21; Wed, 12 May 2021 07:14:35 -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=UlUaMHCp; 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 S230196AbhELOOg (ORCPT + 99 others); Wed, 12 May 2021 10:14:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231367AbhELOOP (ORCPT ); Wed, 12 May 2021 10:14:15 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD7BEC061574; Wed, 12 May 2021 07:13:07 -0700 (PDT) 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 7A0FA2225B; Wed, 12 May 2021 16:13:05 +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: in-reply-to:in-reply-to:references:references; bh=JAJPgRblRiNhiOC7XlWvYpG23ZdxlO3ho2zd+PjduLM=; b=UlUaMHCpDptMDnBzMTThi8xYbNzm4UQynA+GukccDk60YAQ56FVYox2CTVCPI+fCCMzvuw AZ3Z7mqMruTFelNUuCIAz7XUbEzkhO2fJzpYITIKtywguwVn0BzoUfnceOGsK5H8EihAQh UrevMcyNl5IxlLkjHclghT8DihXAFO0= 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 1/9] serial: fsl_lpuart: don't modify arbitrary data on lpuart32 Date: Wed, 12 May 2021 16:12:47 +0200 Message-Id: <20210512141255.18277-2-michael@walle.cc> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210512141255.18277-1-michael@walle.cc> References: <20210512141255.18277-1-michael@walle.cc> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org lpuart_rx_dma_startup() is used for both the 8 bit and the 32 bit version of the LPUART. Modify the UARTCR only for the 8 bit version. Fixes: f4eef224a09f ("serial: fsl_lpuart: add sysrq support when using dma") Signed-off-by: Michael Walle --- drivers/tty/serial/fsl_lpuart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/fsl_lpuart.c b/drivers/tty/serial/fsl_lpuart.c index 794035041744..fbf2e4d2d22b 100644 --- a/drivers/tty/serial/fsl_lpuart.c +++ b/drivers/tty/serial/fsl_lpuart.c @@ -1625,7 +1625,7 @@ static void lpuart_rx_dma_startup(struct lpuart_port *sport) sport->lpuart_dma_rx_use = true; rx_dma_timer_init(sport); - if (sport->port.has_sysrq) { + if (sport->port.has_sysrq && !lpuart_is_32(sport)) { cr3 = readb(sport->port.membase + UARTCR3); cr3 |= UARTCR3_FEIE; writeb(cr3, sport->port.membase + UARTCR3); -- 2.20.1