Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1020542ybp; Wed, 9 Oct 2019 07:45:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqxMCArem92EPdQQdIHH0UKqft4N871b9PfY/ul+RxYRz8NrjrIdhoHv3/PtcnPDBAJmzW4D X-Received: by 2002:a17:906:69cc:: with SMTP id g12mr3174119ejs.235.1570632329183; Wed, 09 Oct 2019 07:45:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570632329; cv=none; d=google.com; s=arc-20160816; b=sA9c2FA8+auZpFv9BHkcE1jZvJ61umct7RKylWT208Bx7MISeepHpr2LdGJBW9HvQZ 5V3g8LmxAOwUOeCPSNqK7NTvTUx9jqchkPgf4YEIx/zF9MRXSgBAdm02i9Bg0+xZ7ugf O1CXv2HW8k1anooveGV2Dw513YCJlpqPsXwOT4jaX9ET7Io6iPf4TY2f0Vv6YvB7LWox 8zHmD8lgyZI2Gg4GKXOULvKKj1D0G6IHtDfyqG1Dr4oimUib3glvgzmQYFSBLV/heoFD zC3ZQoZ9VDSg7bVOoT/m3NeJxe6OhVJD5b8VDgKh+fu9YO/iNUQIpo3yLgCS4BrbkSS5 kT9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:organization:references :in-reply-to:message-id:subject:cc:to:from:date; bh=B0WtIXf3rFl/3bxCG5HrwLXrq28ubeUp1YeKVCQJBmU=; b=lPsOjj15hIg2+J4GsdXChyVvs1JWCzEjqrLs2S4p21TKG9pdcTToVVRRvpzYfYU/ob Cj9srOBjENh5jhLcT1I6/YCWOe3HZ4vQApTnxpfosTU7vjCNTA7cTcgxjv4Pgi96u+pQ N39tT87RJGIuiWsP277wklOuUu7gvP+vkRt0cNRj2RP9xbeTBoZzN+7GCMQ5lLIBz5YV y9e1/I6t31gl9bKZrBzDnqdDAsBbv0M6DT65fL8SRs4ZxsE7b/FzznB3cVlvrySKpJP0 slt5BfSvcvH6fnlJy0AUQ2wNidwrZvx+qqYwRmVWfMXFalOxgy1MVBNQ/vSqeH4CAtes TmWQ== 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 r5si1286479edo.14.2019.10.09.07.45.05; Wed, 09 Oct 2019 07:45:29 -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 S1731534AbfJIOoy (ORCPT + 99 others); Wed, 9 Oct 2019 10:44:54 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:32881 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730674AbfJIOoy (ORCPT ); Wed, 9 Oct 2019 10:44:54 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 46pH766N2kz1rlwx; Wed, 9 Oct 2019 16:44:50 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 46pH7658gNz1qqkL; Wed, 9 Oct 2019 16:44:50 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id njJVUYx2-9tB; Wed, 9 Oct 2019 16:44:49 +0200 (CEST) X-Auth-Info: z1TweS5tguld1s5i/vfefCuk4NRnGzI/S+uxnMWYpT0= Received: from jawa (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Wed, 9 Oct 2019 16:44:49 +0200 (CEST) Date: Wed, 9 Oct 2019 16:44:42 +0200 From: Lukasz Majewski To: Robin Murphy Cc: linux-kernel@vger.kernel.org, Shawn Guo , Mark Rutland , devicetree@vger.kernel.org, Sascha Hauer , Stefan Agner , Rob Herring , Pengutronix Kernel Team , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] dts: Disable DMA support on the BK4 vf610 device's fsl_lpuart driver Message-ID: <20191009164442.51f27b9d@jawa> In-Reply-To: References: <20191009143032.9261-1-lukma@denx.de> Organization: denx.de X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/Di/jFXAOICs3QlZsnoXzE2z"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/Di/jFXAOICs3QlZsnoXzE2z Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Robin, > 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. > >=20 > > Without it the driver hangs when some distortion happens on UART > > lines. > >=20 > > Signed-off-by: Lukasz Majewski > > --- > > arch/arm/boot/dts/vf610-bk4.dts | 4 ++++ > > 1 file changed, 4 insertions(+) > >=20 > > 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 =3D "default"; > > pinctrl-0 =3D <&pinctrl_uart0>; > > + dma-names =3D "",""; =20 >=20 > This looks like a horrible hack - is there any reason not to just > strip things at compile-time, i.e. "/delete-property/ dmas;"? I don't want to strip the dma-names property globally. I just want to adjust this particular driver mode from DMA to PIO. For my use cases - as written in the commit message - the PIO mode is more suitable (and reliable).=20 >=20 > Robin. >=20 > > status =3D "okay"; > > }; > > =20 > > &uart1 { > > pinctrl-names =3D "default"; > > pinctrl-0 =3D <&pinctrl_uart1>; > > + dma-names =3D "",""; > > status =3D "okay"; > > }; > > =20 > > &uart2 { > > pinctrl-names =3D "default"; > > pinctrl-0 =3D <&pinctrl_uart2>; > > + dma-names =3D "",""; > > status =3D "okay"; > > }; > > =20 > > &uart3 { > > pinctrl-names =3D "default"; > > pinctrl-0 =3D <&pinctrl_uart3>; > > + dma-names =3D "",""; > > status =3D "okay"; > > }; > > =20 > > =20 Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@denx.de --Sig_/Di/jFXAOICs3QlZsnoXzE2z Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEgAyFJ+N6uu6+XupJAR8vZIA0zr0FAl2d8loACgkQAR8vZIA0 zr2WHggAttPRl8kp+yb/oZQOEp8vg1iZdn55DoxHq2LWuWy8RIoAUnOUy9TapDZ5 ZBQKgfDBYcD0Yawqlk9uOev6Uhe9roJRyVSdWjdPMcGdK0viwBagw8sYWxWD2TrY MljhCRJfoStaA/ZKClfGb2w5KddgXTgz2jqRs8CNps7aFBbjhKFtwJoKkdCjI/kl ADmw46QWkNmN6axoy3NKIDeP31lOfWpMcfcYw0MrLCn0+s/tfRpKqH9eRGC5vjJt SblR8SeFNB4oUOO1rFN9rKANzgxfqF4n06rCPORZBOK8mV5YIAA5vx7L6VOUxioj U57i4+VhXSCzlyh3HBGKN3//lb0xIA== =PTiE -----END PGP SIGNATURE----- --Sig_/Di/jFXAOICs3QlZsnoXzE2z--