Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1018098ybp; Wed, 9 Oct 2019 07:43:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqyxjrRBj1AOOjw4+WkPCW4oWQM+o2S72+yB3wPx9720/QhgBaNzXoB1I36j9Knbw7ujfa+4 X-Received: by 2002:a05:6402:713:: with SMTP id w19mr3322012edx.113.1570632210061; Wed, 09 Oct 2019 07:43:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570632210; cv=none; d=google.com; s=arc-20160816; b=OWu7vObXDLHxxWwGTLETsDJiTXwudRjId0K5nX1b1SRZvq99Ynx72ZKPRWESYwhtMV f60DrFAqRxXJkyTHMi8S1i9ps3ce3GWKgwa6GyLv5Lk43cbAkz/bhvrNGIlau9Tx99u+ TffeKs4tGjddkDWaFSkdegGbDBJcapA5aWSXHX6/9cczVvUeY6cpUVyaLLoHHVzl0rA6 ec5Xjuo4Orlb81MhHMnadIX2Q8mdMsdbB+3T++O4hUa+BuKRipCYRIUbwzUuy4Z3tEmO 8umBijd4GgqrbDxHtlIL1+Mq5qfgMagOBVMlSWho14b+/EE0M1CtqIBv4PmlO9s5hXf5 vj8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=EkoxdHnVLQ226zYpzpZkPpl4JWs7j5kgmQu76fGoFNE=; b=SKgHxnU99SBMVje8t2MtQAt+IK9OX7790sS4qlx2XPmB5mqd4XM7L1ZufJKYqQVwtp S2k1leph7demA52cyq/sMdVKiJw1y9cTxBDu39aDBk6DUr2NLmxs11g7PV5YJQe2pyMh 2ziMDXZf5exdO0clZnmAbxujreD9io3oNa0iC6zsEUsBS47JkZajeDiBkUdcTAEv0dDV VacIAcdDPg2edYKLa5MBRDI8gpYOK+ogxOrR832rbqolnwPcvb0uCCZlnIX8NDno1OWe 2TQs9LHZuzi99fXXxtgPLRxluUZrKqYbXbc7HlGNdsvS2LwJ3k+t613HqTsByrgo2mOC Gjsw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w19si819547eju.407.2019.10.09.07.43.05; Wed, 09 Oct 2019 07:43:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731540AbfJIOkD (ORCPT + 99 others); Wed, 9 Oct 2019 10:40:03 -0400 Received: from foss.arm.com ([217.140.110.172]:35802 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729491AbfJIOkD (ORCPT ); Wed, 9 Oct 2019 10:40:03 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id ACEA1337; Wed, 9 Oct 2019 07:40:02 -0700 (PDT) Received: from [10.1.197.57] (e110467-lin.cambridge.arm.com [10.1.197.57]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 725A43F71A; Wed, 9 Oct 2019 07:40:01 -0700 (PDT) Subject: Re: [PATCH] dts: Disable DMA support on the BK4 vf610 device's fsl_lpuart driver To: Lukasz Majewski , linux-kernel@vger.kernel.org, Shawn Guo Cc: Mark Rutland , devicetree@vger.kernel.org, Sascha Hauer , Stefan Agner , Rob Herring , Pengutronix Kernel Team , linux-arm-kernel@lists.infradead.org References: <20191009143032.9261-1-lukma@denx.de> From: Robin Murphy Message-ID: Date: Wed, 9 Oct 2019 15:40:00 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20191009143032.9261-1-lukma@denx.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/10/2019 15:30, Lukasz Majewski wrote: > This change disables the DMA support (RX/TX) on the NXP's fsl_lpuart > driver - the PIO mode is used instead. This change is necessary for better > robustness of BK4's device use cases with many potentially interrupted > short serial transfers. > > Without it the driver hangs when some distortion happens on UART lines. > > Signed-off-by: Lukasz Majewski > --- > arch/arm/boot/dts/vf610-bk4.dts | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/arch/arm/boot/dts/vf610-bk4.dts b/arch/arm/boot/dts/vf610-bk4.dts > index 0f3870d3b099..ad20f3442d40 100644 > --- a/arch/arm/boot/dts/vf610-bk4.dts > +++ b/arch/arm/boot/dts/vf610-bk4.dts > @@ -259,24 +259,28 @@ > &uart0 { > pinctrl-names = "default"; > pinctrl-0 = <&pinctrl_uart0>; > + dma-names = "",""; This looks like a horrible hack - is there any reason not to just strip things at compile-time, i.e. "/delete-property/ dmas;"? Robin. > status = "okay"; > }; > > &uart1 { > pinctrl-names = "default"; > pinctrl-0 = <&pinctrl_uart1>; > + dma-names = "",""; > status = "okay"; > }; > > &uart2 { > pinctrl-names = "default"; > pinctrl-0 = <&pinctrl_uart2>; > + dma-names = "",""; > status = "okay"; > }; > > &uart3 { > pinctrl-names = "default"; > pinctrl-0 = <&pinctrl_uart3>; > + dma-names = "",""; > status = "okay"; > }; > >